The Document type exposes the following members.
Methods
Name | Description | |
---|---|---|
AddBookmark(String, ExplicitDestination) |
Creates a root bookmark for the document
| |
AddBookmark(String, ExplicitDestination, Bookmark) |
Creates a child bookmark for the existing parentBookmark
| |
AddFileAttachment(String) |
Adds an attachment a given file to this PDF document
| |
AddFileAttachment(Stream, String) |
Adds an attachment with the given name from a stream to this PDF document
| |
AddFileAttachment(String, String) |
Adds an attachment a given file and given description to this PDF document
| |
AddFileAttachment(Stream, String, String) |
Adds an attachment with the given name and a given description from a stream to this PDF document
| |
AddFont(Byte) |
Adds a system font to the fonts collection. The font is created from the specified font data.
If the font was already added the method returns the existing font.
| |
AddFont(Font) |
Adds a system font to the fonts collection. If the font was already added
the method returns the existing font. By default the font
is embedded in the PDF document in order to support Unicode texts.
| |
AddFont(StandardCJKFont) |
Adds a standard CJK font to the collection.
If the font was already added the method returns the existing font.
| |
AddFont(StdFontBaseFamily) |
Adds a standard font to the fonts collection.
If the font was already added the method returns the existing font.
| |
AddFont(String) |
Adds a system font to the fonts collection. The font is created from the specified file.
If the font was already added the method returns the existing font.
| |
AddFont(Font, Boolean) |
Adds a system font to the fonts collection. If the font was already added
the method returns the existing font. The embedFont property indicates if the added font
will be embedded into the PDF document.
| |
AddFont(Byte, Single, FontStyle) |
Adds a system font to the fonts collection. The font is created from the specified font data with the specified style.
If the font was already added the method returns the existing font.
| |
AddFont(String, Single, FontStyle) |
Adds a system font to the fonts collection. The font is created from the specified file with the specified style.
If the font was already added the method returns the existing font.
| |
AddFooterTemplate |
Adds a footer with the given height to document
| |
AddHeaderTemplate |
Adds a header with the given height to document
| |
AddPage |
Creates a new PDF page and adds it to the collection. If there is a previous page in the
collection, the orientation and size are inherited from the that page otherwise a first page with
the default A4 size and Portrait orientation is created. The page margins are inherited from the
default document margins
| |
AddPage(Margins) |
Creates a new PDF page and adds it to the collection. If there is a previous page in the
collection, the orientation and size are inherited from the that page otherwise a first page with
the default A4 size and Portrait orientation is created
| |
AddPage(PdfPage) |
Adds the specified page to the document pages collection. The page to be added is allowed to be
from another document. The source document of the page to be added must remain opened until the
current document is saved.
| |
AddPage(PdfPageSize, Margins) |
Creates a new PDF page and adds it to the collection. If there is a previous page in the
collection, the page orientation is inherited from the that page otherwise a first page with
the specified size and Portrait orientation is created
| |
AddPage(PdfPageSize, Margins, PdfPageOrientation) |
Creates a new PDF page with the specified size, margins and orientation and adds it to the collection
| |
AddTemplate(RectangleF) |
Adds a new template with the specified bounds to the document templates collection.
| |
AddTemplate(Single, Single) |
Adds a new template with the specified width and height to the document templates collection.
The template location is top left corner of the page.
| |
AppendDocument(Document) |
Appends the document given as parameter to the current document.
The appended document must remain open until the current document is saved
| |
AppendDocument(Document, Int32, Int32) |
Appends a range of pages from the document given as parameter to the current document.
The appended document must remain open until the current document is saved
| |
AppendDocument(Document, Boolean, Boolean, Boolean) |
Appends the document given as parameter to the current document and optionally applies the current document header and footer to the
appended document pages if the appended document was loaded from an external file or stream
| |
AppendDocument(Document, Int32, Int32, Boolean, Boolean, Boolean) |
Appends a range of pages from the document given as parameter to the current document and optionally applies the current document header and footer to the
appended document pages if the appended document was loaded from an external file or stream
| |
Close |
Releases all the resources allocated by this PDF document. Always call this method after the document was saved.
If the document was created from a stream or file, the stream will be closed if it was not explicitly detached
by calling the DetachStream() before the document is closed.
| |
DetachStream |
Call this method to detach the stream from which this document was created. When this method is called before
calling Close(), the Close method will not close the detached stream.
| |
Equals | (Inherited from Object.) | |
Finalize | Allows an object to try to free resources and perform other cleanup operations before it is reclaimed by garbage collection. (Inherited from Object.) | |
GetHashCode | Serves as a hash function for a particular type. (Inherited from Object.) | |
GetPageCount(Stream) |
A fast method to obtain the page count of a PDF document from the given stream.
| |
GetPageCount(String) |
A fast method to obtain the page count of a PDF document from the given file path.
| |
GetType | Gets the Type of the current instance. (Inherited from Object.) | |
InsertDocument(Int32, Document) |
Inserts the document given as parameter in the current document at the given page index.
The appended document must remain open until the current document is saved
| |
InsertDocument(Int32, Document, Int32, Int32) |
Inserts a range of pages from the document given as parameter in the current document at the given page index.
The appended document must remain open until the current document is saved
| |
InsertDocument(Int32, Document, Boolean, Boolean, Boolean) |
Inserts the document given as parameter to the current document and optionally applies the current document header and footer to the
appended document pages if the appended document was loaded from an external file or stream
| |
InsertDocument(Int32, Document, Int32, Int32, Boolean, Boolean, Boolean) |
Inserts a range of pages from the document given as parameter to the current document and optionally applies the current document header and footer to the
appended document pages if the appended document was loaded from an external file or stream
| |
InsertPage(Int32, PdfPage) |
Inserts the specified page into the document pages collection given by the Pages property at the specified index.
The page to be added is allowed to be from another document.
The source document of the page to be inserted must remain opened until the
current document is saved.
| |
InsertPage(Int32, PdfPageSize, Margins, PdfPageOrientation) |
Creates a new PDF page with the specified size, margins and orientation and inserts it into the collection
at the specified index.
| |
MemberwiseClone | Creates a shallow copy of the current Object. (Inherited from Object.) | |
RemovePage(Int32) |
Removes the PDF page at the specified index in pages collection.
| |
RemovePage(PdfPage) |
Removes the specified PDF page from the pages collection of this document.
| |
Save |
Saves the PDF document as byte array that can be further saved into a file or sent over HTTP to a browser.
| |
Save(Stream) |
Saves this PDF document into the specified output stream.
| |
Save(String) |
Saves this PDF document into the file given by the method parameter
| |
ToString | Returns a string that represents the current object. (Inherited from Object.) |
See Also