Click or drag to resize
Pdf Library for .NET

PdfDocument Methods

The PdfDocument type exposes the following members.

Methods
  Name Description
Public method AddBookmark(String, PdfDestination) Creates a root bookmark in the current pdf document.
Public method AddBookmark(String, PdfDestination, PdfBookmark) Creates a child bookmark in the current pdf document under the specified parent bookmark.
Public method AddFont(Font) Adds a system font to the pdf fonts collection.
Public method AddFont(PdfStandardCJKFont) Adds a standard CJK font to the pdf fonts collection.
Public method AddFont(PdfStandardFont) Adds a standard font to the pdf fonts collection.
Public method AddFont(String) Adds a system font to the pdf fonts collection. The font is loaded from the specified file.
Public method AddFont(Font, Boolean) Adds a system font to the pdf fonts collection.
Public method AddPage Creates a new pdf page and adds it to the pdf document pages collection.
Public method AddPage(PdfMargins) Creates a new pdf page with the specified margins and adds it to the pdf document pages collection.
Public method AddPage(PdfPage) Adds the specified page to the pdf document pages collection.
Public method AddPage(PdfCustomPageSize, PdfMargins) Creates a new pdf page with the specified size and margins and adds it to the pdf document pages collection.
Public method AddPage(PdfCustomPageSize, PdfMargins, PdfPageOrientation) Creates a new pdf page with the specified size, margins and orientation and adds it to the pdf document pages collection.
Public method AddTemplate(RectangleF) Adds a new template with the specified bounds to the pdf document templates collection.
Public method AddTemplate(Single, Single) Adds a new template with the specified width and height to the pdf document templates collection.
Public method Append Appends all pages from another pdf document to the current pdf document.
Public method Close Closes the current pdf document.
Public method DetachStream Detaches the stream that was used to load the pdf document, leaving it open in case the current pdf document is closed.
Public method Static member GetPagesCount(Stream) Returns the number of pages in a specified pdf document.
Public method Static member GetPagesCount(String) Returns the number of pages in a specified pdf document.
Public method InsertPage(Int32, PdfPage) Inserts the specified page into the pdf document pages collection at the specified index.
Public method InsertPage(Int32, PdfCustomPageSize, PdfMargins, PdfPageOrientation) Creates a new pdf page with the specified size, margins and orientation and inserts it into the pdf document pages collection at the specified index.
Public method RemovePage Removes the specified page from the pdf document pages collection.
Public method RemovePageAt Removes the pdf page at the specified index in pdf document pages collection.
Public method Save Saves the pdf document as byte array.
Public method Save(Stream) Saves the pdf document to the specified stream.
Public method Save(String) Saves the pdf document to the specified file.
Top
See Also