VintaSoft Imaging .NET SDK 15.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.
Syntax
'Declaration

Public Overloads Sub Pack( _
ByVal stream
Stream to pack PDF document.
As System.IO.Stream, _
ByVal format
Format of PDF document.
As PdfFormat _
)

Parameters

stream
Stream to pack PDF document.
format
Format of PDF document.
Remarks

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 stream and truncates stream according to written data.

Requirements

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

See Also