Represents a PDF document
| C# | Visual Basic | Visual C++ |
public class Document
Public Class Document
public ref class Document
| All Members | Constructors | Methods | Properties | ||
| Icon | Member | Description |
|---|---|---|
| Document()()() |
The PDF document default constructor
| |
| Document(Stream) |
Creates a PDF document object from the specified stream containing the PDF document.
| |
| Document(String) |
Creates a PDF document from and existing PDF file.
| |
| Document(Stream, String) |
Creates a PDF document from a stream cotaining a password protected PDF document.
The specified password can be a user or owner password
| |
| Document(String, String) |
Creates a PDF Document object from an existing password protected PDF file.
| |
| AddBookmark(String, ExplicitDestination) |
Creates a root bookmark for the document
| |
| AddBookmark(String, ExplicitDestination, Bookmark) |
Creates a child bookmark for the existing parentBookmark
| |
| AddFont(Font) |
Adds a system font to the fonts collection. 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 says if the added font
will be embedded into the PDF document
| |
| 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(StdFontBaseFamily) |
Adds a standard font to the collection.
If the font was already added the method returns the existing font.
| |
| AddFont(StandardCJKFont) |
Adds a standard CJK font to the collection.
If the font was already added the method returns the existing font.
| |
| 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(PageSize, 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(PageSize, Margins, PageOrientation) |
Creates a new PDF page with the specified size, margins and orientation and adds it to the collection
| |
| AddTemplate(Single, Single) |
Add a new template with the specified width and height to the document templates collection.
The template location is top left corner of the page.
| |
| AddTemplate(RectangleF) |
Add a new template with the specified bounds to the document templates collection.
| |
| Close()()() |
Releases all the resources allocated by this PDF document. 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() method.
| |
| CompressionLevel |
Gets or sets the PDF document compression level
| |
| 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.
| |
| DocumentInformation |
Offers access to the document information object where the document's
title, subject, keywords, etc can be set.
| |
| Equals(Object) | (Inherited from Object.) | |
| Finalize()()() |
Destructor called by the garbage collector if the Close() method was not
explicitly called on this document.
(Overrides Object.Finalize()()().) | |
| Fonts |
Gets the document fonts collection.
| |
| FooterTemplate |
Represents the default PDF document footer template. This footer is automatically considered
when calculating the available space for rendering in a PDF page. This template is automatically
docked to the bottom of the PDF page.
| |
| GetHashCode()()() | Serves as a hash function for a particular type. (Inherited from Object.) | |
| GetType()()() | Gets the Type of the current instance. (Inherited from Object.) | |
| HeaderTemplate |
Represents the default PDF document header template. This header is automatically considered
when calculating the available space for drawing in a PDF page. This template is automatically
docked to the top of the PDF page.
| |
| LeftTemplate |
Represents the default PDF document left template. This left template is automatically considered
when calculating the available space for rendering in a PDF page. This template is automatically
docked to the left side of the PDF page.
| |
| Margins |
The default document margins. The new pages will use the default margins
if no marings is specified
| |
| MemberwiseClone()()() | Creates a shallow copy of the current Object. (Inherited from Object.) | |
| Pages |
Gets the document pages collection.
| |
| RightTemplate |
Represents the default PDF document right template. This right template is automatically considered
when calculating the available space for rendering in a PDF page. This template is automatically
docked to the right side of the PDF page.
| |
| Save(String) |
Saves the PDF document into the specified file.
| |
| Save(Stream) |
Saves the document into the specified stream.
| |
| Save()()() |
Saves the PDF document as byte array that can be further saved into a file or send over HTTP.
| |
| Save(HttpResponse, Boolean, String) |
Saves the document into a HTTP stream.
| |
| Security |
Offers access to security features of the PDF document like encryption and digital signatures.
| |
| Templates |
Gets the document templates collection.
| |
| ToString()()() | (Inherited from Object.) | |
| UseCrossRefStreams |
When this property is true, the generated PDF will store the PDF cross-reference table and PDF trailer in compressed cross-reference streams
and therefore the generated PDF document will be smaller in size.
Set this false for compatibility with third party tools unable to understand the cross-reference streams.
The default value is false for the new documents.
| |
| ViewerPreferences |
Offers access to the viewer preferences settings for the document.
|
| Object | |
| Document | |