Leading Zeros missing in Private Data

Post Reply
JuBaz
Member
Posts: 28
Joined: Tue Dec 07, 2021 11:41 am

Leading Zeros missing in Private Data

Post by JuBaz »

Hi,

I've tried the first time to work with the XPath Repeater App. I need to add for example numbers from 0001-1000 to the same pdf file. The App seems to solve my issue to generate the numbers, the only problem I have is that the leading zeros from the numbers are missing when i want to use them as private Data. I always need a number that consist of four digits. Is there any solution?
Attachments
PrivateData-loop_should be0001.png
PrivateData-loop_should be0001.png (183.34 KiB) Viewed 7591 times
loopstartvalue_fromMetadatafield.png
loopstartvalue_fromMetadatafield.png (147.98 KiB) Viewed 7591 times
rhd_ole
Member
Posts: 149
Joined: Mon Jan 24, 2022 5:36 pm

Re: Leading Zeros missing in Private Data

Post by rhd_ole »

I use this app all the time, it's great!.

The loop private data key is used to show what number of the loop is used from the XML in the output based on on 'repeat job n times' value, eg: first loop of the xml would be 1, second 2, and so on.

Are you trying to duplicate the pdf x amount of time and add a suffix to them from 0001-1000? Or how is this being used.
Color Science & Workflow Automation
User avatar
Soul Forge
Member
Posts: 61
Joined: Wed Jul 12, 2023 5:25 pm

Re: Leading Zeros missing in Private Data

Post by Soul Forge »

I think one solution would be adding a letter, to the beginning of the number, when defining the private data. eg. "L0001"
Then you could use the "After" option when using the private data else where, looking for everything that's after "L".
JuBaz
Member
Posts: 28
Joined: Tue Dec 07, 2021 11:41 am

Re: Leading Zeros missing in Private Data

Post by JuBaz »

Thanks for your response. The configuration of the xpath repeater app wasn't correct already, now it works!
Post Reply