PdfDocument Constructor (Double, Double, UnitOfMeasure, Stream)

PDF File Writer

PdfDocument Constructor (Double, Double, 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(
	double Width,
	double Height,
	UnitOfMeasure UnitOfMeasure,
	Stream Stream
)

Parameters

Width
Type: SystemDouble
Page width.
Height
Type: SystemDouble
Page height.
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 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 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