I am attempting to generate a PDF from a PPT file. However, when I generate the PDF, the entire contents of the slide doesn’t make it into the output PDF. I am hoping there is some setting I can apply that will fix this … could you please advise?
I’ve attached the test PPT and the output page PDF that is generated.
As a follow up, I have gone into my source powerpoint and set the page size to A4, which seems to solve the problem.
So really I guess the question is, how can I force my powerpoint page sizes to be A4 before I perform the pdf save?
Further detail on this, the problem really seems to arise from merging different sized powerpoint files and then trying to output as PDF. What is odd is that the powerpoint itself that was generated from different sizes worked fine, it was just when it came to saving as a PDF it went wrong.
any advice around this would be appreciated, but I think I have managed to work around the immediate problem
Hi Mike,
I have worked with the presentation file shared by you using Aspose.Slide for Java 15.2.0. The generated PDF has been rendered fine on my end. For your kind reference, I have attached the generated PDF as well. Also, in order to change the slide size to A4, please try using the following sample code.
Presentation pres=new Presentation(path+“Lorem test.pptx”);
pres.getSlideSize().setType(SlideSizeType.A4Paper);
Many Thanks,