SetSize

Description

Set the size of the PDF Builder object (setting both the width and height).

Applies to

PDFVisibleContent object, PDFImage object, PDFImportContent object, PDFMultilineText object, PDFRichText object, PDFSharedText object, PDFText object

Syntax

objectname.SetSize (double width, double height )

Argument

Description

width

The width occupied by the object in the PDF document. The unit is point (pt).

height The height occupied by the object in the PDF document. The unit is point (pt).

Return value

None.

Usage

Call the function to set the width and height of a PDF Builder object in the PDF document. The unit is point (pt).

Examples

This example sets the size of the PDFImage object to start from (50, 50).

lpdf_image.filename = "import\image1\1.jpg"
lpdf_image.setsize(500, 500)

See also

SetPosition