Print Page | Close Window

Multiple PDFs in the same spool?

Printed From: Debenu Quick PDF Library - PDF SDK Community Forum
Category: For Users of the Library
Forum Name: I need help - I can help
Forum Description: Problems and solutions while programming with the Debenu Quick PDF Library and Debenu PDF Viewer SDK
URL: http://www.quickpdf.org/forum/forum_posts.asp?TID=3278
Printed Date: 04 Apr 26 at 7:28PM
Software Version: Web Wiz Forums 11.01 - http://www.webwizforums.com


Topic: Multiple PDFs in the same spool?
Posted By: BobW
Subject: Multiple PDFs in the same spool?
Date Posted: 04 Mar 16 at 5:36PM
I need to print up to 25,000 documents at a time.  In some cases these could be existing PDFs on disk.  In most cases these are PDF documents I create on the fly using a stock PDF as a form I fill in, print, then discard.  If I use PrintDocument it creates a separate print job for each PDF.  I need a way to have all the documents be in the same spool file.  This is particularly important when I print to a large production printer.  The operator wants a single 50,000 page job, not 25,000 two-page jobs.  Is there a way to do this?  I am imagining something like:

Start Print Job
For each PDF
   PrintPages 1, QP.PageCount
next PDF
End Print Job

Currently I do something like this by using another tool that is a wrapper around the printer object.  I use RenderPageToDC to send each page to the spool file.  Unfortunately it has one disadvantage I can not overcome:  The spool size is enormous -- twice what PrintDocument produces.  It's tied to the DPI of the printer and with most printers at 600 DPI and more printers being 1200 DPI, it takes way longer to render and the printers run out of memory. 

I'm not willing to try to create the entire run as a single PDF in memory as a) I am certain to run out of memory, and b) the user will often have to wait for the entire document is rendered rather than be able to start printing as soon as the first pages are spooled.






Replies:
Posted By: Ingo
Date Posted: 04 Mar 16 at 7:06PM
Hi Bob,

my idea goes in the direction "save all pdf-documents into a special path... merge them all in a periodical way... and then do the printout".
I fear you won't like it ;-)

Google told me something using the open source pdf creator.
Perhaps this is what you like more:
http://docs.pdfforge.org/pdfcreator/2.0/en/com-interface/user-manual/how-to/merge-all-jobs/
http://www.pdfforge.org/pdfcreator/manual/queue



-------------
Cheers,
Ingo



Posted By: mLipok
Date Posted: 04 Mar 16 at 7:08PM
http://www.debenu.com/products/development/debenu-pdf-library/features/pdf-printing/
http://www.debenu.com/docs/pdf_library_reference/RenderingAndPrinting.php
http://www.debenu.com/docs/pdf_library_reference/PrintDocument.php
http://www.debenu.com/docs/pdf_library_reference/PrintPages.php



-------------
Here you can find description how to test my examples:
http://www.quickpdf.org/forum/forum_posts.asp?TID=2932&PID=12600&title=drawcapturedpagematrix-matrix-howto#12600



Print Page | Close Window

Forum Software by Web Wiz Forums® version 11.01 - http://www.webwizforums.com
Copyright ©2001-2014 Web Wiz Ltd. - http://www.webwiz.co.uk