Skip to content
Merged
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
24 changes: 12 additions & 12 deletions File-Formats/PDF/Split-Documents.md
Original file line number Diff line number Diff line change
Expand Up @@ -301,7 +301,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));
//Subscribe to the document split event.
Expand All @@ -321,11 +321,11 @@ splitOptions.RemoveUnusedResources = true;
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 } };
//Load the PDF document.
Expand All @@ -340,11 +340,11 @@ splitOptions.RemoveUnusedResources = true;
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}}
'Load the PDF document.
Expand All @@ -360,7 +360,7 @@ loadedDocument.SplitByRanges(destinationFilePattern, values, splitOptions)

'Close the document.
loadedDocument.Close(True)

{% endraw %}
{% endhighlight %}

{% endtabs %}
Expand All @@ -375,7 +375,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));
//Subscribe to the document split event.
Expand All @@ -396,11 +396,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 } };
//Load the PDF document.
Expand All @@ -416,11 +416,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}}
'Load the PDF document.
Expand All @@ -436,7 +436,7 @@ loadedDocument.SplitByRanges(destinationFilePattern, values, splitOptions)

'Close the document.
loadedDocument.Close(True)

{% endraw %}
{% endhighlight %}

{% endtabs %}
Expand Down