Constructor PdfDocument
- Namespace
- BitMiracle.Docotic.Pdf
- Assembly
- BitMiracle.Docotic.Pdf.dll
PdfDocument()
Creates a new blank PDF document.
public PdfDocument()
PdfDocument(PdfConfigurationOptions)
Creates a new blank PDF document using specified configuration options.
public PdfDocument(PdfConfigurationOptions options)
Parameters
options
PdfConfigurationOptionsThe configuration options.
PdfDocument(string)
Opens an existing PDF document.
public PdfDocument(string fileName)
Parameters
fileName
stringThe name of the existing PDF file.
PdfDocument(byte[])
Opens an existing PDF document.
public PdfDocument(byte[] buffer)
Parameters
buffer
byte[]The byte buffer from which the PDF document to be read.
PdfDocument(Stream)
Opens an existing PDF document.
public PdfDocument(Stream stream)
Parameters
stream
StreamThe stream from which the PDF document to be read.
Remarks
The stream
must be a stream that supports reading and seeking.
Otherwise, the constructor throws an exception of PdfException type.
PdfDocument(string, PdfConfigurationOptions)
Opens an existing PDF document using specified configuration options.
public PdfDocument(string fileName, PdfConfigurationOptions options)
Parameters
fileName
stringThe name of the existing PDF file.
options
PdfConfigurationOptionsThe configuration options.
PdfDocument(Stream, PdfConfigurationOptions)
Opens an existing PDF document using specified configuration options.
public PdfDocument(Stream stream, PdfConfigurationOptions options)
Parameters
stream
StreamThe stream from which the PDF document to be read.
options
PdfConfigurationOptionsThe configuration options.
Remarks
The stream
must be a stream that supports reading and seeking.
Otherwise, the constructor throws an exception of PdfException type.
PdfDocument(string, PdfDecryptionHandler)
Opens an existing encrypted PDF document.
public PdfDocument(string fileName, PdfDecryptionHandler handler)
Parameters
fileName
stringThe name of the existing PDF file.
handler
PdfDecryptionHandlerThe decryption handler to use to decrypt the file.
PdfDocument(Stream, PdfDecryptionHandler)
Opens an existing encrypted PDF document.
public PdfDocument(Stream stream, PdfDecryptionHandler handler)
Parameters
stream
StreamThe stream from which the PDF document to be read.
handler
PdfDecryptionHandlerThe decryption handler to use to decrypt the file.
PdfDocument(string, PdfDecryptionHandler, PdfConfigurationOptions)
Opens an existing encrypted PDF document using specified configuration options.
public PdfDocument(string fileName, PdfDecryptionHandler handler, PdfConfigurationOptions options)
Parameters
fileName
stringThe name of the existing PDF file.
handler
PdfDecryptionHandlerThe decryption handler to use to decrypt the file.
options
PdfConfigurationOptionsThe configuration options.
PdfDocument(Stream, PdfDecryptionHandler, PdfConfigurationOptions)
Opens an existing encrypted PDF document using specified configuration options.
public PdfDocument(Stream stream, PdfDecryptionHandler handler, PdfConfigurationOptions options)
Parameters
stream
StreamThe stream from which the PDF document to be read.
handler
PdfDecryptionHandlerThe decryption handler to use to decrypt the file.
options
PdfConfigurationOptionsThe configuration options.
Remarks
The stream
must be a stream that supports reading and seeking.
Otherwise, the constructor throws an exception of PdfException type.