PdfDocument Class

PDF File Writer

PdfDocument Class

PDF document class
Inheritance Hierarchy
SystemObject  PdfFileWriterPdfDocument

Namespace:  PdfFileWriter
Assembly:  PdfFileWriter (in PdfFileWriter.dll) Version: 1.1.24.0 (1.1.24.0)
Syntax
C#
public class PdfDocument : IDisposable

The PdfDocument type exposes the following members.

Constructors
  NameDescription
Public methodPdfDocument(Stream)
PDF document constructor.
Public methodPdfDocument(String)
PDF document constructor.
Public methodPdfDocument(Double, Double, UnitOfMeasure, Stream)
PDF document constructor
Public methodPdfDocument(Double, Double, UnitOfMeasure, String)
PDF document constructor
Public methodPdfDocument(Double, Double, Double, Stream)
PDF document constructor.
Public methodPdfDocument(Double, Double, Double, String)
PDF document constructor.
Public methodPdfDocument(PaperType, Boolean, UnitOfMeasure, Stream)
PDF document constructor
Public methodPdfDocument(PaperType, Boolean, UnitOfMeasure, String)
PDF document constructor
Top
Properties
  NameDescription
Public propertyEpsilon
Epsilon 1/300 of an inch in user units
Public propertyInitialDocDisplay
Initial document display
Public propertyPageCount
Page count
Public propertyScaleFactor
Scale factor
Top
Methods
  NameDescription
Public methodCreateFile
Create PDF document file
Public methodDispose
Dispose PDF document object
Public methodEquals
Determines whether the specified object is equal to the current object.
(Inherited from Object.)
Protected methodFinalize
Allows an object to try to free resources and perform other cleanup operations before it is reclaimed by garbage collection.
(Inherited from Object.)
Public methodGetBookmarksRoot
Gets bookmarks root
Public methodGetHashCode
Serves as the default hash function.
(Inherited from Object.)
Public methodGetPage
Get page object
Public methodGetType
Gets the Type of the current instance.
(Inherited from Object.)
Protected methodMemberwiseClone
Creates a shallow copy of the current Object.
(Inherited from Object.)
Public methodMovePage
Move page to another position
Public methodSetEncryption
Set encryption
Public methodSetEncryption(Permission)
Set encryption
Public methodSetEncryption(String, Permission)
Set encryption
Public methodSetEncryption(String, String, Permission, EncryptionType)
Set encryption
Public methodToString
Returns a string that represents the current object.
(Inherited from Object.)
Top
Fields
  NameDescription
Public fieldDebug
Debug flag
Public fieldStatic memberRevisionDate
Library revision date
Public fieldStatic memberRevisionNumber
Library revision number
Top
Remarks

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

See Also