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: File-Formats/PDF/Split-Documents.md
+78-2Lines changed: 78 additions & 2 deletions
Display the source diff
Display the rich diff
Original file line number
Diff line number
Diff line change
@@ -352,7 +352,7 @@ Dim loadedDocument As New PdfLoadedDocument("Input.pdf")
352
352
'Set an output path.
353
353
Const destinationFilePattern As String = "Output" + "{0}.pdf"
354
354
'Create the split options object.
355
-
Dim splitOptions As New PdfSplitOptions();
355
+
Dim splitOptions As New PdfSplitOptions()
356
356
'Enable the removal of unused resources property.
357
357
splitOptions.RemoveUnusedResources = True
358
358
'Split the document by ranges.
@@ -365,4 +365,80 @@ loadedDocument.Close(True)
365
365
366
366
{% endtabs %}
367
367
368
-
Download a complete working sample from GitHub.
368
+
369
+
Download a complete working sample from [GitHub](https://github.com/SyncfusionExamples/PDF-Examples/tree/master/Split%20PDFs/Remove-Unused-Resources-when-Splitting-PDF-Documents/.NET).
370
+
371
+
## Import Tagged structure when Splitting PDF Documents
372
+
373
+
The Syncfusion PDF library enables the splitting of PDF documents and offers the capability to import tagged structure during the process. By enabling the `SplitTags` property on the `PdfSplitOptions` class, thereby tagged structure will be imported into the final PDF document. The default value for this property is false.
374
+
375
+
{% tabs %}
376
+
377
+
{% highlight c# tabtitle="C# [Cross-platform]" %}
378
+
379
+
//Load an existing PDF file.
380
+
PdfLoadedDocument loadDocument = new PdfLoadedDocument(new FileStream("Input.pdf", FileMode.Open));
Download a complete working sample from [GitHub](https://github.com/SyncfusionExamples/PDF-Examples/tree/master/Split%20PDFs/Import-tagged-structure-when-splitting-PDF-documents/.NET).
0 commit comments