VintaSoft Imaging .NET SDK 12.2: Documentation for .NET developer
Vintasoft.Imaging.Pdf Namespace / PdfDocument Class / Pack Methods / Pack(Stream,PdfFormat) Method
Syntax Remarks Requirements SeeAlso
In This Topic
    Pack(Stream,PdfFormat) Method (PdfDocument)
    In This Topic
    Packs and saves PDF document to specified stream in specified format and switches to the specified stream.
    Public Overloads Sub Pack( _
    ByVal stream
    Stream to pack PDF document.
    As System.IO.Stream, _
    ByVal format
    Format of PDF document.
    As PdfFormat _


    Stream to pack PDF document.
    Format of PDF document.

    This methods copies content of this PDF document to specified stream, converts content of the specified stream to specified format, removes unused objects from the specified stream and switches to specified stream.
    Source PDF document is not affected. All further changes will affect the specified stream only.
    Method writes document at the beginning of streamand truncates streamaccording to written data.


    Target Platforms: .NET 7; .NET 6; .NET 5; .NET Core 3.1; .NET Framework 4.8, 4.7, 4.6, 4.5, 4.0, 3.5

    See Also