12/7/2023 0 Comments Change pptx to pdfLearn more about GroupDocs.Conversion from the documentation. We separately looked at the steps and code example for converting a specific list of slides, any successive subset of presentation slides, and conversion of PPT to PDF with a customized watermark and other options. We learned different ways to convert PPT to PDF format in C#. The following C# code example adds a watermark with rotation angle and transparency while converting the PPT to PDF. Save the presentation to PDF using Convert() method. Prepare the text watermark options and define:Īdd the prepared watermark to PDF conversion options. The below-mentioned steps and source code shows how to put a watermark when a PPT/PPTX presentation is converted to PDF format. Want to secure your presentation while converting it to PDF format? Leave a watermark on the resultant PDF. Just for an overview, we can customize the PPT conversion with the mentioned options and much more:Īdd Watermark while converting PPTX or PPT to PDF in C# Along with the common conversion options, it has many additional options that can be seen in detail from the documentation. PdfConvertOptions gives control over conversion results while converting to PDF. These options are rarely needed, however when required, they prove their importance. There are many more options while converting the presentations. Convert PPT to PDF with Advanced Options # The following source code shows how to retrieve all the possible conversions of the PPTX formats using C#. Get all the possible conversions of the source format using GetPossibleConversions() method.Define the source format using the Converter class.More important for developers, we can retrieve all the possible conversion formats of PPT/PPTX presentations by simply calling the GetPossibleConversions() method of the Converter class. You can refer to the documentation for all the possible conversions. This is not only the PDF that could be the target document format while conversion. The following code snippet converts the slide numbers 2, 3, and 4 to PDF format in C#. Save the selected slides in PDF format using Convert() method.Set the starting page number and the count of sequentials slides ahead using PDF Conversion Options.Load the presentation file using Converter class.Just set the starting page number and number of successive pages ahead. Certain consecutive slides of the presentation can be selected to get these converted into PDF format. With the little modification in the requirement, below is the little change in the code. Convert Consecutive Slides of PPTX to PDF using C# The following source code converts slides number 1, and 3 of a presentation to PDF. List the selected slide numbers to convert.Load the presentation using Converter class.Below are the steps and C# source code that shows, how to achieve this. GroupDocs.Conversion allows converting the specific slides of a presentation to the resultant PDF document. We could have a requirement to convert only the selected slides instead of converting the whole presentation. Convert Specific Slides of PPT to PDF in C# The following code sample converts the complete PowerPoint PPTX to PDF in C#.
0 Comments
Leave a Reply. |
AuthorWrite something about yourself. No need to be fancy, just an overview. ArchivesCategories |