From b53e2b03104c443b60eecd78b2a21cc709feb9c3 Mon Sep 17 00:00:00 2001 From: Lokesh Baskar Date: Wed, 20 Dec 2023 12:07:19 +0530 Subject: [PATCH 1/4] ES-853397-Added github samples link for fallback font code snippet --- File-Formats/DocIO/word-to-image.md | 8 ++++++++ File-Formats/DocIO/word-to-pdf.md | 8 ++++++++ 2 files changed, 16 insertions(+) diff --git a/File-Formats/DocIO/word-to-image.md b/File-Formats/DocIO/word-to-image.md index 0fe6661c2..0c6f9077e 100644 --- a/File-Formats/DocIO/word-to-image.md +++ b/File-Formats/DocIO/word-to-image.md @@ -382,6 +382,8 @@ using (FileStream inputStream = new FileStream("Template.docx", FileMode.Open, F {% endtabs %} +You can download a complete working sample from [GitHub](https://github.com/SyncfusionExamples/DocIO-Examples/tree/main/Word-to-Image-conversion/Initialize-default-fallback-fonts). + ### Fallback fonts based on script type 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 an Image. @@ -433,6 +435,8 @@ using (FileStream inputStream = new FileStream("Template.docx", FileMode.Open, F {% endtabs %} +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). + ### Fallback fonts for range of Unicode text Users can set fallback fonts for specific Unicode range of text to be used in Word to Image conversion. @@ -486,6 +490,8 @@ using (FileStream inputStream = new FileStream("Template.docx", FileMode.Open, F {% endtabs %} +You can download a complete working sample from [GitHub](https://github.com/SyncfusionExamples/DocIO-Examples/tree/main/Word-to-Image-conversion/Fallback-fonts-for-Unicode-range). + ### Modify the exiting fallback fonts The following code example demonstrates how user can modify or customize the existing fallback fonts using *FontNames* API while converting a Word document to an Image. @@ -535,6 +541,8 @@ using (FileStream inputStream = new FileStream("Template.docx", FileMode.Open, F {% endtabs %} +You can download a complete working sample from [GitHub](https://github.com/SyncfusionExamples/DocIO-Examples/tree/main/Word-to-Image-conversion/Modify-the-exiting-fallback-fonts). + ### Supported script types The following table illustrates the supported script types by the .NET Word library (DocIO) in Word to Image conversion. diff --git a/File-Formats/DocIO/word-to-pdf.md b/File-Formats/DocIO/word-to-pdf.md index 541615013..253c451ee 100644 --- a/File-Formats/DocIO/word-to-pdf.md +++ b/File-Formats/DocIO/word-to-pdf.md @@ -1772,6 +1772,8 @@ End Using {% endtabs %} +You can download a complete working sample from [GitHub](https://github.com/SyncfusionExamples/DocIO-Examples/tree/main/Word-to-PDF-Conversion/Initialize-default-fallback-fonts). + ### Fallback fonts based on script type 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 PDF. @@ -1877,6 +1879,8 @@ End Using {% endtabs %} +You can download a complete working sample from [GitHub](https://github.com/SyncfusionExamples/DocIO-Examples/tree/main/Word-to-PDF-Conversion/Fallback-fonts-based-on-scripttype). + ### Fallback fonts for range of Unicode text Users can set fallback fonts for specific Unicode range of text to be used in Word to PDF conversion. @@ -1984,6 +1988,8 @@ End Using {% endtabs %} +You can download a complete working sample from [GitHub](https://github.com/SyncfusionExamples/DocIO-Examples/tree/main/Word-to-PDF-Conversion/Fallback-fonts-for-Unicode-range). + ### Modify the exiting fallback fonts The following code example demonstrates how user can modify or customize the existing fallback fonts using *FontNames* API while converting a Word document to PDF. @@ -2083,6 +2089,8 @@ End Using {% endtabs %} +You can download a complete working sample from [GitHub](https://github.com/SyncfusionExamples/DocIO-Examples/tree/main/Word-to-PDF-Conversion/Modify-the-exiting-fallback-fonts). + ### Supported script types The following table illustrates the supported script types by the .NET Word library (DocIO) in Word to PDF conversion. From 911b6e02c9a8abebf89a17a1346f98281b0bd343 Mon Sep 17 00:00:00 2001 From: "AzureAD\\VenkateshMurugananda" Date: Wed, 20 Dec 2023 15:39:46 +0530 Subject: [PATCH 2/4] API link added --- File-Formats/DocIO/Working-with-LaTeX.md | 60 ++++++++++++++++++------ 1 file changed, 45 insertions(+), 15 deletions(-) diff --git a/File-Formats/DocIO/Working-with-LaTeX.md b/File-Formats/DocIO/Working-with-LaTeX.md index e1b529d86..fd60e908d 100644 --- a/File-Formats/DocIO/Working-with-LaTeX.md +++ b/File-Formats/DocIO/Working-with-LaTeX.md @@ -11,7 +11,7 @@ The .NET Word (DocIO) library allows to create mathematical equation in Word doc ## Accent -Add **accent** equation to a Word document using the LaTeX through **AppendMath** API. +Add **accent** equation to a Word document using the LaTeX through [AppendMath](https://help.syncfusion.com/cr/file-formats/Syncfusion.DocIO.DLS.WParagraph.html#Syncfusion_DocIO_DLS_WParagraph_AppendMath_System_String_) API. The following code example illustrates how to create accent equation using LaTeX in Word document. @@ -65,6 +65,8 @@ document.Save("Result.docx", FormatType.Docx) {% endhighlight %} {% endtabs %} +You can download a complete working sample from [GitHub](https://github.com/SyncfusionExamples/DocIO-Examples/tree/main/Mathematical-Equation/LaTeX-equations/Accent/.NET). + The following table demonstrates the LaTeX equivalent to professional format accent equations. @@ -149,7 +151,7 @@ The following table demonstrates the LaTeX equivalent to professional format acc ## Bar -Add **bar** equation to a Word document using the LaTeX through **AppendMath** API. +Add **bar** equation to a Word document using the LaTeX through [AppendMath](https://help.syncfusion.com/cr/file-formats/Syncfusion.DocIO.DLS.WParagraph.html#Syncfusion_DocIO_DLS_WParagraph_AppendMath_System_String_) API. The following code example illustrates how to create bar equation using LaTeX in Word document. @@ -203,6 +205,8 @@ document.Save("Result.docx", FormatType.Docx) {% endhighlight %} {% endtabs %} +You can download a complete working sample from [GitHub](https://github.com/SyncfusionExamples/DocIO-Examples/tree/main/Mathematical-Equation/LaTeX-equations/Bar/.NET). + The following table demonstrates the LaTeX equivalent to professional format bar equations.
@@ -227,7 +231,7 @@ The following table demonstrates the LaTeX equivalent to professional format bar ## Box -Add **box** equation to a Word document using the LaTeX through **AppendMath** API. +Add **box** equation to a Word document using the LaTeX through [AppendMath](https://help.syncfusion.com/cr/file-formats/Syncfusion.DocIO.DLS.WParagraph.html#Syncfusion_DocIO_DLS_WParagraph_AppendMath_System_String_) API. The following code example illustrates how to create box equation using LaTeX in Word document. @@ -281,6 +285,8 @@ document.Save("Result.docx", FormatType.Docx) {% endhighlight %} {% endtabs %} +You can download a complete working sample from [GitHub](https://github.com/SyncfusionExamples/DocIO-Examples/tree/main/Mathematical-Equation/LaTeX-equations/Box/.NET). + The following table demonstrates the LaTeX equivalent to professional format box equations.
@@ -300,7 +306,7 @@ The following table demonstrates the LaTeX equivalent to professional format box ## Border Box -Add **border box** equation to a Word document using the LaTeX through **AppendMath** API. +Add **border box** equation to a Word document using the LaTeX through [AppendMath](https://help.syncfusion.com/cr/file-formats/Syncfusion.DocIO.DLS.WParagraph.html#Syncfusion_DocIO_DLS_WParagraph_AppendMath_System_String_) API. The following code example illustrates how to create border box equation using LaTeX in Word document. @@ -354,6 +360,8 @@ document.Save("Result.docx", FormatType.Docx) {% endhighlight %} {% endtabs %} +You can download a complete working sample from [GitHub](https://github.com/SyncfusionExamples/DocIO-Examples/tree/main/Mathematical-Equation/LaTeX-equations/Border-Box/.NET). + The following table demonstrates the LaTeX equivalent to professional format border box equations.
@@ -373,7 +381,7 @@ The following table demonstrates the LaTeX equivalent to professional format bor ## Delimiter -Add **delimiter** equation to a Word document using the LaTeX through **AppendMath** API. +Add **delimiter** equation to a Word document using the LaTeX through [AppendMath](https://help.syncfusion.com/cr/file-formats/Syncfusion.DocIO.DLS.WParagraph.html#Syncfusion_DocIO_DLS_WParagraph_AppendMath_System_String_) API. The following code example illustrates how to create delimiter equation using LaTeX in Word document. @@ -427,6 +435,8 @@ document.Save("Result.docx", FormatType.Docx) {% endhighlight %} {% endtabs %} +You can download a complete working sample from [GitHub](https://github.com/SyncfusionExamples/DocIO-Examples/tree/main/Mathematical-Equation/LaTeX-equations/Delimiter/.NET). + The following table demonstrates the LaTeX equivalent to professional format delimiter equations.
@@ -581,7 +591,7 @@ The following table demonstrates the LaTeX equivalent to professional format del ## Fraction -Add **fraction** equation to a Word document using the LaTeX through **AppendMath** API. +Add **fraction** equation to a Word document using the LaTeX through [AppendMath](https://help.syncfusion.com/cr/file-formats/Syncfusion.DocIO.DLS.WParagraph.html#Syncfusion_DocIO_DLS_WParagraph_AppendMath_System_String_) API. The following code example illustrates how to create fraction equation using LaTeX in Word document. @@ -635,6 +645,8 @@ document.Save("Result.docx", FormatType.Docx) {% endhighlight %} {% endtabs %} +You can download a complete working sample from [GitHub](https://github.com/SyncfusionExamples/DocIO-Examples/tree/main/Mathematical-Equation/LaTeX-equations/Fraction/.NET). + The following table demonstrates the LaTeX equivalent to professional format fraction equations.
@@ -669,7 +681,7 @@ The following table demonstrates the LaTeX equivalent to professional format fra ## Function -Add **function** equation to a Word document using the LaTeX through **AppendMath** API. +Add **function** equation to a Word document using the LaTeX through [AppendMath](https://help.syncfusion.com/cr/file-formats/Syncfusion.DocIO.DLS.WParagraph.html#Syncfusion_DocIO_DLS_WParagraph_AppendMath_System_String_) API. The following code example illustrates how to create function equation using LaTeX in Word document. @@ -723,6 +735,8 @@ document.Save("Result.docx", FormatType.Docx) {% endhighlight %} {% endtabs %} +You can download a complete working sample from [GitHub](https://github.com/SyncfusionExamples/DocIO-Examples/tree/main/Mathematical-Equation/LaTeX-equations/Function/.NET). + The following table demonstrates the LaTeX equivalent to professional format function equations.
@@ -887,7 +901,7 @@ The following table demonstrates the LaTeX equivalent to professional format fun ## Group character -Add **group character** equation to a Word document using the LaTeX through **AppendMath** API. +Add **group character** equation to a Word document using the LaTeX through [AppendMath](https://help.syncfusion.com/cr/file-formats/Syncfusion.DocIO.DLS.WParagraph.html#Syncfusion_DocIO_DLS_WParagraph_AppendMath_System_String_) API. The following code example illustrates how to create group character equation using LaTeX in Word document. @@ -941,6 +955,8 @@ document.Save("Result.docx", FormatType.Docx) {% endhighlight %} {% endtabs %} +You can download a complete working sample from [GitHub](https://github.com/SyncfusionExamples/DocIO-Examples/tree/main/Mathematical-Equation/LaTeX-equations/Group-character/.NET). + The following table demonstrates the LaTeX equivalent to professional format group character equations.
@@ -965,7 +981,7 @@ The following table demonstrates the LaTeX equivalent to professional format gro ## Limit -Add **limit** equation to a Word document using the LaTeX through **AppendMath** API. +Add **limit** equation to a Word document using the LaTeX through [AppendMath](https://help.syncfusion.com/cr/file-formats/Syncfusion.DocIO.DLS.WParagraph.html#Syncfusion_DocIO_DLS_WParagraph_AppendMath_System_String_) API. The following code example illustrates how to create limit equation using LaTeX in Word document. @@ -1019,6 +1035,8 @@ document.Save("Result.docx", FormatType.Docx) {% endhighlight %} {% endtabs %} +You can download a complete working sample from [GitHub](https://github.com/SyncfusionExamples/DocIO-Examples/tree/main/Mathematical-Equation/LaTeX-equations/Limit/.NET). + The following table demonstrates the LaTeX equivalent to professional format limit equations.
@@ -1048,7 +1066,7 @@ The following table demonstrates the LaTeX equivalent to professional format lim ## Matrix -Add **matrix** equation to a Word document using the LaTeX through **AppendMath** API. +Add **matrix** equation to a Word document using the LaTeX through [AppendMath](https://help.syncfusion.com/cr/file-formats/Syncfusion.DocIO.DLS.WParagraph.html#Syncfusion_DocIO_DLS_WParagraph_AppendMath_System_String_) API. The following code example illustrates how to create matrix equation using LaTeX in Word document. @@ -1102,6 +1120,8 @@ document.Save("Result.docx", FormatType.Docx) {% endhighlight %} {% endtabs %} +You can download a complete working sample from [GitHub](https://github.com/SyncfusionExamples/DocIO-Examples/tree/main/Mathematical-Equation/LaTeX-equations/Matrix/.NET). + The following table demonstrates the LaTeX equivalent to professional format matrix equations.
@@ -1121,7 +1141,7 @@ The following table demonstrates the LaTeX equivalent to professional format mat ## N-array -Add **N-array** equation to a Word document using the LaTeX through **AppendMath** API. +Add **N-array** equation to a Word document using the LaTeX through [AppendMath](https://help.syncfusion.com/cr/file-formats/Syncfusion.DocIO.DLS.WParagraph.html#Syncfusion_DocIO_DLS_WParagraph_AppendMath_System_String_) API. The following code example illustrates how to create N-array equation using LaTeX in Word document. @@ -1175,6 +1195,8 @@ document.Save("Result.docx", FormatType.Docx) {% endhighlight %} {% endtabs %} +You can download a complete working sample from [GitHub](https://github.com/SyncfusionExamples/DocIO-Examples/tree/main/Mathematical-Equation/LaTeX-equations/N-array/.NET). + The following table demonstrates the LaTeX equivalent to professional format N-array equations.
@@ -1244,7 +1266,7 @@ The following table demonstrates the LaTeX equivalent to professional format N-a ## Radical -Add **radical** equation to a Word document using the LaTeX through **AppendMath** API. +Add **radical** equation to a Word document using the LaTeX through [AppendMath](https://help.syncfusion.com/cr/file-formats/Syncfusion.DocIO.DLS.WParagraph.html#Syncfusion_DocIO_DLS_WParagraph_AppendMath_System_String_) API. The following code example illustrates how to create radical equation using LaTeX in Word document. @@ -1298,6 +1320,8 @@ document.Save("Result.docx", FormatType.Docx) {% endhighlight %} {% endtabs %} +You can download a complete working sample from [GitHub](https://github.com/SyncfusionExamples/DocIO-Examples/tree/main/Mathematical-Equation/LaTeX-equations/Radical/.NET). + The following table demonstrates the LaTeX equivalent to professional format radical equations.
@@ -1322,7 +1346,7 @@ The following table demonstrates the LaTeX equivalent to professional format rad ## SubSuperScript -Add **SubSuperScript** equation to a Word document using the LaTeX through **AppendMath** API. +Add **SubSuperScript** equation to a Word document using the LaTeX through [AppendMath](https://help.syncfusion.com/cr/file-formats/Syncfusion.DocIO.DLS.WParagraph.html#Syncfusion_DocIO_DLS_WParagraph_AppendMath_System_String_) API. The following code example illustrates how to create SubSuperScript equation using LaTeX in Word document. @@ -1376,6 +1400,8 @@ document.Save("Result.docx", FormatType.Docx) {% endhighlight %} {% endtabs %} +You can download a complete working sample from [GitHub](https://github.com/SyncfusionExamples/DocIO-Examples/tree/main/Mathematical-Equation/LaTeX-equations/SubSuperScript/.NET). + The following table demonstrates the LaTeX equivalent to professional format SubSuperScript equations.
@@ -1400,7 +1426,7 @@ The following table demonstrates the LaTeX equivalent to professional format Sub ## Left SubSuperScript -Add **Left SubSuperScript** equation to a Word document using the LaTeX through **AppendMath** API. +Add **Left SubSuperScript** equation to a Word document using the LaTeX through [AppendMath](https://help.syncfusion.com/cr/file-formats/Syncfusion.DocIO.DLS.WParagraph.html#Syncfusion_DocIO_DLS_WParagraph_AppendMath_System_String_) API. The following code example illustrates how to create Left SubSuperScript equation using LaTeX in Word document. @@ -1454,6 +1480,8 @@ document.Save("Result.docx", FormatType.Docx) {% endhighlight %} {% endtabs %} +You can download a complete working sample from [GitHub](https://github.com/SyncfusionExamples/DocIO-Examples/tree/main/Mathematical-Equation/LaTeX-equations/Left-SubSuperScript/.NET). + The following table demonstrates the LaTeX equivalent to professional format Left SubSuperScript equations.
@@ -1473,7 +1501,7 @@ The following table demonstrates the LaTeX equivalent to professional format Lef ## Right SubSuperScript -Add **Right SubSuperScript** equation to a Word document using the LaTeX through **AppendMath** API. +Add **Right SubSuperScript** equation to a Word document using the LaTeX through [AppendMath](https://help.syncfusion.com/cr/file-formats/Syncfusion.DocIO.DLS.WParagraph.html#Syncfusion_DocIO_DLS_WParagraph_AppendMath_System_String_) API. The following code example illustrates how to create Right SubSuperScript equation using LaTeX in Word document. @@ -1527,6 +1555,8 @@ document.Save("Result.docx", FormatType.Docx) {% endhighlight %} {% endtabs %} +You can download a complete working sample from [GitHub](https://github.com/SyncfusionExamples/DocIO-Examples/tree/main/Mathematical-Equation/LaTeX-equations/Right-SubSuperScript/.NET). + The following table demonstrates the LaTeX equivalent to professional format Right SubSuperScript equations.
From bd15568be29669ca11542d6fff9682fd654d51fc Mon Sep 17 00:00:00 2001 From: "AzureAD\\VenkateshMurugananda" Date: Wed, 20 Dec 2023 15:47:41 +0530 Subject: [PATCH 3/4] Modified --- File-Formats/DocIO/Working-with-LaTeX.md | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/File-Formats/DocIO/Working-with-LaTeX.md b/File-Formats/DocIO/Working-with-LaTeX.md index fd60e908d..dc3e0e5d4 100644 --- a/File-Formats/DocIO/Working-with-LaTeX.md +++ b/File-Formats/DocIO/Working-with-LaTeX.md @@ -1480,7 +1480,7 @@ document.Save("Result.docx", FormatType.Docx) {% endhighlight %} {% endtabs %} -You can download a complete working sample from [GitHub](https://github.com/SyncfusionExamples/DocIO-Examples/tree/main/Mathematical-Equation/LaTeX-equations/Left-SubSuperScript/.NET). +You can download a complete working sample from [GitHub](https://github.com/SyncfusionExamples/DocIO-Examples/tree/main/Mathematical-Equation/LaTeX-equations/Left-SubSuperScript/.NET) The following table demonstrates the LaTeX equivalent to professional format Left SubSuperScript equations. From 08f1c8b002c00107cdc8552ec0eb419500fcbeb8 Mon Sep 17 00:00:00 2001 From: "AzureAD\\VenkateshMurugananda" Date: Wed, 20 Dec 2023 15:50:55 +0530 Subject: [PATCH 4/4] Modified --- File-Formats/DocIO/Working-with-LaTeX.md | 12 ++++++------ 1 file changed, 6 insertions(+), 6 deletions(-) diff --git a/File-Formats/DocIO/Working-with-LaTeX.md b/File-Formats/DocIO/Working-with-LaTeX.md index dc3e0e5d4..c43addbf2 100644 --- a/File-Formats/DocIO/Working-with-LaTeX.md +++ b/File-Formats/DocIO/Working-with-LaTeX.md @@ -995,7 +995,7 @@ using WordDocument document = new WordDocument(); document.EnsureMinimal(); //Append an limit equation using LaTeX. -document.LastParagraph.AppendMath(@"\lim\belowb{a}"); +document.LastParagraph.AppendMath(@"\lim\below{b}{a}"); //Save the Word document to MemoryStream using MemoryStream stream = new MemoryStream(); @@ -1012,7 +1012,7 @@ using WordDocument document = new WordDocument(); document.EnsureMinimal(); //Append an limit equation using LaTeX. -document.LastParagraph.AppendMath(@"\lim\belowb{a}"); +document.LastParagraph.AppendMath(@"\lim\below{b}{a}"); //Save the Word document. document.Save("Result.docx", FormatType.Docx); @@ -1027,7 +1027,7 @@ Dim document As WordDocument = New WordDocument() document.EnsureMinimal() 'Append an limit equation using LaTeX. -document.LastParagraph.AppendMath(@"\lim\belowb{a}") +document.LastParagraph.AppendMath(@"\lim\below{b}{a}") 'Save the Word document. document.Save("Result.docx", FormatType.Docx) @@ -1050,17 +1050,17 @@ The following table demonstrates the LaTeX equivalent to professional format lim - + - + - +
1. Limit equation\lim\belowb{a}\lim\below{b}{a}
2. Limit equation\min\belowb{a}\min\below{b}{a}
3. Limit equation\max\belowb{a}\max\below{b}{a}