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/PowerPoint/Conversions/PowerPoint-To-Image/NET/Fallback-Fonts-in-PPTXtoImage-Conversion.md
+42-2Lines changed: 42 additions & 2 deletions
Display the source diff
Display the rich diff
Original file line number
Diff line number
Diff line change
@@ -103,6 +103,45 @@ using (FileStream fileStreamInput = new FileStream("Template.pptx", FileMode.Ope
103
103
104
104
You can download a complete working sample from [GitHub](https://github.com/SyncfusionExamples/PowerPoint-Examples/tree/master/PPTX-to-Image-conversion/Fallback-fonts-based-on-scripttype).
105
105
106
+
## Fallback Symbols based on script type
107
+
108
+
The following code example demonstrates how a user can add fallback fonts based on the script types, which Presentation considers internally when converting a PowerPoint presentation to an Image.
109
+
110
+
{% tabs %}
111
+
112
+
{% highlight C# tabtitle="C# [Cross-platform]" %}
113
+
//Load the PowerPoint presentation into stream.
114
+
using (FileStream fileStreamInput = new FileStream("Template.pptx", FileMode.Open, FileAccess.Read))
115
+
{
116
+
//Open the existing PowerPoint presentation with loaded stream.
117
+
using (IPresentation pptxDoc = Presentation.Open(fileStreamInput))
118
+
{
119
+
//Adds fallback font for basic symbols like bullet characters.
Copy file name to clipboardExpand all lines: Document-Processing/PowerPoint/Conversions/PowerPoint-To-PDF/NET/Fallback-Fonts-in-PPTXtoPDF-Conversion.md
+91-2Lines changed: 91 additions & 2 deletions
Display the source diff
Display the rich diff
Original file line number
Diff line number
Diff line change
@@ -210,6 +210,94 @@ pptxDoc.Close()
210
210
211
211
You can download a complete working sample from [GitHub](https://github.com/SyncfusionExamples/PowerPoint-Examples/tree/master/PPTX-to-PDF-conversion/Fallback-fonts-based-on-scripttype).
212
212
213
+
## Fallback Symbols based on script type
214
+
215
+
The following code example demonstrates how a user can add fallback fonts based on the script types, which Presentation considers internally when converting a PowerPoint presentation to PDF.
216
+
217
+
{% tabs %}
218
+
219
+
{% highlight C# tabtitle="C# [Cross-platform]" %}
220
+
//Load the PowerPoint presentation into stream.
221
+
using (FileStream fileStreamInput = new FileStream("Template.pptx", FileMode.Open, FileAccess.Read))
222
+
{
223
+
//Open the existing PowerPoint presentation with loaded stream.
224
+
using (IPresentation pptxDoc = Presentation.Open(fileStreamInput))
225
+
{
226
+
//Adds fallback font for basic symbols like bullet characters.
Copy file name to clipboardExpand all lines: Document-Processing/Word/Conversions/Word-To-Image/NET/Fallback-fonts-word-to-image.md
+46-2Lines changed: 46 additions & 2 deletions
Display the source diff
Display the rich diff
Original file line number
Diff line number
Diff line change
@@ -111,6 +111,49 @@ using (FileStream inputStream = new FileStream("Template.docx", FileMode.Open, F
111
111
112
112
You can download a complete working sample from [GitHub](https://github.com/SyncfusionExamples/DocIO-Examples/tree/main/Word-to-Image-conversion/Fallback-fonts-based-on-scripttype).
113
113
114
+
## Fallback Symbols based on script type
115
+
116
+
The following code example demonstrates how a user can add fallback fonts based on the script types, which DocIO considers internally when converting a Word document to image.
117
+
118
+
{% tabs %}
119
+
120
+
{% highlight c# tabtitle="C# [Cross-platform]" %}
121
+
//Opens the file as stream.
122
+
using (FileStream inputStream = new FileStream("Template.docx", FileMode.Open, FileAccess.Read))
123
+
{
124
+
//Loads an existing Word document file stream.
125
+
using (WordDocument wordDocument = new WordDocument(inputStream, Syncfusion.DocIO.FormatType.Docx))
126
+
{
127
+
//Adds fallback font for basic symbols like bullet characters.
0 commit comments