Content
property for PowerScript objects
Applies to
PDFText object, PDFTextBlock object, PDFMultilineText object
Description
Gets or sets the string content in the
PDFText/PDFTextBlock/PDFMultilineText object.
PDFText handles simple text, and the maximum string length allowed
in its content is 32763. If the content is larger than that, use
PDFMultipleText instead.
Data type
String.
Usage
In scripts
This example shows how to set the content in a PDFText object and
then add the content to a page:
|
1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 |
PDFdocument lpdf_doc PDFpage lpdf_page PDFtext lpdf_text lpdf_doc = create PDFdocument lpdf_page = create PDFpage lpdf_text = create PDFtext lpdf_text.backcolor.rgb = rgb(255,0,0) lpdf_text.textcolor.rgb = rgb(0,255,0) lpdf_text.font.fontsize = 38 lpdf_text.content = "I am PDFtext text" lpdf_page.addcontent( lpdf_text) lpdf_doc.addpage( lpdf_page) lpdf_doc.save( "D: extlink.pdf") |
Document get from Powerbuilder help
Thank you for watching.
Subscribe
Login
0 Comments
Oldest