Size of PDF when using SaveAsPDF

Discussions about TWAIN & WIA scanning in GdPicture.NET using GdPictureImaging.
Post Reply
gtermors
Posts: 1
Joined: Tue Apr 09, 2013 11:35 am

Size of PDF when using SaveAsPDF

Post by gtermors » Tue Apr 09, 2013 11:55 am

I'm testing TWAIN aquisition, and I'm running into a problem with the size of the PDF file when using SaveAsPDF.

When I select TwainPixelType TWPT_BW (Black&White) the size of a single coloured A4 is about 182 Kb, which is fine.

But, when I select TWPT_RGB, the size of the PDF is 2,6 Mb. This is way too big!
When I use my own scanner software from Epson (I have a Epson SX600FW), the filesize is only about 900Kb.

Here are some of the values I set:
AutoBrightness
BitDepth 8
Resolution 300

Is there any way I can decrease the size of the PDF? (Preferable without using the PDF plugin).

I'm using GdPicture.NET V9, 9.2.0.4.

User avatar
Loïc
Site Admin
Posts: 5881
Joined: Tue Oct 17, 2006 10:48 pm
Location: France
Contact:

Re: Size of PDF when using SaveAsPDF

Post by Loïc » Wed Apr 10, 2013 9:46 pm

Hello,

The SaveAsPDF() uses JPEG compression for color image with a fixed quality of 90. To better control the compression algorithm you have to switch to the GdPicturePDF class.

Another option consists to scale down the image before saving it in order to reduce the amount data.

Kind regards,

Loïc

Post Reply

Who is online

Users browsing this forum: Google [Bot] and 1 guest