You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Copy file name to clipboardExpand all lines: Document-Processing/Word/Conversions/Word-To-PDF/NET/Word-to-pdf-settings.md
+74Lines changed: 74 additions & 0 deletions
Display the source diff
Display the rich diff
Original file line number
Diff line number
Diff line change
@@ -1350,3 +1350,77 @@ document.Close()
1350
1350
{% endtabs %}
1351
1351
1352
1352
You can download a complete working sample from [GitHub](https://github.com/SyncfusionExamples/DocIO-Examples/tree/main/Word-to-PDF-Conversion/Restrict-permission-in-PDF).
1353
+
1354
+
## Apply Matte to Transparent Images
1355
+
1356
+
This setting allows you to determine whether to **apply a matte color to transparent images** during Word to PDF conversion, ensuring they render cleanly without unwanted borders or artifacts in the final PDF.
1357
+
1358
+
The following code sample shows how to apply a matte color to transparent images during Word to PDF conversion.
1359
+
1360
+
{% tabs %}
1361
+
1362
+
{% highlight c# tabtitle="C# [Cross-platform]" %}
1363
+
1364
+
FileStream fileStream = new FileStream("Template.docx", FileMode.Open);
1365
+
// Loads an existing Word document
1366
+
WordDocument wordDocument = new WordDocument(fileStream, FormatType.Docx);
1367
+
// Instantiates DocIORenderer instance for Word to PDF conversion
1368
+
DocIORenderer renderer = new DocIORenderer();
1369
+
// Set to true to apply a matte color to transparent images.
Copy file name to clipboardExpand all lines: Document-Processing/Word/Conversions/Word-To-PDF/NET/word-to-pdf.md
+6-2Lines changed: 6 additions & 2 deletions
Display the source diff
Display the rich diff
Original file line number
Diff line number
Diff line change
@@ -1,12 +1,12 @@
1
1
---
2
-
title: Convert Word to PDF in C# | DocIO | Syncfusion
2
+
title: Convert Word to PDF in C# using DocIO | Syncfusion
3
3
description: Learn how to convert a Word document to PDF, PDF/A, and PDF/UA using the .NET Word (DocIO) library without Microsoft Word or interop dependencies.
4
4
platform: document-processing
5
5
control: DocIO
6
6
documentation: UG
7
7
---
8
8
9
-
# Convert Word to PDF using Syncfusion<sup>®</sup> Word (DocIO) library
9
+
# Convert Word to PDF using Syncfusion® Word (DocIO) library
10
10
11
11
Syncfusion<sup>®</sup> Word library (DocIO) allows you to convert Word document to PDF within a few lines of code in .NET applications and also it does not require Adobe and Microsoft Word application to be installed in the machine. Using this, you can create an input Word document from scratch or load an existing Word document and then easily convert to PDF.
12
12
@@ -238,6 +238,10 @@ You can preserve Ole Equation as bitmap image in the converted PDF document. For
238
238
239
239
You can restrict all the permission in a PDF document using [PdfPermissionsFlags](https://help.syncfusion.com/cr/document-processing/Syncfusion.Pdf.Security.PdfPermissionsFlags.html). For further information, click [here](https://help.syncfusion.com/document-processing/word/conversions/word-to-pdf/net/word-to-pdf-settings#restrict-all-permission-in-a-pdf-document).
240
240
241
+
### Apply Matte to Transparent Images
242
+
243
+
This setting allows you to determine whether to **apply a matte color to transparent images** during Word to PDF conversion, ensuring they render cleanly without unwanted borders or artifacts in the final PDF. For further information, click [here](https://help.syncfusion.com/document-processing/word/conversions/word-to-pdf/net/word-to-pdf-settings#restrict-all-permission-in-a-pdf-document).
244
+
241
245
## Font Substitution
242
246
243
247
When the necessary fonts used in the Word document has not been installed in the production machine, then Essential<sup>®</sup> DocIO uses the ”Microsoft Sans Serif” as default font for rendering the text. This leads to preservation difference in generated PDF as each font has different glyphs for characters.
Copy file name to clipboardExpand all lines: Document-Processing/Word/Conversions/Word-To-PDF/overview.md
+4Lines changed: 4 additions & 0 deletions
Display the source diff
Display the rich diff
Original file line number
Diff line number
Diff line change
@@ -240,6 +240,10 @@ You can preserve Ole Equation as bitmap image in the converted PDF document. For
240
240
241
241
You can restrict all the permission in a PDF document using [PdfPermissionsFlags](https://help.syncfusion.com/cr/document-processing/Syncfusion.Pdf.Security.PdfPermissionsFlags.html). For further information, click [here](https://help.syncfusion.com/document-processing/word/conversions/word-to-pdf/net/word-to-pdf-settings#restrict-all-permission-in-a-pdf-document).
242
242
243
+
### Apply Matte to Transparent Images
244
+
245
+
This setting allows you to determine whether to **apply a matte color to transparent images** during Word to PDF conversion, ensuring they render cleanly without unwanted borders or artifacts in the final PDF. For further information, click [here](https://help.syncfusion.com/document-processing/word/conversions/word-to-pdf/net/word-to-pdf-settings#restrict-all-permission-in-a-pdf-document).
246
+
243
247
## Font Substitution
244
248
245
249
When the necessary fonts used in the Word document has not been installed in the production machine, then Essential<sup>®</sup> DocIO uses the ”Microsoft Sans Serif” as default font for rendering the text. This leads to preservation difference in generated PDF as each font has different glyphs for characters.
0 commit comments