Page 1 of 1

Leading Zeros missing in Private Data

Posted: Wed Jul 24, 2024 12:32 pm
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?

Re: Leading Zeros missing in Private Data

Posted: Wed Jul 24, 2024 3:26 pm
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.

Re: Leading Zeros missing in Private Data

Posted: Wed Jul 24, 2024 10:40 pm
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".

Re: Leading Zeros missing in Private Data

Posted: Fri Jul 26, 2024 1:02 pm
by JuBaz
Thanks for your response. The configuration of the xpath repeater app wasn't correct already, now it works!