Home | About us | Overview | Softwares - Downloads | Evaluate | Order | Support | old forums | Contact | F.A.Q. | Documentations | Search | Sitemap

PDF file size

Support for GdTwain ActiveX and GdTwain Pro ActiveX/SDK.

PDF file size

Postby bpompei on Sun Aug 24, 2008 12:39 am

I demoed GDPicturePro5 and scanned documents with the following settings:
AxImaging1.TwainSetCurrentResolution(200)
AxImaging1.TwainSetCurrentPixelType(GdPicturePro5.TwainPixelType.TWPT_BW)
AxImaging1.TwainSetCurrentBitDepth(8)
The resulting .pdf file for a single sheet was approx. 50-80 kbytes.

I purchased GDITwainPro because all I need is scanning and viewing of pdf files.
I kept the same settings as below:
AxTwain1.TwainSetCurrentResolution(200)
AxTwain1.TwainSetCurrentPixelType(GdTwainPro2.TwainPixelType.TWPT_BW)
AxTwain1.TwainSetCurrentBitDepth(8)
Now the resulting .pdf file for a single sheet is approx. 500 kbytes.

I'm hoping that GDPicturePro doesn't use a better compression algorithm than GDTwainPro...or am I not setting things up properly?

Thanks,
Bob
bpompei
 
Posts: 4
Joined: Sun Aug 24, 2008 12:14 am

Re: PDF file size

Postby Loïc on Mon Aug 25, 2008 4:32 pm

Hi Bob,

You are probably making something different during your tests.

The GdTwain Pro 2 source code to generate PDF files is exactly the same as the GdPicture Pro 5 toolkit.


I suggest you to try again saving both in jpeg format to check differences between the resulting images (resolutions, sizes and compressions).

Best regards,

Loïc Carrère
User avatar
Loïc
Site Admin
 
Posts: 1350
Joined: Tue Oct 17, 2006 11:48 pm
Location: France

Re: PDF file size

Postby bpompei on Mon Aug 25, 2008 6:22 pm

Hi Loic, thanks for your reply. Here's what I've found.

Example1:
With GDTwainPro2, If I use:
AxTwain1.TwainPdfStart("c:\output.pdf")
as if I'm going to scan multiple pdfs into a single file and I end with
AxTwain1.TwainPdfStop
the resuling file is about 500k (even though I scan only 1 sheet)

Example2:
With GDTwainPro2, If I use:
AxTwain1.TwainPdfStart("c:\output.pdf")
as if I'm going to scan multiple pdfs into a single file and I end with
AxTwain1.SaveAsPDF("MyPDF.pdf")
the resuling file is about 50k (this only allows me to save 1 sheet)

NOTE: After running Example2 I checked the file size of "output.pdf" against the file size of "MyPDF.pdf"
Output.pdf was 500k and MyPDF.pdf was 50k

When I demoed GDPicturePro5, if I used the code from Example 1 above the resulting pdf file size for 1 sheet was approx 50k. And if I scanned multiple sheets in to a pdf file, the final pdf file size would grow by about 50k for each sheet that I scanned. That's why I was wondering if TwainPdfStart("c:\output.pdf") was implemented the same way in both GDPicturePro5 and GDTwainPro2.

Thanks
Bob
Last edited by bpompei on Mon Aug 25, 2008 7:45 pm, edited 1 time in total.
bpompei
 
Posts: 4
Joined: Sun Aug 24, 2008 12:14 am

Re: PDF file size

Postby bpompei on Mon Aug 25, 2008 7:44 pm

Hi Loic,

I've done more testing and my last comment is still true. I still have the demo version of GDPicturPro5 loaded on my computer as well as the purchased version of GDTwainPro2. If I run my application in GDPicturePro5 my pdf file size is 34k. When I run the exact same code in GDTwainPro2 (except for changing AXImaging1 to AXTwain1) my pdf file size is 488k.

The problem seems to lie in the way GDPicturePro and GDTwainPro handle this code:
AXImaging1.TwainPdfStart()
AXImaging1.TwainPdfStop()

versus

AxTwain1.TwainPdfStart()
AxTwain1.TwainPdfStop()

If I can not resolve this, will I be able to pay the difference between the two products ($389-$259=$130) and get a license for GDPicturePro5 so my pdf file size will be smaller?

Thanks,
Bob
bpompei
 
Posts: 4
Joined: Sun Aug 24, 2008 12:14 am

Re: PDF file size

Postby Loïc on Mon Aug 25, 2008 9:49 pm

Keep your money Bob.

I will check that tomorrow.


Please, could you send me by mail your 2 pdf files at esupport (at) gdpicture (dot) com ?

Best regards,

Loïc
User avatar
Loïc
Site Admin
 
Posts: 1350
Joined: Tue Oct 17, 2006 11:48 pm
Location: France

Re: PDF file size

Postby Loïc on Tue Aug 26, 2008 12:39 pm

Bob,

You were right !

I fixed this problem within the last GdTwain [Pro] released.

Please, download the last fixed edition.

Best regards,

Loïc
User avatar
Loïc
Site Admin
 
Posts: 1350
Joined: Tue Oct 17, 2006 11:48 pm
Location: France

Re: PDF file size

Postby bpompei on Tue Aug 26, 2008 6:28 pm

Hi Loic,

Thanks for your prompt attention to this matter. File sizes are back to normal. Everything seems to be working fine now :D

Thanks again,
Bob
bpompei
 
Posts: 4
Joined: Sun Aug 24, 2008 12:14 am

Re: PDF file size

Postby Loïc on Tue Aug 26, 2008 6:31 pm

You are welcome Bob.

Thanks for your feedback.

Best regards,

Loïc
User avatar
Loïc
Site Admin
 
Posts: 1350
Joined: Tue Oct 17, 2006 11:48 pm
Location: France


Return to GdTwain [Pro] ActiveX

Who is online

Users browsing this forum: No registered users and 1 guest