Skip to content
79 changes: 79 additions & 0 deletions File-Formats-toc.html
Original file line number Diff line number Diff line change
Expand Up @@ -283,6 +283,85 @@
<a href="/file-formats/DocIO/Conversion">Working with Document Conversion</a>
<ul>
<li><a href="/file-formats/DocIO/word-file-formats">Word File Formats</a></li>
<li><a href="/file-formats/DocIO/word-to-pdf">Word to PDF</a>
<ul>
<li>
<a href="/file-formats/DocIO/Convert-Word-Document-to-PDF-in-ASP-NET-Core">ASP.NET Core</a>
</li>
<li>
<a href="/file-formats/DocIO/Convert-Word-Document-to-PDF-in-ASP-NET-MVC">ASP.NET MVC</a>
</li>
<li>
<a href="/file-formats/DocIO/Convert-Word-Document-to-PDF-in-ASP-NET">ASP.NET</a>
</li>
<li>
<a href="/file-formats/DocIO/Convert-Word-Document-to-PDF-in-Blazor">Blazor</a>
</li>
<li>
<a href="/file-formats/DocIO/Convert-Word-Document-to-PDF-in-Xamarin">Xamarin</a>
</li>
<li>
<a href="/file-formats/DocIO/Convert-Word-Document-to-Pdf-in-Window-Forms">Windows Forms</a>
</li>
<li>
<a href="/file-formats/DocIO/Convert-Word-Document-to-PDF-in-WPF">WPF</a>
</li>
<li>
<a href="/file-formats/DocIO/Convert-Word-Document-to-PDF-in-UWP">UWP</a>
</li>
<li>
<a href="/file-formats/DocIO/Convert-Word-Document-to-PDF-in-WinUI">WinUI</a>
</li>
<li>
<a href="/file-formats/DocIO/Convert-Word-Document-to-PDF-in-MAUI">.NET MAUI</a>
</li>
<li>
<a href="/file-formats/DocIO/Convert-Word-Document-to-PDF-in-Linux">Linux</a>
</li>
<li>
<a href="/file-formats/DocIO/word-to-pdf-linux-docker">Docker</a>
</li>
<li>
<a href="/file-formats/DocIO/Convert-Word-Document-to-PDF-in-MAC">Mac</a>
</li>
<li>
<a href="/file-formats/DocIO/Convert-Word-Document-to-PDF-in-Azure">Azure</a>
<ul>
<li>
<a href="/file-formats/DocIO/Convert-Word-Document-to-PDF-in-Azure-App-Service-Windows">Azure App Service (Windows)</a>
</li>
<li>
<a href="/file-formats/DocIO/Convert-Word-Document-to-PDF-in-Azure-App-Service-Linux">Azure App Service (Linux)</a>
</li>
<li>
<a href="/file-formats/DocIO/Convert-Word-Document-to-PDF-in-Azure-Functions-v1">Azure Functions v1</a>
</li>
<li>
<a href="/file-formats/DocIO/Convert-Word-Document-to-PDF-in-Azure-Functions-v4">Azure Functions v4</a>
</li>
</ul>
</li>
<li>
<a href="/file-formats/DocIO/Convert-Word-Document-to-PDF-in-AWS">Amazon Web Services (AWS)</a>
<ul>
<li>
<a href="/file-formats/DocIO/Convert-Word-Document-to-PDF-in-AWS-Lambda">AWS Lambda</a>
</li>
<li>
<a href="/file-formats/DocIO/Convert-Word-Document-to-PDF-in-AWS-Elastic-Beanstalk">AWS Elastic Beanstalk</a>
</li>
</ul>
</li>
<li>
<a href="/file-formats/DocIO/Convert-Word-Document-to-PDF-in-Google-Cloud-Platform">Google Cloud Platform (GCP)</a>
<ul>
<li>
<a href="/file-formats/DocIO/Convert-Word-Document-to-PDF-in-Google-App-Engine">Google App Engine</a>
</li>
</ul>
</li>
</ul>
</li>
<li><a href="/file-formats/DocIO/word-to-image">Word Document to Image</a>
<ul>
<li>
Expand Down
26 changes: 25 additions & 1 deletion File-Formats/DocIO/Applying-Watermark.md
Original file line number Diff line number Diff line change
Expand Up @@ -106,7 +106,31 @@ The following code example illustrates how to add a picture watermark to the Wor
{% tabs %}

