 
            | Accusoft.PdfXpressSdk Namespace > Document Class > Document Constructor : Document Constructor(PdfXpress,OpenOptions,Byte[]) | 
'Declaration Public Function New( _ ByVal pdfXpress As PdfXpress, _ ByVal options As OpenOptions, _ ByVal buffer() As Byte _ )
'Usage Dim pdfXpress As PdfXpress Dim options As OpenOptions Dim buffer() As Byte Dim instance As New Document(pdfXpress, options, buffer)
public: Document( PdfXpress* pdfXpress, OpenOptions* options, byte[]* buffer )
public: Document( PdfXpress^ pdfXpress, OpenOptions^ options, array<byte>^ buffer )
| Exception | Description | 
|---|---|
| System.ArgumentNullException | Thrown when a null reference is passed to a method that does not accept it as a valid argument. | 
| InvalidPasswordException | Thrown when trying to open a document with the wrong password or no password. | 
| DamagedFileException | Thrown when a file is corrupt and needs to be repaired. | 
| FileRepairFailedException | Thrown when a file is corrupt and can not be repaired. | 
| PdfXpressLibraryException | Thrown in the underlying PDF library. | 
| PdfXpressNotIntializedException | Thrown if invoked before PDF Xpress is initialized. | 
| PdfXpressLicensingException | Thrown if this feature is unavailable for the current license edition. | 
| PdfXpressException | Thrown in the main PDF library. |