2 simultaneous jobs

General usage of the PDF Printer.

Moderator: jr

2 simultaneous jobs

Postby joseph » Sat Apr 02, 2016 7:20 pm

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.
joseph
 
Posts: 0
Joined: Sat Apr 02, 2016 6:26 pm

Re: 2 simultaneous jobs

Postby jr » Mon Apr 25, 2016 8:30 am

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
jr
Site Admin
 
Posts: 491
Joined: Sun Mar 26, 2006 12:28 pm


Return to General

Who is online

Users browsing this forum: No registered users and 1 guest

cron