Solved

Reducing the size of a print job

Posted on 2008-10-13
5
540 Views
Last Modified: 2012-05-05
Hello

I'm writing a .NET application and need to print images.  The thing is that when looking at the queue, the print jobs are too big 20MB, 30MB etc...  

How can I reduce it?

Thanks

0
Comment
Question by:afikim
[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
  • 3
  • 2
5 Comments
 
LVL 38

Expert Comment

by:hdhondt
ID: 22706675
Not knowing anything else about what your prints entail, the main reason why print jobs get very big is embedded images that are too large.

An image should be around 200 dpi *as printed*. Hence, if you have a 5 x 5 cm (2" x 2") image on the page, it should be around 400 x 400 pixels in size. In many cases people think that a 1200 dpi printer requires 1200 dpi images for best results. That is completely wrong. Some applications also enlarge the image to printer resolution - again wrong. Publisher is one app that can do that, but you can tell it not to. At 1200 dpi, an image will be 36 times larger than at 200 dpi. Add a few like that, and your spool file will balloon.

Another thing that can affect the spool file size is the driver used, and the printer resolution specified in the driver. For graphics, a PostScript driver will usually produce smaller file sizes. A PCL driver will enlarge the image to suit the printer resolution selected in the driver; with PS the only thing that will change is a command that tells the printer which resolution to use, the image data will not change.

If neither of these applies, please provide more data about your prints.
0
 

Author Comment

by:afikim
ID: 22709082
Hi hdhondt

I use a 300X300 resolution.  
The attached snippet is a part of my code writing to the printing component.

Thanks

Eli
If prdPrintDocument.DefaultPageSettings.Landscape Then
            e.Graphics.DrawImage(tiffImage, 0, 0, prdPrintDocument.DefaultPageSettings.PrintableArea.Height, prdPrintDocument.DefaultPageSettings.PrintableArea.Width)
        Else
            e.Graphics.DrawImage(tiffImage, 0, 0, prdPrintDocument.DefaultPageSettings.PrintableArea.Width, prdPrintDocument.DefaultPageSettings.PrintableArea.Height)
        End If

Open in new window

0
 
LVL 38

Accepted Solution

by:
hdhondt earned 125 total points
ID: 22709698
Unfortunately, just the resolution is not the full answer. If you have an 8" x 10" 300 dpi image and print it at 4" x 5", you will still be sending 4 times more data to the printer than if you shrink it down to 4 x 5, still at 300dpi.

If your images are full page, then 20MB+ is about right for 300 dpi colour, unless you have a printer that understands data compressions (e.g. jpeg) *and* a driver that supports it. Most drivers will send the image uncompressed. In that case, try reducing the image size to only 200 dpi. It will halve the print size, and you probably will not notice any deterioration in quality.
0
 

Author Comment

by:afikim
ID: 22715885
hi hdhondt:

Thanks for ythe info.

I will check this subject and revert to you.

Thanks

Eli
0
 

Author Closing Comment

by:afikim
ID: 31406262
Thanks
0

Featured Post

Free Tool: SSL Checker

Scans your site and returns information about your SSL implementation and certificate. Helpful for debugging and validating your SSL configuration.

One of a set of tools we are providing to everyone as a way of saying thank you for being a part of the community.

Question has a verified solution.

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

Real-time is more about the business, not the technology. In day-to-day life, to make real-time decisions like buying or investing, business needs the latest information(e.g. Gold Rate/Stock Rate). Unlike traditional days, you need not wait for a fe…
This article shows how to deploy dynamic backgrounds to computers depending on the aspect ratio of display
In an interesting question (https://www.experts-exchange.com/questions/29008360/) here at Experts Exchange, a member asked how to split a single image into multiple images. The primary usage for this is to place many photographs on a flatbed scanner…
This video Micro Tutorial shows how to password-protect PDF files with free software. Many software products can do this, such as Adobe Acrobat (but not Adobe Reader), Nuance PaperPort, and Nuance Power PDF, but they are not free products. This vide…

636 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