VintaSoft Imaging .NET SDK 14.0: Documentation for .NET developer
Vintasoft.Imaging.Pdf Namespace / PdfDocument Class / RemoveUnusedPages() Method
Syntax Remarks Requirements SeeAlso
In This Topic
    RemoveUnusedPages() Method (PdfDocument)
    In This Topic
    Searches not used pages in PDF document and removes not used pages from PDF document. Also method removes all references to removed PDF pages.
    Syntax
    'Declaration
    
    Public Function RemoveUnusedPages() As System.Int32
    
    
    public System.Int32 RemoveUnusedPages()
    
    
    public: System.Int32 RemoveUnusedPages()
    
    
    public:
    System.Int32 RemoveUnusedPages()

    Return Value

    Removed pages count.
    Remarks

    Note: Method may use a lot of memory and can work for a long time because method analyzes the whole structure of PDF document.

    Requirements

    Target Platforms: .NET9; .NET 8; .NET 7; .NET 6; .NET Framework 4.8, 4.7, 4.6, 4.5, 4.0, 3.5

    See Also