We're sorry Aspose doesn't work properply without JavaScript enabled.

Free Support Forum - aspose.com

Save as PDF - Page Size

Hello,

I’m saving a PPTx as PDF with the following code:

 Presentation.DocumentProperties.Title = Path.GetFileNameWithoutExtension(name);
 var pptOutputPath = Path.Combine(path, name);                
 Presentation.Save(pptOutputPath, Aspose.Slides.Export.SaveFormat.Pptx);

 // PDF options, Save As PDF too.
 Aspose.Slides.Export.PdfOptions options = new Aspose.Slides.Export.PdfOptions
{
 Compliance = Aspose.Slides.Export.PdfCompliance.Pdf15,
 EmbedFullFonts = true,
                    
};

var pdfOutputPath = pptOutputPath.Replace(".pptx", ".pdf");
Presentation.Save(pdfOutputPath, Aspose.Slides.Export.SaveFormat.Pdf, options);

The generated PDF has a Page Size 8.27 x 11.69 in while generating it from PowerPoint itself gives me a PDF file with Page Size 8.27 x 11.70 in. This difference is breaking some text in PDF generated with Aspose.Slides.

Could you, please, give me a hint o how to solve it?

To check Page Size on Adobe Acrobat Reader I clicked right button over document and clicked in Document Properties.

Thanks for you help.

Aspose.Slides version: 20.8

@ruy.almeida.bnpp

I suggest you to please try using latest Aspose.Slides for .NET 20.10 on your end. If there is still an issue then please share the source file, generated output, snapshot of the issue and comparison PDF with correct output with us.

Thanks for the answer.
I just tried updating Aspose:Slides version but it didn’t solve the problem.

Unfortunately, because of enterprise’s compliance, I cannot share source file or any other document.

Thank you again for your time.

@ruy.almeida.bnpp

We are here to help you further but constraint is that we need requested information to proceed further with investigation on our end.