[2 days left] What’s wrong with your cloud strategy? Learn why multicloud solutions matter with Nimble Storage.Register Now

x
?
Solved

Batch PDFs out of order

Posted on 2009-03-31
9
Medium Priority
?
488 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 39

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 39

Accepted Solution

by:
hdhondt earned 800 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
What does it mean to be "Always On"?

Is your cloud always on? With an Always On cloud you won't have to worry about downtime for maintenance or software application code updates, ensuring that your bottom line isn't affected.

 
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 1200 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 1200 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

VIDEO: THE CONCERTO CLOUD FOR HEALTHCARE

Modern healthcare requires a modern cloud. View this brief video to understand how the Concerto Cloud for Healthcare can help your organization.

Question has a verified solution.

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

One of the questions I get asked again and again is how to validate a field value in an AcroForm with a custom validation script. Adobe provided a lot of infrastructure to do that with just a simple script. Let’s take a look at how to do that wit…
Inserting page numbers in Portable Document Files not only enhances manageability but also makes them look professional. With numbered pages, the file appears more organized and it becomes easier to search for a particular page. The size and the vol…
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) …
In this fourth video of the Xpdf series, we discuss and demonstrate the PDFinfo utility, which retrieves the contents of a PDF's Info Dictionary, as well as some other information, including the page count. We show how to isolate the page count in a…

656 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