menu

WinForms

  • Code Examples
  • Upgrade Guide
  • User Guide
  • Demos
  • Support
  • Forums
  • Download
Class PdfSplitOptions - WindowsForms API Reference | Syncfusion

    Show / Hide Table of Contents

    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
    PdfLoadedDocument

    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)
    See Also
    PdfLoadedDocument

    See Also

    PdfLoadedDocument
    Back to top Generated by DocFX
    Copyright © 2001 - 2025 Syncfusion Inc. All Rights Reserved