Class PdfSplitOptions
Represents to customize the support of splitting PDF documents.
Inheritance
System.Object
PdfSplitOptions
Namespace: Syncfusion.Pdf
Assembly: Syncfusion.Pdf.UWP.dll
Syntax
public class PdfSplitOptions : Object
Examples
// Loads an existing document
PdfLoadedDocument ldoc = new PdfLoadedDocument("Input.pdf");
PdfSplitOptions splitOptions = new PdfSplitOptions();
splitOptions.SplitTags = true;
// Splits the source document
ldoc.Split("Output.pdf", splitOptions);
ldoc.Close(true);
' Loads an existing document
Dim ldoc As PdfLoadedDocument = New PdfLoadedDocument("Input.pdf")
Dim splitOptions As PdfSplitOptions = New PdfSplitOptions
splitOptions.SplitTags = true
' Splits the source document
ldoc.Split("Output.pdf", splitOptions)
ldoc.Close(true)
Constructors
PdfSplitOptions()
Declaration
public PdfSplitOptions()
Properties
RemoveUnusedResources
Gets or sets to RemoveUnusedResources while splitting PDF documents.
Declaration
public bool RemoveUnusedResources { get; set; }
Property Value
Type |
---|
System.Boolean |
Examples
// Loads an existing document
PdfLoadedDocument ldoc = new PdfLoadedDocument("Input.pdf");
PdfSplitOptions splitOptions = new PdfSplitOptions();
splitOptions.RemoveUnusedResources = true;
// Splits the source document
ldoc.Split("Output.pdf", splitOptions);
ldoc.Close(true);
' Loads an existing document
Dim ldoc As PdfLoadedDocument = New PdfLoadedDocument("Input.pdf")
Dim splitOptions As PdfSplitOptions = New PdfSplitOptions
splitOptions.RemoveUnusedResources = true
' Splits the source document
ldoc.Split("Output.pdf", splitOptions)
ldoc.Close(true)
See Also
SplitTags
Gets or sets to split tags while splitting PDF documents.
Declaration
public bool SplitTags { get; set; }
Property Value
Type |
---|
System.Boolean |
Examples
// Loads an existing document
PdfLoadedDocument ldoc = new PdfLoadedDocument("Input.pdf");
PdfSplitOptions splitOptions = new PdfSplitOptions();
splitOptions.SplitTags = true;
// Splits the source document
ldoc.Split("Output.pdf", splitOptions);
ldoc.Close(true);
' Loads an existing document
Dim ldoc As PdfLoadedDocument = New PdfLoadedDocument("Input.pdf")
Dim splitOptions As PdfSplitOptions = New PdfSplitOptions
splitOptions.SplitTags = true
' Splits the source document
ldoc.Split("Output.pdf", splitOptions)
ldoc.Close(true)