PdfDocument Constructor (Double, Double, Double, Stream)

PDF File Writer

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

Parameters

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

Scale factor is user unit of measure expressed in points. For example, Inch has scale factor of 72.0.

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