Text to SPLF

Text to SPLF

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. printemail or PDF.

    Notice: Help Center Transition Update

    As of January 13, 2025, we are excited to announce that our new Help Center is in the final stages of development. While the Knowledge Base is already accessible, our current JIRA system will continue to manage support tickets during this transition period. For assistance with InterForm Output Management Software, please refer to the Support for InterForm Output Management Software.

    We appreciate your patience and understanding as we work to enhance your support experience. If you have any questions or encounter any issues, please do not hesitate to reach out via the existing support channels.

    Best regards,
    The InterForm Support Team


      • Related Articles

      • TEXT

        It is possible to define a workflow, that accepts text files as input. The default encoding is UTF-8. You need to convert the input text file into a spooled file, if you want to use a text file as input for a merge with a template. You can do that ...
      • PDF to splf component

        IMPORTANT!! DO NOT use this feature in the 1.9.0 version, as an important change was made in the next version, which changed the behavior of existing definitions. InterFormNG2 can extract text from a PDF file and put the extracted text into the ...
      • Splf extractor: Conditioned mappings

        Both the line and block element can be conditioned in the spooled file extractor. To condition an element you should first select the area in the spooled file view and create a simple mapping. Now you need to enable triggers on the right in order to ...
      • Text element

        If you want to insert any kind of text in InterFormNG2, then you should use the text element. You can insert a new text element if you click on this icon: The data, that you can output as text are these types: 1.A text constant. 2.Drag nodes from an ...
      • Text style element

        You can use a style in InterFormNG2 to set multiple, fixed global styles in a template, but with the text style element you can set a local, dynamic text style instead. You can add a text style in the middle of a template in the designer by clicking ...