Do you own a Debenu Quick PDF Library version 7, 8, 9, 10, 11, 12, 13 or iSEDQuickPDF license? Upgrade to Debenu Quick PDF Library 14 today!
![]() |
Printer Memory Errors |
Post Reply
|
| Author | |
jj_willis
Beginner
Joined: 02 Sep 11 Location: Pennsylvania Status: Offline Points: 3 |
Post Options
Thanks(0)
Quote Reply
Topic: Printer Memory ErrorsPosted: 02 Sep 11 at 5:00PM |
|
QuickPDF is being used as a print server for PDFs created in another program. Most pdfs are created from a program that convers Crystal reports to PDF. Most reports have scanned in background images, with text overlays, like forms. I am having printer memory full errors when using QuickPDF to print the files. Most files are less than 6 pages, some are only 1 page. The PDF file sizes are typically less than 100k, most are less than 1mb. When I watch the spool directory, the spool files are much, much larger. I have observed 23mb spool files from a 1mb PDF. Does anyone have any suggestions? I am using C# with the QuickPDF.PrintDocument function (DLL). I am thinking DARenderPageToDC might be an option, but I have not figured out how to make that work in C# yet. |
|
![]() |
|
Rowan
Moderator Group
Joined: 10 Jan 09 Status: Offline Points: 398 |
Post Options
Thanks(0)
Quote Reply
Posted: 04 Sep 11 at 8:26PM |
|
Do you have any sample PDFs that you can upload for us to look at? There could be quite a few different reasons for the ballooning of the size. A specific type of image compression used in the PDFs for example.
|
|
![]() |
|
AndrewC
Moderator Group
Joined: 08 Dec 10 Location: Geelong, Aust Status: Offline Points: 841 |
Post Options
Thanks(0)
Quote Reply
Posted: 05 Sep 11 at 2:35AM |
|
You might want to try the following code which generates an EMF file and uses this for printing. This is part of playing and testing I was doing recently.
private void pd_PrintPage(object sender, PrintPageEventArgs ev) { QP.RenderPageToFile(200, globPage, 8, "printedpage.emf"); if (QP.PageWidth() > QP.PageHeight()) ev.PageSettings.Landscape = true; else ev.PageSettings.Landscape = false; Metafile metafile = new Metafile("printedpage.emf"); // Harcoded for testing. //ev.Graphics.DrawImage(metafile, new Rectangle(0, 0, ev.PageBounds.Right, ev.PageBounds.Bottom)); ev.Graphics.DrawImage(metafile, new Rectangle(0, 0, ev.PageSettings.Bounds.Right, ev.PageSettings.Bounds.Bottom)); globPage++; ev.HasMorePages = (globPage < QP.PageCount()); } private void PrintViaEMF_Click(object sender, EventArgs e) { string s; globPage = 1; float dpi = this.CreateGraphics().DpiX; PrintDocument pd = new PrintDocument(); pd.PrintPage += new PrintPageEventHandler(this.pd_PrintPage); pd.Print(); } Andrew.
|
|
![]() |
|
jj_willis
Beginner
Joined: 02 Sep 11 Location: Pennsylvania Status: Offline Points: 3 |
Post Options
Thanks(0)
Quote Reply
Posted: 06 Sep 11 at 7:11PM |
|
The PDF that I am having problems with has some confidential information on it. I should be able to create one with some fake information on it but I will need a little time.
Another issue I am having while I test this locally is the images are printing inversely. Which means it is black where it should be white, white where it should be black. I tried using the above code for RenderPageToFile and Metafile, but I get the same problems with the images.
|
|
![]() |
|
AndrewC
Moderator Group
Joined: 08 Dec 10 Location: Geelong, Aust Status: Offline Points: 841 |
Post Options
Thanks(0)
Quote Reply
Posted: 07 Sep 11 at 12:56PM |
|
Which version of the Quick PDF Library are you using. We have added a lot of fixes for TIFF handling in 7.25 and 7.26. If the image is inverted then this is the most likely cause.
We have also fixed some CMYK color mapping issues in QPL 7.26 and 8.11.
We have started noticing that programs that convert HTML pages to PDF like to use Transparency which we currently do not support. Some of these PDF's will have black backgrounds. Andrew. |
|
![]() |
|
jj_willis
Beginner
Joined: 02 Sep 11 Location: Pennsylvania Status: Offline Points: 3 |
Post Options
Thanks(0)
Quote Reply
Posted: 08 Sep 11 at 4:33PM |
|
I tried the new drivers and inverted images are fixed. I am still having memory problems problems on the printer. I modified the printing program to send 1 page to the printer at a time
and still have printer memory errors on one particular page. I have over 700 Crystal reports and almost all have images. I am not looking forward to doing this for all of them, so I am hoping someone would have some suggestions.
|
|
![]() |
|
Post Reply
|
|
|
Tweet
|
| Forum Jump | Forum Permissions ![]() You cannot post new topics in this forum You cannot reply to topics in this forum You cannot delete your posts in this forum You cannot edit your posts in this forum You cannot create polls in this forum You cannot vote in polls in this forum |
Copyright © 2017 Debenu. Debenu Quick PDF Library is a PDF SDK. All rights reserved. About — Contact — Blog — Support — Online Store