Adding multi-line text to PDF with VariableSets

Post Reply
jterrano
Newbie
Posts: 6
Joined: Thu Nov 04, 2021 8:00 pm

Adding multi-line text to PDF with VariableSets

Post by jterrano »

I am attempting to apply multi-line text to an action list through a variable set.

The multi-line text shows :

in x-path :

Code: Select all

<Column Name="DetailDescription" DataType="STRING">LUX_CP 3030347
Standard Hours Sign
18"x30"
.020 Stryene Dead White
4/0
4-Holes Drilled in Corners</Column>
as utf-8 :

Code: Select all

<Column Name="DetailDescription" DataType="STRING">LUX_CP 3030347&#13;
Standard Hours Sign&#13;
18"x30"&#13;
.020 Stryene Dead White&#13;
4/0&#13;
4-Holes Drilled in Corners</Column>
When i attempt to apply DetailDescription to private data, I am given an error that states that the following lines must start with a key=tag
Standard Hours Sign
18"x30"
.020 Stryene Dead White
4/0
4-Holes Drilled in Corner

When i attempt to apply the DetailDescription as a variable set, pitstop will only pull the first line in "LUX_CP 3030347"

I've tried changing the &#13 to &#133, which from what I have found is a utf-8 encoding:

&#13 = Control character: Carriage Return (cr)
&#133 = Control character: Next Line (nel)

I have exhausted all options as far as i can think and really hope someone may be able to provide assistance... overall the goal is to take this multi-line detail description and write it to a PDF as i am attempting to generate job tickets for production.
User avatar
JimmyHartington
Advanced member
Posts: 281
Joined: Tue Mar 22, 2011 7:38 am

Re: Adding multi-line text to PDF with VariableSets

Post by JimmyHartington »

As far as I know it is not possible to add multilines in with Pitstop.

If you create the jobticket from scratch maybe it is better to write a HTML and convert it to PDF with tools for that.

I have used custom written HTML with web-fonts, converted to pdf with Chrome and lastly placed into an existing PDF.
This way I could achieve multilines pdf from Switch variables.
User avatar
john.dean@esko.com
Member
Posts: 29
Joined: Tue Aug 13, 2019 8:23 pm
Location: Chicago

Re: Adding multi-line text to PDF with VariableSets

Post by john.dean@esko.com »

Adding multiline text in PitStop is indeed on the feature request list that is being reviewed.
Somewhat familiar with Enfocus products.
Malcolm Mackenzie
Member
Posts: 121
Joined: Wed Mar 22, 2017 5:05 pm
Location: London, UK
Contact:

Re: Adding multi-line text to PDF with VariableSets

Post by Malcolm Mackenzie »

I've done this line by line.
Bit fiddly but once done it worked.
It might help someone here.
Add object and set offset.
Add object change offset up/down or across
Screenshot 2022-05-27 at 15.39.35.png
Screenshot 2022-05-27 at 15.39.35.png (40.82 KiB) Viewed 2101 times
Post Reply