From 7065978b098eb7f6e442010be8eaad6c7f191f96 Mon Sep 17 00:00:00 2001 From: Srihariharan Date: Thu, 25 Jan 2024 14:39:23 +0530 Subject: [PATCH] 867572: Resolved liquid syntax error. --- File-Formats/PDF/Split-Documents.md | 22 ++++++++++++++++++++++ 1 file changed, 22 insertions(+) diff --git a/File-Formats/PDF/Split-Documents.md b/File-Formats/PDF/Split-Documents.md index e32fcaf06..b6a8e3d28 100644 --- a/File-Formats/PDF/Split-Documents.md +++ b/File-Formats/PDF/Split-Documents.md @@ -81,6 +81,8 @@ Refer to the following code example to split a range of pages. {% tabs %} {% highlight c# tabtitle="C# [Cross-platform]" %} +{% raw %} + //Load the existing PDF file. PdfLoadedDocument loadDocument = new PdfLoadedDocument(new FileStream("Input.pdf", FileMode.Open)); //Subscribe to the document split event. @@ -98,10 +100,13 @@ loadDocument.SplitByRanges(new int[,] { { 0, 5 }, { 5, 10 } }); //Close the document. loadDocument.Close(true); +{% endraw %} {% endhighlight %} {% highlight c# tabtitle="C# [Windows-specific]" %} +{% raw %} +//Create the values. int[,] values = new int[,] { { 2, 5 }, { 8, 10 } }; //Load the PDF document PdfLoadedDocument loadedDocument = new PdfLoadedDocument("Input.pdf"); @@ -112,10 +117,14 @@ loadedDocument.SplitByRanges(destinationFilePattern, values); //close the document loadedDocument.Close(true); +{% endraw %} {% endhighlight %} {% highlight vb.net tabtitle="VB.NET [Windows-specific]" %} +{% raw %} +'Create the values. +Dim values As Integer(,) = New Integer(,) {{2, 5},{8, 10}} 'Load the PDF document. Dim loadedDocument As New PdfLoadedDocument("Input.pdf") 'Set a output path @@ -125,6 +134,7 @@ loadedDocument.SplitByRanges(destinationFilePattern, values) 'Close the document. loadedDocument.Close(True) +{% endraw %} {% endhighlight %} {% endtabs %} @@ -301,6 +311,7 @@ The Syncfusion PDF library enables the splitting of PDF documents and offers the {% tabs %} {% highlight c# tabtitle="C# [Cross-platform]" %} +{% raw %} //Load the existing PDF file. PdfLoadedDocument loadDocument = new PdfLoadedDocument(new FileStream("Input.pdf", FileMode.Open)); @@ -322,9 +333,11 @@ loadDocument.SplitByRanges(new int[,] { { 0, 5 }, { 5, 10 } }, splitOptions); //Close the document. loadDocument.Close(true); +{% endraw %} {% endhighlight %} {% highlight c# tabtitle="C# [Windows-specific]" %} +{% raw %} //Create the values. int[,] values = new int[,] { { 2, 5 }, { 8, 10 } }; @@ -341,9 +354,11 @@ loadedDocument.SplitByRanges(destinationFilePattern, values, splitOptions); //Close the document. loadedDocument.Close(true); +{% endraw %} {% endhighlight %} {% highlight vb.net tabtitle="VB.NET [Windows-specific]" %} +{% raw %} 'Create the values. Dim values As Integer(,) = New Integer(,) {{2, 5},{8, 10}} @@ -361,6 +376,7 @@ loadedDocument.SplitByRanges(destinationFilePattern, values, splitOptions) 'Close the document. loadedDocument.Close(True) +{% endraw %} {% endhighlight %} {% endtabs %} @@ -375,6 +391,7 @@ The Syncfusion PDF library enables the splitting of PDF documents and offers the {% tabs %} {% highlight c# tabtitle="C# [Cross-platform]" %} +{% raw %} //Load an existing PDF file. PdfLoadedDocument loadDocument = new PdfLoadedDocument(new FileStream("Input.pdf", FileMode.Open)); @@ -397,9 +414,11 @@ loadDocument.SplitByRanges(new int[,] { { 0, 1 }, { 1, 2 } }, splitOptions); //Close the document. loadDocument.Close(true); +{% endraw %} {% endhighlight %} {% highlight c# tabtitle="C# [Windows-specific]" %} +{% raw %} //Create the values. int[,] values = new int[,] { { 0, 1 }, { 1, 2 } }; @@ -417,9 +436,11 @@ loadedDocument.SplitByRanges(destinationFilePattern, values, splitOptions); //Close the document. loadedDocument.Close(true); +{% endraw %} {% endhighlight %} {% highlight vb.net tabtitle="VB.NET [Windows-specific]" %} +{% raw %} 'Create the values. Dim values As Integer(,) = New Integer(,) {{0, 1},{1, 2}} @@ -437,6 +458,7 @@ loadedDocument.SplitByRanges(destinationFilePattern, values, splitOptions) 'Close the document. loadedDocument.Close(True) +{% endraw %} {% endhighlight %} {% endtabs %}