VintaSoft Imaging .NET SDK 12.4: Documentation for .NET developer
Vintasoft.Imaging.Pdf Namespace / PdfDocument Class / Pack Methods / Pack(Stream) Method
Syntax Remarks Requirements SeeAlso
In This Topic
    Pack(Stream) Method (PdfDocument)
    In This Topic
    Packs and saves PDF document to specified stream and switches to the specified stream.
    Syntax
    'Declaration
    
    Public Overloads Sub Pack( _
    ByVal stream
    Stream to pack PDF document.
    As System.IO.Stream _
    )
    public void Pack(
    System.IO.Stream stream
    )
    public: void Pack(
    System.IO.Stream* stream
    )
    public:
    void Pack(
    System.IO.Stream^ stream
    )

    Parameters

    stream
    Stream to pack PDF document.
    Remarks

    This methods copies content of this PDF document to specified stream, 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 stream and truncates stream according to written data.

    Requirements

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

    See Also