Skip to main content
Best answer

How do I split text into different fields within a PDF using Formatter?

  • July 6, 2022
  • 2 replies
  • 140 views

Forum|alt.badge.img+1

Hoping for a little help, I am trying to split some text into line items and it doesn’t seem to be playing the game.

 

The input text will look like “3 2 2”, I am trying to split into line items so I can use the individual numbers at different places of a PDF. 

 

Using a normal Text-to-line formatter, on the surface it looks to be working:

 

However when I try to use those line items to output the data into a DocuPilot PDF, it only shows the output as one individual line (3,2,2):

 

Thank you!

Best answer by y0nX_web

Hi there!

Since your data is not an array with key => value format, i recommend to use the split format function with “Separate Fields” as Segment Index :
 

 

Thus you can get your 3 values separately in your next action :
 

 

This post has been closed for comments. Please create a new post if you need help or have a question about this topic.

2 replies

Forum|alt.badge.img+1
  • Author
  • Beginner
  • July 6, 2022

Nevermind! Just needed to do another Line Item To Text from there :)

 

 


y0nX_web
  • New
  • Answer
  • July 6, 2022

Hi there!

Since your data is not an array with key => value format, i recommend to use the split format function with “Separate Fields” as Segment Index :
 

 

Thus you can get your 3 values separately in your next action :