Hi Team,
We have a need of converting PDF to PPT. We are using Aspose 24.7 version for all operations. When we convert it, the alignment of the converted PPT file is not proper.
Below are the other details:
- Aspose Version: 24.7.0.0
- OS version on which conversion is happening:
Edition | Windows 10 Enterprise |
---|---|
Version | 21H2 |
OS build | 19044.2486 |
Experience | Windows Feature Experience Pack 120.2212.4190.0 |
- Dot Net framework: .Net Framework 4.8
- Below is the code we are using:
Aspose.Pdf.Document pdfDocument = new Aspose.Pdf.Document(dataDir + "Input_PDF_File.pdf");
Aspose.Pdf.PptxSaveOptions pptx_save = new Aspose.Pdf.PptxSaveOptions();
pdfDocument.Save(resultDir + "OutPut_PPT_File.pptx", pptx_save);
Observation:
We have observed that whatever the orientation of the first page in PDF, it takes that orientation in PPT for all the pages and it is creating issues for us since our PDF file can have mixer of both landscape and portrait pages. Please note that the input PDF file is being created through Aspose only where more than one extension files are being merged and created as PDF. This PDF file is being used further to convert it to PPT.
Please find the below zip files for reference which contains input pdf and output ppt files.
PDF to PPT conversion -portrait then Landscape.zip (119.6 KB)
PDF to PPT conversion - Landscape then portrait.zip (120.0 KB)
Please let us know if we are missing any code logic to be applied before converting to PPT OR if you need any other details from us.
Thanks.