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!

Debenu Quick PDF Library - PDF SDK Community Forum Homepage
Forum Home Forum Home > For Users of the Library > I need help - I can help
  New Posts New Posts RSS Feed - Printer Memory Errors
  FAQ FAQ  Forum Search   Register Register  Login Login

Printer Memory Errors

 Post Reply Post Reply
Author
Message
jj_willis View Drop Down
Beginner
Beginner


Joined: 02 Sep 11
Location: Pennsylvania
Status: Offline
Points: 3
Post Options Post Options   Thanks (0) Thanks(0)   Quote jj_willis Quote  Post ReplyReply Direct Link To This Post Topic: Printer Memory Errors
    Posted: 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.
 
Back to Top
Rowan View Drop Down
Moderator Group
Moderator Group
Avatar

Joined: 10 Jan 09
Status: Offline
Points: 398
Post Options Post Options   Thanks (0) Thanks(0)   Quote Rowan Quote  Post ReplyReply Direct Link To This Post 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.
Back to Top
AndrewC View Drop Down
Moderator Group
Moderator Group
Avatar

Joined: 08 Dec 10
Location: Geelong, Aust
Status: Offline
Points: 841
Post Options Post Options   Thanks (0) Thanks(0)   Quote AndrewC Quote  Post ReplyReply Direct Link To This Post 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.
Back to Top
jj_willis View Drop Down
Beginner
Beginner


Joined: 02 Sep 11
Location: Pennsylvania
Status: Offline
Points: 3
Post Options Post Options   Thanks (0) Thanks(0)   Quote jj_willis Quote  Post ReplyReply Direct Link To This Post 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.
Back to Top
AndrewC View Drop Down
Moderator Group
Moderator Group
Avatar

Joined: 08 Dec 10
Location: Geelong, Aust
Status: Offline
Points: 841
Post Options Post Options   Thanks (0) Thanks(0)   Quote AndrewC Quote  Post ReplyReply Direct Link To This Post 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.
Back to Top
jj_willis View Drop Down
Beginner
Beginner


Joined: 02 Sep 11
Location: Pennsylvania
Status: Offline
Points: 3
Post Options Post Options   Thanks (0) Thanks(0)   Quote jj_willis Quote  Post ReplyReply Direct Link To This Post 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 corrected the issue by opening up the Crystal report, opening the image within Crystal, saving as a .PNG file then replacing the image within the report.  The .RPT file is much larger, going from 1mb to 17mb.  have not figured out how to determine what type of images was originally used.
 
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.
Back to Top
 Post Reply Post Reply
  Share Topic   

Forum Jump Forum Permissions View Drop Down

Forum Software by Web Wiz Forums® version 11.01
Copyright ©2001-2014 Web Wiz Ltd.

Copyright © 2017 Debenu. Debenu Quick PDF Library is a PDF SDK. All rights reserved. AboutContactBlogSupportOnline Store