PdfDocument Constructor (PaperType, Boolean, UnitOfMeasure, Stream)

PDF File Writer

PdfDocument Constructor (PaperType, Boolean, UnitOfMeasure, Stream)

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,
	Stream Stream
)

Parameters

PaperType
Type: PdfFileWriterPaperType
Paper type
Landscape
Type: SystemBoolean
True for landscape, false for portrait.
UnitOfMeasure
Type: PdfFileWriterUnitOfMeasure
Unit of measure code.
Stream
Type: System.IOStream
File or memory stream.
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 the stream argument. The stream can be either a MemoryStream or a FileStream. It is the calling program responsibiliy to close the stream after CreateFile() method is called.

See Also