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:
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:\textlink.pdf")