Constructor PdfDocument
PdfDocument()
Creates a new PDF document in memory. To open an existing PDF file, use the PdfReader class.
public PdfDocument()
PdfDocument(string)
Creates a new PDF document with the specified file name. The file is immediately created and kept locked until the document is closed. At that time the document is saved automatically. Do not call Save for documents created with this constructor, just call Close. To open an existing PDF file and import it, use the PdfReader class.
public PdfDocument(string outputFilename)
Parameters
outputFilenamestring
PdfDocument(Stream)
Creates a new PDF document using the specified stream. The stream won’t be used until the document is closed. At that time the document is saved automatically. Do not call Save for documents created with this constructor, just call Close. To open an existing PDF file, use the PdfReader class.
public PdfDocument(Stream outputStream)
Parameters
outputStreamStream