Syntax 3: For positioning PDF Builder objects
Description
Set the coordinates of the PDF Builder object (setting both the X
coordinate and Y coordinate).
Applies to
PDFVisibleContent object in Objects and Controls,
PDFImage object in Objects and Controls, PDFImportContent object in Objects and Controls,
PDFMultilineText object in Objects and Controls,
PDFRichText object in Objects and Controls, PDFSharedText object in Objects and Controls, PDFText
object in Objects and Controls
Syntax
|
1 |
objectname.SetPosition (double x, double y ) |
|
Argument |
Description |
|---|---|
|
x |
The X coordinate. The unit is point (pt). |
| y | The Y coordinate. The unit is point (pt). |
Return value
None.
Usage
Call the function to set the X and Y coordinates of a PDF Builder
object. The position is where the content in the object shall start to
fill. The unit is point (pt). The coordinates (0,0) are in the upper
left corner of the PDF page.
Examples
This example sets the position of the PDFImage object to start
from the coordinates (50, 50).
|
1 2 |
lpdf_image.filename = "importimage11.jpg" lpdf_image.setposition(50, 50) |
See also