Hello,
the converted pdf layout was changed. Is it possible to change the convert setting for pdf same as PowerPoint file ?
version:aspose-slides-20.1-jdk16.jar
public void convetPPTtoPdf() {// Instantiate a Presentation object that represents a PPT file
Presentation pres = new Presentation("C:\\Testing.pptx");
try {
// Save the presentation as PDF
pres.save("PPT-to-PDF.pdf", SaveFormat.Pdf);
} finally {
if (pres != null) {
pres.dispose();
}
}
}
testing.7z (303.0 KB)
I had try another method.but the result not expect.Is it possible to set the margin ? and page2 is lost.
public static void main( String[] args )
{
Presentation pres = new Presentation("C:\\Testing.pptx");
try {
Presentation outPres = new Presentation();
try {
ISlide slide = pres.getSlides().get_Item(0);
outPres.getSlides().insertClone(0, slide);
// Setting Slide Type and Size
outPres.getSlideSize().setSize((float) pres.getSlideSize().getSize().getWidth(), (float) pres.getSlideSize().getSize().getHeight(), SlideSizeScaleType.EnsureFit);
PdfOptions pdfOptions = new PdfOptions();
INotesCommentsLayoutingOptions options = pdfOptions.getNotesCommentsLayouting();
options.setNotesPosition(NotesPositions.BottomFull);
outPres.save("PDFnotes_out.pdf", SaveFormat.Pdf, pdfOptions);
} finally {
if (pres != null) {
pres.dispose();
}
}
} finally {
if (pres != null) {
pres.dispose();
}
}
}
method2.7z (245.1 KB)