Pptx->pdf

Hi,

is there a way to save a single pptx slide as pdf file and not the complete presentation?

best regards,
D.Croe

Hi,

You can simply clone the specific slide to a new presentation object and save it as PDF file. Please see the following sample code for reference.


//Instantiate Presentation class to load the source presentation file
Presentation srcPres = new Presentation(“helloworld.pptx”);

//Instantiate Presentation class for destination PPTX (where slide is to be cloned)
Presentation destPres = new Presentation();

//Clone the desired slide from the source presentation to the end of the collection of slides in destination presentation
ISlideCollection slds = destPres.getSlides();

slds.addClone(srcPres.getSlides().get_Item(0));

//Save the destination presentation to disk
destPres.save(“helloworld_dest2.Pdf”,SaveFormat.Pdf);

Thanks & Regards,

Hi,

this solution is not the same because the slide would have a page number 1 instead of its real original page number!
Is there another possible solution?

best regards,
D.Croe

Hi,

I am afraid, your requested feature is not supported at the moment. I have added a new feature request in our issue tracking system with issue id: SLIDESJAVA-34553. Our development team will further look into it and share the feedback.

Thanks & Regards,

The issues you have found earlier (filed as SLIDESJAVA-34553) have been fixed in this update.


This message was posted using Notification2Forum from Downloads module by Aspose Notifier.