ResourceSearchPath

Applies to

PDFContext

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:\worker\image" and then load the files in the path to the PDF document.

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:\worker\image}" 
lpdf_image.filename = "1.png"
lpdf_page.addcontent( lpdf_image)
lpdf_doc.addpage( lpdf_page)
ll_return = lpdf_doc.save( "D:\pdfcontext.pdf")