Click or drag to resize

PdfDocument Constructor (String, String, Stream, PdfDocumentLoadedProgress, RepairOptions, Boolean)

Note: This API is now obsolete.

Initializes a new instance of the PdfDocument class, using the file specified by the supplied path and decodes it with the supplied passwords and repair options.

Namespace:  Atalasoft.PdfDoc
Assembly:  Atalasoft.PdfDoc (in Atalasoft.PdfDoc.dll) Version: 11.4.0.9.0.377 (.NET 4.5.2, x86)
Syntax
[ObsoleteAttribute("This constructor is obsolete. Use PdfDocument(Stream stm, SecureString userPassword, SecureString ownerPassword, PdfDocumentLoadedProgress pageLoaded, RepairOptions repairOptions, bool leaveOpen) instead.", 
	false)]
public PdfDocument(
	string userPassword,
	string ownerPassword,
	Stream stm,
	PdfDocumentLoadedProgress pageLoaded,
	RepairOptions repairOptions,
	bool leaveOpen
)

Parameters

userPassword
Type: SystemString
The user password to use for this document. This parameter may be null.
ownerPassword
Type: SystemString
The owner password to use for this document. This parameter may be null.
stm
Type: System.IOStream
A non-null stream containing a PDF document.
pageLoaded
Type: Atalasoft.PdfDocPdfDocumentLoadedProgress
A delegate that will be called when a page is loaded. This value may be null.
repairOptions
Type: Atalasoft.PdfDoc.RepairRepairOptions
An object that specifies features for handling PDF document repair. This value may be null.
leaveOpen
Type: SystemBoolean
The value indicating whether the provided stream should be closed on document close.
Exceptions
ExceptionCondition
IncorrectPasswordException If the password is incorrect or cannot be verified, the constructor will throw a IncorrectPasswordException.
See Also