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

Free Support Forum - aspose.com

Aspose.Slides For .NET 将PPT转成PDF时,如何设置纸张类型

Aspose.Slides For .NET 将PPT转成PDF时,如何设置纸张类型。例如如何将PPT转为A3大小的PDF文件

@iccolor,
感谢您的查询。

您应该在 PDF 导出之前更改幻灯片大小,如下所示。

presentation.SlideSize.SetSize(SlideSizeType.A3Paper, SlideSizeScaleType.EnsureFit);
presentation.Save("output.pdf", SaveFormat.Pdf);

此外,您可以像这样更改页面方向:

presentation.SlideSize.Orientation = SlideOrientation.Portrait;

PDF 导出的更多示例: Convert PowerPoint to PDF
API参考: SlideSizeType | SlideSizeScaleType | SlideOrientation