Class PdfSplitOptions
Represents to customize the support of splitting PDF documents.
Inheritance
System.Object
PdfSplitOptions
Inherited Members
System.Object.Equals(System.Object)
System.Object.Equals(System.Object, System.Object)
System.Object.GetHashCode()
System.Object.GetType()
System.Object.MemberwiseClone()
System.Object.ReferenceEquals(System.Object, System.Object)
System.Object.ToString()
Namespace: Syncfusion.Pdf
Assembly: Syncfusion.Pdf.Base.dll
Syntax
public class PdfSplitOptions
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)