SetWidth
PowerScript function
Description
Sets the width of the PDF page.
Applies to
PDFPage object in Objects and Controls
Syntax
|
1 |
SetWidth(double width) |
|
Argument |
Description |
|---|---|
|
width |
The width of the page of the PDFPage object. The unit is |
Return value
None.
Usage
Call the function to set the width of the page of the PDFPage
object.
Examples
This example creates a PDFPage, sets its width, height, and content,
and adds it to a PDF document.
|
1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 |
PDFpage lpdf_page PDFdocument lpdf_doc PDFtext lpdf_text lpdf_page = create PDFpage lpdf_doc = create PDFdocument lpdf_text = create PDFtext lpdf_page.setwidth(790) lpdf_page.setheight(1224) lpdf_text.content = "text content" lpdf_page.addcontent(lpdf_text) lpdf_doc.addpage(lpdf_page) lpdf_doc.save("D:addcontent.pdf") |
See also
Document get from Powerbuilder help
Thank you for watching.
Subscribe
Login
0 Comments
Oldest