i am facing same issue applied this code but not working, could you please help me on this for local testing we are using evaluation one but for higher env we are using licensed one.
below is my code:
public void gen…...getSections()) { PageSetup ps = section.getPageSetup(); ps.setPaperSize(PaperSize...setPaperSize(PaperSize.A4); ps.setOrientation(useLandscape ? Orientation.LANDSCAPE...