VintaSoft Imaging .NET SDK 14.0: Documentation for .NET developer
Vintasoft.Imaging.Pdf Namespace / PdfDocument Class / Pack Methods / Pack(String,PdfFormat) Method
Syntax Remarks Requirements SeeAlso
In This Topic
    Pack(String,PdfFormat) Method (PdfDocument)
    In This Topic
    Packs and saves PDF document to specified file in specified format and switches to the specified file.
    Syntax
    'Declaration
    
    Public Overloads Sub Pack( _
    ByVal filename
    File name to pack PDF document.
    As System.String, _
    ByVal format
    Format of PDF document.
    As PdfFormat _
    )
    public void Pack(
    System.String filename,
    PdfFormat format
    )
    public: void Pack(
    System.String filename,
    PdfFormat* format
    )
    public:
    void Pack(
    System.String filename,
    PdfFormat^ format
    )

    Parameters

    filename
    File name to pack PDF document.
    format
    Format of PDF document.
    Remarks

    This methods copies content of this PDF document to specified file, converts content of the specified file to specified format, removes unused objects from the specified file and switches to specified file.
    Source PDF document is not affected. All further changes will affect the specified file only.

    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