createWorkspace (target : xlink, options : nodeset, [fromDatasource : boolean]) : nodeset
The method “createWorkspace” in this namespace creates a graphic from a PDF and returns it as a workspace.
The parameter “xlink” is either an XPath to the binary data in the document or an XLink to a binary method.
The parameter “fromDatasource” is dependant on “xlink”. If an XLink is transferred to a binary method, then “fromDatasource” must be set to false. The default value for “fromDatasource” is “true”.
The parameter “options” is an XML with options for setting the ghostscript process.
The XML can look as follows:
When the parameter “page” is specified, the specified page is generated as a graphic. The default value for “page” is 1.
The parameters “deviceXResolution” and “deviceYResolution” indicate the DPI number for the horizontal and vertical. The default value for both parameters is 100.
“TextAlphaBits” sets the anti-aliasing for text in a PDF. The value range goes from 1 to 4. 4 is the best quality here and at the same time the default value. For the parameter “graphicsAlphaBits” the same value range applies, but this sets the anti-aliasing for the graphics in the PDF.