Table of Contents

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 PdfConfigurationOptions

The configuration options.

PdfDocument(string)

Opens an existing PDF document.

public PdfDocument(string fileName)

Parameters

fileName string

The 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 Stream

The 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 string

The name of the existing PDF file.

options PdfConfigurationOptions

The configuration options.

PdfDocument(Stream, PdfConfigurationOptions)

Opens an existing PDF document using specified configuration options.

public PdfDocument(Stream stream, PdfConfigurationOptions options)

Parameters

stream Stream

The stream from which the PDF document to be read.

options PdfConfigurationOptions

The 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 string

The name of the existing PDF file.

handler PdfDecryptionHandler

The 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 Stream

The stream from which the PDF document to be read.

handler PdfDecryptionHandler

The 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 string

The name of the existing PDF file.

handler PdfDecryptionHandler

The decryption handler to use to decrypt the file.

options PdfConfigurationOptions

The 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 Stream

The stream from which the PDF document to be read.

handler PdfDecryptionHandler

The decryption handler to use to decrypt the file.

options PdfConfigurationOptions

The configuration options.

Remarks

The stream must be a stream that supports reading and seeking. Otherwise, the constructor throws an exception of PdfException type.