We are using Aspose.PDF to convert a PDF document to PPTX. Below is the sample code that we used.
We need to have the PDF as image in PPTX, so we are using SlidesAsImages Property which works fine.
Along with this, we are using the ImageResolution property because we want the image quality to be better than the default resolution of 192. We tried to change this value to 144 and 192 and 300, but we see the same image quality with all the values. Even the PPTX file generated is of same file size. Below is the sample code that we are using.
Attached is a sample PDF that we are trying to convert - Test.pdf (25.4 KB)
Could you please have a look and let us know if anything we are doing incorrect.?
Note: We have a valid Aspoes.Total license.
//PDF = Aspose.Pdf
// Load PDF document
PDF.Document docForPPT = new PDF.Document(“Test.pdf”);
// Instantiate PptxSaveOptions instance
PDF.PptxSaveOptions pptx_save = new PDF.PptxSaveOptions();
// Save the output in PPTX format
pptx_save.SlidesAsImages = true;
pptx_save.ImageResolution = 144;//192//300 // All three values are producing output with same file size and image quality