PDF Metadata to XML

PDF Metadata to XML

The advanced, utilities workflow component, PDF Metadata to XML can help you to extract both metadata as well as key/values for form fields from a PDF file. The PDF must be loaded into the payload of the workflow before running this component. The component returns the result as XML into the payload.

 

The component has only a comment as parameter, which is optional and it has not effect on the component:

 

NG2PDFMetadata2XML0001

 

The resulting XML file can look like this:

 

NG2PDFMetadata2XML0004

 

The component can e.g. be used as shown in the workflow below:

 

NG2PDFMetadata2XML0002

 

In this example these components are used:

 

Read from file

NG2PDFMetadata2XML0003

 

In this component we read PDF files (with extension .pdf) from a directory, that are to be processed in this workflow.

 

PDF Metadata to XML

This exacts the metadata as described above - without any parameters.

 

 

To filesystem

Here we save the resulting XML file:

NG2PDFMetadata2XML0005

 

If we would want to refer to the name of the input PDF file, then we can find it as one of the predefined variables for input files.

    • Related Articles

    • PDF

      InterFormNG2 can work with PDF files in multiple ways - both as input and as output. PDF is one of the file types/payloads, that can be handled by the InterFormNG2 workflow. PDF as input A workflow can e.g. accept PDF files as the input file type. ...
    • PDF to images XML

      The workflow component, PDF to images XML (of the type, Create document) can be used for converting a single page of a PDF file into an image. A prerequisite is, that the PDF file is loaded into the payload. The component takes a PDF and renders a ...
    • XML

      XML is used widely in InterFormNG2 as both input and output payload in the workflow (and of course in the designer). Please notice, that some workflow components are listed as accepting only XML as input, where they actually also accept an IBM i ...
    • PDF input and output

      If you want to create PDF output in InterFormNG2, then you need to setup a workflow in InterFormNG2 to do that. If you want to use the PDF inside of an email, then you should consider to check out the email output options first, as the normal create ...
    • Create PDF email

      This workflow component merges the input file with a template and sends out an email with an attachment PDF file, which is result of the merge between the input file and the template. The output payload is the same as the input payload e.g. XML. This ...