PDF object API
The PDF object API allows communicating with the ADS and carrying out necessary functions from an ABAP program. These include creation of forms and extraction of data, and so on. In this recipe, we will see the code that will allow you to communicate with the ADS in order to generate a PDF form object for a filled PDF form and then extract necessary data from it. We assume that we are not using the Adobe offline infrastructure.
There are a few classes and interfaces involved. The factory class CL_FP
is used for creating the PDF document object instance that is based on the class CL_FP_PDF_OBJECT
(using interface IF_FP_PDF_OBJECT
). The main implementation class for the PDF object is CL_FP_PDF_OBJECT
.
In this recipe, we will see how a filled form may be programmatically processed using the ADS functions and then the entered data within the form may be extracted. We assume that the form to be processed is stored in the variable MYFORM
having type XSTRING
. The recipe takes on from...