PDF Library
The ctx.pdf library enables data to be extracted from text-searchable PDF documents within the scope of Desktop Studio projects.
-
For full details of the methods, see PDF Extension.
-
For details of the activities and their properties, see PDF Activities.
Tips for Using PDF Activities
Start with Open PDF and End with Release PDF
As soon as you drop a PDF activity onto the workspace of theDesktop Studio Workflow Perspective, the PDF library is automatically included in your project. For this reason, it is advisable to use the Open PDF activity, for example, rather than to use only custom activities to handle PDF files.
We recommend ending your PDF-related workflow with the Release PDF activity in order to release all resources associated with it.
Code Examples
In the above example of calling the extract method, the regular expression /Order Number: ([A-Z0-9]+)/ includes a capturing group, which is denoted by parentheses. As a result, only the string that meets the criteria and comes after "Order Number: " is returned. If the parentheses are omitted, the entire matching string is returned.