Solved

Reducing the size of a print job

Posted on 2008-10-13
5
534 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
  • 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

Master Your Team's Linux and Cloud Stack!

The average business loses $13.5M per year to ineffective training (per 1,000 employees). Keep ahead of the competition and combine in-person quality with online cost and flexibility by training with Linux Academy.

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…
When you try to share a printer , you may receive one of the following error messages. Error message when you use the Add Printer Wizard to share a printer: Windows could not share your printer. Operation could not be completed (Error 0x000006…
This Micro Tutorial will teach you how to censor certain areas of your screen. The example in this video will show a little boy's face being blurred. This will be demonstrated using Adobe Premiere Pro CS6.
Email security requires an ever evolving service that stays up to date with counter-evolving threats. The Email Laundry perform Research and Development to ensure their email security service evolves faster than cyber criminals. We apply our Threat…

809 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