Free Support Forum - aspose.com

Problem with pptx --> PDF conversion / what is the correct way?

Hi

We noticed the following:

If we, after opening and modifying a pptx file, try to save it as pdf file, the resulting pdf file has lost most, if not all linefeed characters.

PresentationEx pres = new PresentationEx(“template.pptx”);

lots of code

pres.SaveFile(“result.pdf”, Aspose.Slides.Export.SaveFormat.Pdf);

**************************


On the other hand, if we first save the file as pptx, then reopen it and save it as pdf file, conversion works fine.

PresentationEx pres = new PresentationEx(“template.pptx”);

lots of code

pres.SaveFile(“result.pptx”, Aspose.Slides.Export.SaveFormat.Pptx);

PresentationEx tmp = new PresentationEx(“result.pptx”);
tmp.SaveFile(“result.pdf”, Aspose.Slides.Export.SaveFormat.Pdf);



Is the latter the intended way of work, or is there a bug in the conversion?


BR
Olavi

PS: Any news on shape copy and group shapes?

Hi Olavi,


Thanks for inquiring Aspose.Slides.

I have observed the two sample codes shared and like to share that first one is better one. The second one is also usable. If there is any issue then please share the sample presentation along with generated PDF and snapshot highlighting the incurring issues. Please also share which version of Aspose.Slides you are using on your end.

Many Thanks,