ResourceSearchPath
property for PowerScript objects
Applies to
Description
The ResourceSearchPath property specifies the path in which the PDF
Builder objects search for resource files (such as images, font files,
etc.).
Datatype
String.
Usage
In scripts
Each path shall be enclosed in curly brackets {}. For example,
ResourceSearchPath = “{Path1}{…}{Pathn}”.
This example sets the ResourceSearchPath to “D:workerimage” and
then load the files in the path to the PDF document.
|
1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 |
long ll_return PDFdocument lpdf_doc PDFpage lpdf_page PDFcontext lpdf_cont PDFimage lpdf_image lpdf_doc = create PDFdocument lpdf_page = create PDFpage lpdf_cont = create PDFcontext lpdf_image = create PDFimage //Set the global resource path lpdf_cont.resourcesearchpath = "{D:workerimage}" lpdf_image.filename = "1.png" lpdf_page.addcontent( lpdf_image) lpdf_doc.addpage( lpdf_page) ll_return = lpdf_doc.save( "D:pdfcontext.pdf") |
Document get from Powerbuilder help
Thank you for watching.
Subscribe
Login
0 Comments
Oldest