Batch PDFs out of order
Posted on 2009-03-31
I've written an app that retreives drawings out of an old version of FileNet and batch prints the PDF files to the user's default printer. The user uploads a list of parts, the PDFs are found and sent in the order that they are processed to the printer. We haven't been able to upgrade our users to anything beyond Reader 7 because the later versions are more prone to print the drawings out of order. (The list of PDFs is typically 100 - 200 at a time).
I'm assuming that the printers involved (various makes and models) are pulling jobs from its queue in the order that it wants to. In testing, it appears that the newer versions of Reader process the drawings much faster, which makes me think that Reader 7 works better because it is slower. I've tried adding a delay, spawning multiple threads, etc to no avail.
Does anyone have any suggestions to get documents from a print queue in the order that they were sent (from each user)? I can't save the PDFs first and combine them into one large document because of the way that FileNet works. It does not allow direct access to the PDF files on the server. They are served up when I provide the drawing key. I have no option to save the PDFs either unless the user's default condition was print to file. In that case I'd have to have a file system watcher on their PC combine the files and send them off. I don't think they'd go fo print to file as a default.