Solved

Reducing the size of a print job

Posted on 2008-10-13
5
532 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:Herman D'Hondt
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:
Herman D'Hondt 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

How your wiki can always stay up-to-date

Quip doubles as a “living” wiki and a project management tool that evolves with your organization. As you finish projects in Quip, the work remains, easily accessible to all team members, new and old.
- Increase transparency
- Onboard new hires faster
- Access from mobile/offline

Join & Write a Comment

The ECB site provides FX rates for major currencies since its inception in 1999 in the form of an XML feed. The files have the following format (reducted for brevity) (CODE) There are three files available HERE (http://www.ecb.europa.eu/stats/exch…
If you need to start windows update installation remotely or as a scheduled task you will find this very helpful.
Access reports are powerful and flexible. Learn how to create a query and then a grouped report using the wizard. Modify the report design after the wizard is done to make it look better. There will be another video to explain how to put the final p…
This tutorial demonstrates a quick way of adding group price to multiple Magento products.

747 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

Need Help in Real-Time?

Connect with top rated Experts

12 Experts available now in Live!

Get 1:1 Help Now