{% highlight c# tabtitle="C# [Cross-platform]" %}
//DocIO supports picture watermark in Windows Forms, WPF, ASP.NET and ASP.NET MVC platforms alone.

//Creates a new Word document
WordDocument document = new WordDocument();
//Adds a section and a paragraph in the document
document.EnsureMinimal();
IWParagraph paragraph = document.LastParagraph;
paragraph.AppendText("AdventureWorks Cycles, the fictitious company on which the AdventureWorks sample databases are based, is a large, multinational manufacturing company.");
//Creates a new picture watermark.
PictureWatermark picWatermark = new PictureWatermark();
//Sets the scaling to picture.
picWatermark.Scaling = 120f;
picWatermark.Washout = true;
//Sets the picture watermark to document.
document.Watermark = picWatermark;
FileStream imageStream = new FileStream("Water lilies.jpg", FileMode.Open, FileAccess.Read);
BinaryReader br = new BinaryReader(imageStream);
byte[] image = br.ReadBytes((int)imageStream.Length);
//Sets the image to the picture watermark.
picWatermark.LoadPicture(image);
//Saves the Word document to MemoryStream
MemoryStream stream = new MemoryStream();
document.Save(stream, FormatType.Docx);
//Closes the document
document.Close();

{% endhighlight %}

{% highlight c# tabtitle="C# [Windows-specific]" %}
Expand Down
1 change: 1 addition & 0 deletions File-Formats/DocIO/word-to-pdf-linux-docker.md
Original file line number Diff line number Diff line change
Expand Up @@ -21,6 +21,7 @@ Step 2: Install the below NuGet packages as a reference to your project from [Nu

* [Syncfusion.DocIORenderer.Net.Core](https://www.nuget.org/packages/Syncfusion.DocIORenderer.Net.Core/)
* [SkiaSharp.NativeAssets.Linux v2.80.2](https://www.nuget.org/packages/SkiaSharp.NativeAssets.Linux/2.80.2)
* [HarfBuzzSharp.NativeAssets.Linux v2.8.2.2](https://www.nuget.org/packages/HarfBuzzSharp.NativeAssets.Linux/2.8.2.2)

![Install DocIO Renderer NuGet package](linuxdockerimages/install-renderer-nuget-in-file-formats-word.png)
![Install Skiasharp NuGet package](linuxdockerimages/install-skia-sharp-nuget-in-file-formats-word.png)
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -80,7 +80,7 @@ N> To maintain the aspect ratio of output images, you are required to pass the v

## Exporting with a custom image resolution

You can export PDF pages as images with specific attributes, such as zoom factor, tile dimensions (x and y), and tile matrix co-ordinates (x and y), by passing the corresponding values as parameters to the Convert method. zoomFactor is used to specify the zoom level. The number of columns and rows will be calculated based on tileXCount and tileYCount (tile dimensions), while tile x and y co-ordinates determine which tile to use based on tileX and tileY. Refer to the following code for exporting PDF pages into PNG images with the desired resolution.
You can export PDF pages as images with specific attributes, such as zoom factor, tile dimensions (x and y), and tile matrix co-ordinates (x and y), by passing the corresponding values as parameters to the Convert method. zoomFactor is used to specify the zoom level. The number of columns and rows will be calculated based on tileXCount and tileYCount (tile dimensions), while tile x and y co-ordinates determine which tile to use based on tileX and tileY. The ScaleFactor property scales the page to enhance image quality, and it can be set to positive floating-point values, with recommended values of 1 or 1.5f. Refer to the following code for exporting PDF pages into PNG images with the desired resolution.

{% tabs %}
{% highlight C# %}
Expand All @@ -93,6 +93,8 @@ int tileY = 0;

//Initialize PDF to Image converter.
PdfToImageConverter imageConverter = new PdfToImageConverter();
//ScaleFactor value is set to 1, while the default value is 1.5f.
imageConverter.ScaleFactor = 1;
//Load the PDF document as a stream
FileStream inputStream = new FileStream("Input.pdf", FileMode.Open, FileAccess.ReadWrite);
imageConverter.Load(inputStream);
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -80,7 +80,7 @@ N> To maintain the aspect ratio of output images, you are required to pass the v

## Exporting with a custom image resolution

You can export PDF pages as images with specific attributes, such as zoom factor, tile dimensions (x and y), and tile matrix co-ordinates (x and y), by passing the corresponding values as parameters to the Convert method. zoomFactor is used to specify the zoom level. The number of columns and rows will be calculated based on tileXCount and tileYCount (tile dimensions), while tile x and y co-ordinates determine which tile to use based on tileX and tileY. Refer to the following code for exporting PDF pages into PNG images with the desired resolution.
You can export PDF pages as images with specific attributes, such as zoom factor, tile dimensions (x and y), and tile matrix co-ordinates (x and y), by passing the corresponding values as parameters to the Convert method. zoomFactor is used to specify the zoom level. The number of columns and rows will be calculated based on tileXCount and tileYCount (tile dimensions), while tile x and y co-ordinates determine which tile to use based on tileX and tileY. The ScaleFactor property scales the page to enhance image quality, and it can be set to positive floating-point values, with recommended values of 1 or 1.5f. Refer to the following code for exporting PDF pages into PNG images with the desired resolution.

{% tabs %}
{% highlight C# %}
Expand All @@ -93,6 +93,8 @@ int tileY = 0;

//Initialize PDF to Image converter.
PdfToImageConverter imageConverter = new PdfToImageConverter();
//ScaleFactor value is set to 1, while the default value is 1.5f.
imageConverter.ScaleFactor = 1;
//Load the PDF document as a stream
FileStream inputStream = new FileStream("Input.pdf", FileMode.Open, FileAccess.ReadWrite);
imageConverter.Load(inputStream);
Expand Down
12 changes: 12 additions & 0 deletions File-Formats/Presentation/Comments.md
Original file line number Diff line number Diff line change
Expand Up @@ -57,6 +57,8 @@ pptxDoc.Close()

{% endtabs %}

You can download a complete working sample from [GitHub](https://github.com/SyncfusionExamples/PowerPoint-Examples/tree/master/Comments/Add-comments-in-PowerPoint).

## Replying to a comment
The following code example demonstrates how to reply to an existing comment in a slide.

Expand Down Expand Up @@ -111,6 +113,8 @@ pptxDoc.Close()

{% endtabs %}

You can download a complete working sample from [GitHub](https://github.com/SyncfusionExamples/PowerPoint-Examples/tree/master/Comments/Add-reply-comment-in-PowerPoint).

## Modifying the comment
The following code example demonstrates how to modify the content of a comment.

Expand Down Expand Up @@ -164,6 +168,8 @@ pptxDoc.Close()

{% endtabs %}

You can download a complete working sample from [GitHub](https://github.com/SyncfusionExamples/PowerPoint-Examples/tree/master/Comments/Modify-comment-content).

The following code example demonstrates how to modify the author name of a comment.

{% tabs %}
Expand Down Expand Up @@ -217,6 +223,8 @@ pptxDoc.Close()

{% endtabs %}

You can download a complete working sample from [GitHub](https://github.com/SyncfusionExamples/PowerPoint-Examples/tree/master/Comments/Modify-comment-author).

## Deleting the comment

Deleting a comment will remove all its replies from the PowerPoint slide. You can also delete a particular reply comment from a slide. You can delete a comment by specifying its reference or by specifying its position.
Expand Down Expand Up @@ -274,6 +282,8 @@ pptxDoc.Close()

{% endtabs %}

You can download a complete working sample from [GitHub](https://github.com/SyncfusionExamples/PowerPoint-Examples/tree/master/Comments/Delete-comment).

The following code example demonstrates how to delete a comment by specifying its position.

{% tabs %}
Expand Down Expand Up @@ -320,3 +330,5 @@ pptxDoc.Close()
{% endhighlight %}

{% endtabs %}

You can download a complete working sample from [GitHub](https://github.com/SyncfusionExamples/PowerPoint-Examples/tree/master/Comments/Delete-comment-by-position).
34 changes: 34 additions & 0 deletions File-Formats/Presentation/Presentation-to-PDF.md
Original file line number Diff line number Diff line change
Expand Up @@ -94,6 +94,8 @@ pptxDoc.Close()

{% endtabs %}

You can download a complete working sample from [GitHub](https://github.com/SyncfusionExamples/PowerPoint-Examples/tree/master/PPTX-to-PDF-conversion/Convert-PowerPoint-presentation-to-PDF/.NET).

N> 1. Creating an instance of [ChartToImageConverter](https://help.syncfusion.com/cr/file-formats/Syncfusion.OfficeChartToImageConverter.ChartToImageConverter.html) class is mandatory to convert the charts present in the Presentation to PDF. Otherwise, the charts are not exported to the converted PDF
N> 2. The assembly "Syncfusion.SfChart.WPF" is non compliance with FIPS (Federal Information Processing Standard) algorithm policy.
N> 3. **In .NET Core targeting applications**, metafile images such as EMF and WMF have some limitations. So, those images will not preserve in Presentation document to PDF conversion using Essential Presentation.
Expand Down Expand Up @@ -227,6 +229,8 @@ End Sub

{% endtabs %}

You can download a complete working sample from [GitHub](https://github.com/SyncfusionExamples/PowerPoint-Examples/tree/master/PPTX-to-PDF-conversion/Apply-substitution-font-name).

### Upload font stream

The following code example demonstrates how to upload a font stream for missing font while converting a PowerPoint presentation to PDF. The provided alternate font stream is not mandatory to be installed in the production environment.
Expand Down Expand Up @@ -334,6 +338,8 @@ End Sub

{% endtabs %}

You can download a complete working sample from [GitHub](https://github.com/SyncfusionExamples/PowerPoint-Examples/tree/master/PPTX-to-PDF-conversion/Apply-substitution-font-stream).

## Fallback fonts

When a glyph of input text is unavailable in mentioned font, text will not be preserved in PPTX to PDF conversion. To avoid this, Syncfusion PowerPoint library allows you to use a fallback font to preserve the text properly in PPTX to PDF conversion.
Expand Down Expand Up @@ -414,6 +420,8 @@ pptxDoc.Close()

{% endtabs %}

You can download a complete working sample from [GitHub](https://github.com/SyncfusionExamples/PowerPoint-Examples/tree/master/PPTX-to-PDF-conversion/Apply-fallback-fonts).

### Customize Default Fallback Fonts

The following code example demonstrates how to customize default fallback font while converting a PowerPoint presentation to PDF.
Expand Down Expand Up @@ -499,6 +507,8 @@ pptxDoc.Close()

{% endtabs %}

You can download a complete working sample from [GitHub](https://github.com/SyncfusionExamples/PowerPoint-Examples/tree/master/PPTX-to-PDF-conversion/Customize-default-fallback-fonts).

### Add Custom Fallback Fonts

The following code example demonstrates how to add custom fallback fonts while converting a PowerPoint presentation to PDF.
Expand Down Expand Up @@ -608,6 +618,8 @@ pptxDoc.Close()

{% endtabs %}

You can download a complete working sample from [GitHub](https://github.com/SyncfusionExamples/PowerPoint-Examples/tree/master/PPTX-to-PDF-conversion/Add-custom-fallback-fonts).

N> 1. Fallback fonts only supported for Arabic, Hebrew, Hindi, Chinese, Japanese and Korean languages.
N> 2. Its only supported in [Direct PDF](https://help.syncfusion.com/file-formats/presentation/presentation-to-pdf#powerpoint-to-pdf-conversion-in-azure-platform) and [Portable](https://help.syncfusion.com/file-formats/presentation/presentation-to-pdf) PDF conversion modules.

Expand Down Expand Up @@ -700,6 +712,8 @@ public class DocumentWarning : IWarning

{% endtabs %}

You can download a complete working sample from [GitHub](https://github.com/SyncfusionExamples/PowerPoint-Examples/tree/master/PPTX-to-PDF-conversion/Show-warning-for-unsupported-elements).

## Handouts

The Presentation library allows you to convert a PowerPoint presentation to PDF document with [Handouts](https://help.syncfusion.com/cr/file-formats/Syncfusion.PresentationToPdfConverter.PublishOptions.html) option. Thus, the library allows selecting the number of slides to be included per PDF page. This helps converting multiple PowerPoint slides within a single PDF page.
Expand Down Expand Up @@ -745,6 +759,8 @@ pdfDoc.Close()

{% endtabs %}

You can download a complete working sample from [GitHub](https://github.com/SyncfusionExamples/PowerPoint-Examples/tree/master/PPTX-to-PDF-conversion/Convert-PowerPoint-to-PDF-with-handouts).

## Notes pages

The Presentation library allows you to convert a PowerPoint presentation to PDF document with 'notes pages' option, which will includes the notes content while PDF conversion.
Expand Down Expand Up @@ -787,6 +803,8 @@ pdfDoc.Close()

{% endtabs %}

You can download a complete working sample from [GitHub](https://github.com/SyncfusionExamples/PowerPoint-Examples/tree/master/PPTX-to-PDF-conversion/Convert-PowerPoint-to-PDF-with-notes).

## Include hidden slides

The PowerPoint presentation supports hiding the slides in a presentation document. The hidden slides will not be included in the converted PDF document, by default. The Presentation library provides support to include or exclude the hidden slides while converting a PowerPoint presentation to PDF document.
Expand Down Expand Up @@ -830,6 +848,8 @@ pdfDoc.Close()

{% endtabs %}

You can download a complete working sample from [GitHub](https://github.com/SyncfusionExamples/PowerPoint-Examples/tree/master/PPTX-to-PDF-conversion/PowerPoint-to-PDF-with-hidden-slides).

## Recreate Nested Metafile

This setting allows you to regenerate the nested EMF images in the PowerPoint presentation document during PDF conversion.
Expand Down Expand Up @@ -882,6 +902,8 @@ End Using

{% endtabs %}

You can download a complete working sample from [GitHub](https://github.com/SyncfusionExamples/PowerPoint-Examples/tree/master/PPTX-to-PDF-conversion/PowerPoint-to-PDF-with-nested-metafile).

## PDF Conformance

Essential Presentation currently supports following PDF conformances while converting a PowerPoint document to PDF.
Expand Down Expand Up @@ -932,6 +954,8 @@ pdfDoc.Close()

{% endtabs %}

You can download a complete working sample from [GitHub](https://github.com/SyncfusionExamples/PowerPoint-Examples/tree/master/PPTX-to-PDF-conversion/Set-PDF-conformance-level).

## Accessible PDF document

This setting allows you to determine whether to preserve structured document tags in the converted PDF document for accessibility **(508 or PDF/UA compliance)** support. This property will set the title and description for images, diagrams, and other objects in the generated PDF document. This information will be helpful for **people with vision or cognitive impairments** who may not be able to see or understand the object.
Expand Down Expand Up @@ -1003,6 +1027,8 @@ End Using

{% endtabs %}

You can download a complete working sample from [GitHub](https://github.com/SyncfusionExamples/PowerPoint-Examples/tree/master/PPTX-to-PDF-conversion/Convert-PowerPoint-into-accessible-PDF).

## Chart quality

The Presentation library provides an option to decide the quality of the charts to optimize the converted PDF document size.
Expand Down Expand Up @@ -1050,6 +1076,8 @@ pdfDoc.Close()

{% endtabs %}

You can download a complete working sample from [GitHub](https://github.com/SyncfusionExamples/PowerPoint-Examples/tree/master/PPTX-to-PDF-conversion/Set-chart-quality).

## Optimizing the converted PDF document size

**Optimizing the identical images**
Expand Down Expand Up @@ -1096,6 +1124,8 @@ pdfDoc.Close()

{% endtabs %}

You can download a complete working sample from [GitHub](https://github.com/SyncfusionExamples/PowerPoint-Examples/tree/master/PPTX-to-PDF-conversion/Optimize-duplicate-images).

**Optimizing the image quality and resolution**

You may have high resolution images in the PowerPoint slides which will impact the size of the converted PDF document. The Presentation library allows you to optimize the document size, by adjusting the quality and resolution of the images while converting the PowerPoint presentation to PDF document.
Expand Down Expand Up @@ -1144,6 +1174,8 @@ pdfDoc.Close()

{% endtabs %}

You can download a complete working sample from [GitHub](https://github.com/SyncfusionExamples/PowerPoint-Examples/tree/master/PPTX-to-PDF-conversion/Optimize-image-quality-and-resolution).

## PowerPoint to PDF conversion in Azure platform

The Syncfusion PowerPoint library supports converting the PowerPoint document to PDF in Azure platform. The following code sample demonstrates how to convert a PowerPoint presentation to PDF in Azure platform.
Expand Down Expand Up @@ -1186,6 +1218,8 @@ pdfDoc.Close()

{% endtabs %}

You can download a complete working sample from [GitHub](https://github.com/SyncfusionExamples/PowerPoint-Examples/tree/master/PPTX-to-PDF-conversion/Convert-PowerPoint-presentation-to-PDF/Azure).

## See Also

* [How to convert PPTX to PDF in Blazor WebAssembly (WASM)?](https://support.syncfusion.com/kb/article/12120/how-to-convert-pptx-to-pdf-in-blazor-webassembly-wasm)
Loading