PdfDocument Constructor (PaperType, Boolean, UnitOfMeasure, String)

PDF File Writer

PdfDocument Constructor (PaperType, Boolean, UnitOfMeasure, String)

PDF document constructor

Namespace:  PdfFileWriter
Assembly:  PdfFileWriter (in PdfFileWriter.dll) Version: 1.1.24.0 (1.1.24.0)
Syntax
C#
public PdfDocument(
	PaperType PaperType,
	bool Landscape,
	UnitOfMeasure UnitOfMeasure,
	string FileName
)

Parameters

PaperType
Type: PdfFileWriterPaperType
Paper type
Landscape
Type: SystemBoolean
True for landscape, false for portrait.
UnitOfMeasure
Type: PdfFileWriterUnitOfMeasure
Unit of measure code.
FileName
Type: SystemString
Document file name.
Remarks

This constructor generates a document with default page size of Letter, Leagal, A3, A4 or A5.

Page orientation is determined by the landscape argument.

Unit of measure is a an enumeration constant (Point, Inch, cm, mm)

The PDF document will be saved in a file named FileName.

See Also