How to set margin when converting a Presentation to PDF. Code given below
Aspose.Slides.Presentation presentation = new Aspose.Slides.Presentation(“in.ppt”);
presentation.Save(“out.pdf”, Aspose.Slides.Export.SaveFormat.Pdf);
How to set margin when converting a Presentation to PDF. Code given below
Hi Varun,
ok Thanks,
Hi Varun,
Aspose.Slides.Presentation presentation = new Aspose.Slides.Presentation(“in.ppt”);presentation.SlideSize.Type = SlideSizeType.A4Paper;PdfOptions opts = new PdfOptions();opts.SufficientResolution = 112;presentation.Save(“out.pdf”, Aspose.Slides.Export.SaveFormat.Pdf);
Hi,
Hi Varun,
I am sorry for the inconvenience. Please try using attached sample for your kind reference.
presentation.Save(“out.pdf”, Aspose.Slides.Export.SaveFormat.Pdf,opts);