PDF File Writer Class Library - Author Uzi Granot
PdfDocument Constructor (Double, Double, UnitOfMeasure, String) |
PDF document constructor
Namespace: PdfFileWriter
Assembly: PdfFileWriter (in PdfFileWriter.dll) Version: 1.1.24.0 (1.1.24.0)

C#
public PdfDocument( double Width, double Height, UnitOfMeasure UnitOfMeasure, string FileName )
Parameters
- Width
- Type: SystemDouble
Page width. - Height
- Type: SystemDouble
Page height. - UnitOfMeasure
- Type: PdfFileWriterUnitOfMeasure
Unit of measure code. - FileName
- Type: SystemString
Document file name.

This constructor generates a document with default page size as per width and height arguments in user units.
Page orientation is portrait if width is less than height. Otherwise it is landscape.
Unit of measure is a an enumeration constant (Point, Inch, cm, mm)
The PDF document will be saved in a file named FileName.
