Solved

Reducing the size of a print job

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

Is Your Active Directory as Secure as You Think?

More than 75% of all records are compromised because of the loss or theft of a privileged credential. Experts have been exploring Active Directory infrastructure to identify key threats and establish best practices for keeping data safe. Attend this month’s webinar to learn more.

Question has a verified solution.

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

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…
Printers have changed substantially in the last 30 or so years, not just in technical capabilities but in cost and usage as well.  Printers were originally used for interfacing with the operator, not necessarily for printing copy or pictures. In …
This Micro Tutorial hows how you can integrate  Mac OSX to a Windows Active Directory Domain. Apple has made it easy to allow users to bind their macs to a windows domain with relative ease. The following video show how to bind OSX Mavericks to …
Both in life and business – not all partnerships are created equal. As the demand for cloud services increases, so do the number of self-proclaimed cloud partners. Asking the right questions up front in the partnership, will enable both parties …

895 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

15 Experts available now in Live!

Get 1:1 Help Now