Page 1 of 1

2 simultaneous jobs

PostPosted: Sat Apr 02, 2016 7:20 pm
by joseph
Hi,

I have software that sends 2 print jobs quickly one after the other ("original" + "copy"). Sometimes I lose 1 of the jobs. This happens because my auto-save format is "<date>_<time>.pdf" and if the two jobs occur on the same second the file gets overwritten. How can I avoid this issue?

v10.23.2529 on Windows 2008 R2 RDP (Terminal Services)
* Checking "confirm overwite" helps in some cases but not always. I tried to send 10 jobs ("original" + 9 "copies"): 4 files were created; 3 pop-ups appeared; still lost 3 jobs, including the irrecoverable "original".
* I suppose a macro for milliseconds, e.g. <ms>, would help even if it is not a 100-percent elegant solution.

Re: 2 simultaneous jobs

PostPosted: Mon Apr 25, 2016 8:30 am
by jr
Hi,

You can use the <ticks> described here:

http://www.biopdf.com/guide/macro_tags.php

<ticks>
The value of this macro tag represents the number of 100-nanosecond intervals that have elapsed since 12:00:00 midnight, January 1, 0001.
Example: 634889921720358114

There is also a <counter> and a <guid>. These two can make sure that your file name is unique.

Regards,
Jacob