Please enable JavaScript to view this site.

InterFormNG2 Manual

One of the valid input formats of InterFormNG2 is text files. If you e.g. want to use data from an input text file in either an email or in a template, then you first need to convert the text file into the SPLF format. You can use the basic, converter workflow component, Text to SPLF for that.

 

In order to select this component the payload must be TEXT e.g. by selecting TEXT as the input file type in the workflow.

 

The component has these input parameters:

 

NG2WorkflowComponentText2SPLF0001

 

Character encoding

Here you can state the encoding of the input text file. The default encoding is UTF-8.

 

Page break byte sequence (in hex)

In the input text file there might be one or multiple characters to indicate a page break. You need to define this as a hex encoding sequence of byte. The default indicator is Form Feed (hex 0C) as shown above.

 

 

The input text file may only contain text.

 

If you e.g. convert a text file with these lines:

 

Mary had a lamb.

My dad is stronger than your dad.

 

Then the component will convert it into this SPLF file:

 

<?xml version="1.0" encoding="UTF-8"?>

<spool>

   <page>TWFyeSBoYWQgYSBsYW1iLgpNeSBkYWQgaXMgc3Ryb25nZXIgdGhhbiB5b3VyIGRhZC4=</page>

</spool>

 

This file might look strange, but if you upload it into the Library and then load it in a template inside the designer, then you can create a template, where this input file is handled as a normal spooled file.

 

You can verify the output of the conversion e.g. with the To filesystem component:

 

NG2WorkflowComponentText2SPLF0002

 

You can also use the converted spooled file as input for a merge with a template into e.g. print, email or PDF.