VintaSoft Imaging .NET SDK 15.1: Documentation for .NET developer
Vintasoft.Imaging.Pdf Namespace / PdfDocument Class / PdfDocument Constructors / PdfDocument Constructor(Stream,PdfFormat,EncryptionSystem,Boolean)
Syntax Exceptions Remarks Requirements SeeAlso
In This Topic
PdfDocument Constructor(Stream,PdfFormat,EncryptionSystem,Boolean)
In This Topic
Initializes a new instance of the PdfDocument class from the specified stream.
Syntax

Parameters

stream
The stream with PDF document.
format
Format of new PDF document.
disposeStreamAfterUse
A value indicating whether to dispose the stream after use.
encryptionSystem
Encryption system of new PDF document.
Exceptions
ExceptionDescription
Thrown if stream data is not correct.
Thrown if format is Pdf_A. Use ConvertDocument(PdfDocumentConformance) method to convert document to PDF/A.
Remarks

This constructor opens an existing PDF document from the stream with access mode of the stream if stream length is 0.
This constructor creates new PDF document in the stream if stream length is 0. Stream must have read-write access.

Requirements

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

See Also