PdfDocument Class |

Namespace: PdfFileWriter
Assembly: PdfFileWriter (in PdfFileWriter.dll) Version: 1.1.24.0 (1.1.24.0)

public class PdfDocument : IDisposable
The PdfDocument type exposes the following members.

Name | Description | |
---|---|---|
![]() | PdfDocument(Stream) |
PDF document constructor.
|
![]() | PdfDocument(String) |
PDF document constructor.
|
![]() | PdfDocument(Double, Double, UnitOfMeasure, Stream) |
PDF document constructor
|
![]() | PdfDocument(Double, Double, UnitOfMeasure, String) |
PDF document constructor
|
![]() | PdfDocument(Double, Double, Double, Stream) |
PDF document constructor.
|
![]() | PdfDocument(Double, Double, Double, String) |
PDF document constructor.
|
![]() | PdfDocument(PaperType, Boolean, UnitOfMeasure, Stream) |
PDF document constructor
|
![]() | PdfDocument(PaperType, Boolean, UnitOfMeasure, String) |
PDF document constructor
|

Name | Description | |
---|---|---|
![]() | Epsilon |
Epsilon 1/300 of an inch in user units
|
![]() | InitialDocDisplay |
Initial document display
|
![]() | PageCount |
Page count
|
![]() | ScaleFactor |
Scale factor
|

Name | Description | |
---|---|---|
![]() | CreateFile |
Create PDF document file
|
![]() | Dispose |
Dispose PDF document object
|
![]() | Equals | Determines whether the specified object is equal to the current object. (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.) |
![]() | GetBookmarksRoot |
Gets bookmarks root
|
![]() | GetHashCode | Serves as the default hash function. (Inherited from Object.) |
![]() | GetPage |
Get page object
|
![]() | GetType | Gets the Type of the current instance. (Inherited from Object.) |
![]() | MemberwiseClone | Creates a shallow copy of the current Object. (Inherited from Object.) |
![]() | MovePage |
Move page to another position
|
![]() | SetEncryption |
Set encryption
|
![]() | SetEncryption(Permission) |
Set encryption
|
![]() | SetEncryption(String, Permission) |
Set encryption
|
![]() | SetEncryption(String, String, Permission, EncryptionType) |
Set encryption
|
![]() | ToString | Returns a string that represents the current object. (Inherited from Object.) |

Name | Description | |
---|---|---|
![]() | Debug |
Debug flag
|
![]() ![]() | RevisionDate |
Library revision date
|
![]() ![]() | RevisionNumber |
Library revision number
|

The main class for controlling the production of the PDF document.
Creating a PDF is a six steps process.
Step 1: Create one document object this PdfDocument class.
Step 2: Create resource objects such as fonts or images (i.e. PdfFont or PdfImage).
Step 3: Create page object PdfPage.
Step 4: Create contents object PdfContents.
Step 5: Add text and graphics to the contents object (using PdfContents methods).
Repeat steps 3, 4 and 5 for additional pages
Step 6: Create your PDF document file by calling CreateFile method of PdfDocument.
For example of document creation see 3.1. Document Creation Overview
