Populate Forms - wrong auto-numbering for filenames

Forum for the PDF-XChange Editor - Free and Licensed Versions

Moderators: PDF-XChange Support, Daniel - PDF-XChange, Chris - PDF-XChange, Sean - PDF-XChange, Paul - PDF-XChange, Vasyl - PDF-XChange, Ivan - Tracker Software, Stefan - PDF-XChange

User avatar
Peter2
User
Posts: 958
Joined: Mon Sep 13, 2010 10:09 am

Populate Forms - wrong auto-numbering for filenames

Post by Peter2 »

I have a simple PDF with two forms and a CSV as data-source. here is my CSV:

Code: Select all

HK_Ablauf;DN_Ablauf
500;a
500;a
500;a
500;a
500;b
500;b
500;c
500;d
500;e
500;f
500;f
500;f
500;f
500;f
500;f
500;f
500;g
500;h
500;h
500;h
500;
500;
500;
500;
500;
500;
500;
500;
500;
500;
My settings for filename is:

Code: Select all

%[ColName:DN_Ablauf]
it is obvious that the repeated values (a, b, ..) will cause problems and I select the option "auto-numbering". And here is my result:

Code: Select all

a.pdf
a_1.pdf
a_2.pdf
a_3.pdf
b_3.pdf
b_4.pdf
c_4.pdf
d_4.pdf
e_4.pdf
f_4.pdf
f_5.pdf
f_6.pdf
f_7.pdf
f_8.pdf
f_9.pdf
f_10.pdf
g_10.pdf
h_10.pdf
h_11.pdf
h_12.pdf
_12.pdf
_13.pdf
_14.pdf
_15.pdf
_16.pdf
_17.pdf
_18.pdf
_19.pdf
_20.pdf
_21.pdf
For me, starting with "b_3" the most filenames are wrong. It seems that the counter is not reset, and it counts also files which should be not counted. I would expect:

Code: Select all

...
a_3
b
b_1
c
d
e
f
f_1
f_2
....
PDF-X-Change Pro German
User avatar
Stefan - PDF-XChange
Site Admin
Posts: 19913
Joined: Mon Jan 12, 2009 8:07 am

Re: Populate Forms - wrong auto-numbering for filenames

Post by Stefan - PDF-XChange »

Hello Peter2,

Thanks for sharing this! Indeed I would expect the same as you suggest it should be.
I will ask our devs to check why the current behaviour is happening

Kind regards,
Stefan