Solved

Batch PDFs out of order

Posted on 2009-03-31
9
456 Views
Last Modified: 2012-05-06
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.
0
Comment
Question by:malnack
[X]
Welcome to Experts Exchange

Add your voice to the tech community where 5M+ people just like you are talking about what matters.

  • Help others & share knowledge
  • Earn cash & points
  • Learn & ask questions
  • 4
  • 3
  • 2
9 Comments
 
LVL 38

Expert Comment

by:hdhondt
ID: 24033913
Try changing this setting in the driver:

Go to printer Properties. Click the Advanced tab. Tick the buttons that say "Start printing after last page is spooled" and "Print spooled documents first".
0
 

Author Comment

by:malnack
ID: 24033977
hdhondt:
When I view the printer preferences, the settings are as you decribe, but the entire panel is disabled. I assume that our system engineers have locked it up somehow. Any thoughts?
0
 
LVL 38

Accepted Solution

by:
hdhondt earned 200 total points
ID: 24036089
When you look at the print queue (double-click the print icon in the system tray), are the documents listed in the order that they are printed? With the settings I gave that is the order they will be printed in.
0
Industry Leaders: We Want Your Opinion!

We value your feedback.

Take our survey and automatically be enter to win anyone of the following:
Yeti Cooler, Amazon eGift Card, and Movie eGift Card!

 
LVL 44

Expert Comment

by:Karl Heinz Kremer
ID: 24037535
I would work on trying to save the files first. If you can print them, they are on your system, and you should be able to capture them. That way you can then combine them into one large PDF file.
Printing seems to happen via Reader, Reader needs access to the file. If Reader can access the file, so an you. How does the print request get sent to Reader?
0
 

Author Comment

by:malnack
ID: 24039117
Even though I am sending them to print in a specific order, they are not hitting the queue in that order. When I monitor the printer queue, my PDFs are not getting there in the order that I am sending them. I'm confused as to how that is happening. (As I am sending the print jobs, my user interface updates with the last item sent. It is displaying them in the correct order.)

Also, I'm not sure I can save the PDFs as the FileNet SDK is launching Reader silently and issuing a print command. After each one prints, that Reader window is killed and another is launched for the next one.

0
 
LVL 44

Assisted Solution

by:Karl Heinz Kremer
Karl Heinz Kremer earned 300 total points
ID: 24039397
The windows print queue is supposed to handle the jobs in a first in first out (FIFO) way. It is possible that your printers are actually spooling these jobs again, and based on how long it takes to process them, one job could be printed earlier than a job that was actually sent earlier. This can happen if the printer for example opens several connections to the print server, and connection 1 downloads a large file, whereas connection 2 downloads the next file in the queue that just happens to be very small. Connection 2 will be done much earlier than Con1, and the RIP will therefore start to process the second file in the queue before the first one.

You may want to look into how you can configure your printers so that they also act as FIFO devices.
0
 

Author Comment

by:malnack
ID: 24040463
Just finished another round of testing. Same issues. The printers appear to be set up as khkremr has suggested. I also turned the Spool Image setting on the printer itself to see if it had any effect. No luck with that either.
0
 
LVL 44

Assisted Solution

by:Karl Heinz Kremer
Karl Heinz Kremer earned 300 total points
ID: 24042474
Talk to your printer manufacturer or your service and see if they can help you.
0
 

Author Closing Comment

by:malnack
ID: 31565012
Thanks guys. You helped me rule out some things I hadn't considered. I've contacted our service rep for the printers for further support.
0

Featured Post

Manage your data center from practically anywhere

The KN8164V features HD resolution of 1920 x 1200, FIPS 140-2 with level 1 security standards and virtual media transmissions at twice the speed. Built for reliability, the KN series provides local console and remote over IP access, ensuring 24/7 availability to all servers.

Question has a verified solution.

If you are experiencing a similar issue, please ask a related question

Update 21-May-2015: I temporarily removed the source code and the code snippets to make major changes to the program. Regards, Joe INTRODUCTION This Article is a follow-up to the Article entitled How To Rename-Move a Batch of PDF Files Based o…
Have you ever come up with a need of emailing only few pages of PDF file to one of yourfriend or colleague, instead of whole Adobe file? If yes, then surely you have face problems in doing that! Read this section as I have suggested multiple solutio…
In this second video of the Xpdf series, we discuss and demonstrate the PDFimages utility, which, in a single command, is able to extract all the images from a PDF file and save each one in a separate image file (PBM, PPM, or JPG). Download and inst…
In this video, we show how to convert an image-only PDF file into a PDF Searchable Image file, that is, a file with both the image (typically from scanning) and text, which is created in an automated fashion with Optical Character Recognition (OCR) …
Suggested Courses

734 members asked questions and received personalized solutions in the past 7 days.

Join the community of 500,000 technology professionals and ask your questions.

Join & Ask a Question