Description
Sets the width of the PDF page.
Applies to
Syntax
SetWidth(double width)
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.
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


