Welcome to LEAD Support Forum Login | Register | Faq  

    LEAD Support Forum
  Resource to find answers and post technical questions about LEAD products.
Search    
   

Re: Scan and pdf size
Started by nans at 06-16-2008 7:04. Topic has 5 replies.

Print Search « Previous Thread Next Thread »
  06-16-2008, 7:04
nans is not online. Last active: 6/13/2008 1:27:14 PM nans

Top 500 Posts
Joined on 04-30-2008
Posts 10
Scan and pdf size
Reply Quote
Hi,

I evaluate leadtools.
When i am scanning 8 pages, the pdf size (10 Mo) is too big.
I use acquirefast with raspdf and 24 bpp and i want use scan multipage.
I use Canon DR-1210C.
Is there a solution to reduce the size?

Thanks a lot! :)
   Report 
  06-16-2008, 11:03
Adnan Ismail is not online. Last active: 8/14/2008 1:40:07 PM Adnan Ismail



Top 10 Posts
Joined on 07-31-2006
Posts 1,113
Re: Scan and pdf size
Reply Quote

If you are saving your scanned images into colored PDF files, please choose one of the Raster PDF formats that support compression, such as RasPdfJpeg411or RasPdfLzw.


Adnan Ismail
LEADTOOLS Technical Support

   Report 
  06-17-2008, 4:17
nans is not online. Last active: 6/13/2008 1:27:14 PM nans

Top 500 Posts
Joined on 04-30-2008
Posts 10
Re: Scan and pdf size
Reply Quote
Thanks for your response!

I test rasterimageformat for 8 pages and i use multipage. Moreover, i want the scanned documents into only one file and not file by document scanned.
So i test raspdfjpeg411 and the pdf size is 12 Mo instead of 8 Mo. In the pdf there is 8 pages but there is nothing in.
How to resolve this problem?

For Raspdflzw is not multipage there is one file by document scanned and not one file for all scanned documents as i want.

Need to help, please :)

   Report 
  06-17-2008, 9:06
Adnan Ismail is not online. Last active: 8/14/2008 1:40:07 PM Adnan Ismail



Top 10 Posts
Joined on 07-31-2006
Posts 1,113
Re: Scan and pdf size
Reply Quote

Can you post the exact code you are using to save the PDF files? Also, please specify the scanned page parameters (width and height in pixels, and color resolution in bits per pixel).


Adnan Ismail
LEADTOOLS Technical Support

   Report 
  06-17-2008, 10:02
nans is not online. Last active: 6/13/2008 1:27:14 PM nans

Top 500 Posts
Joined on 04-30-2008
Posts 10
Re: Scan and pdf size
Reply Quote
Here the scanned pages parameters:
_twainSession = new TwainSession();
_twainSession.Startup(this, "", "", "", "", TwainStartupFlags.None);
_twainSession.EnableSetPropertyEvent = true;
TwainProperties props = _twainSession.Properties;
TwainImageResolutionProperties imageres = props.ImageResolution;
TwainCapability tcDPI = new TwainCapability();
tcDPI.Information.ContainerType = TwainContainerType.OneValue;
tcDPI.Information.Type = TwainCapabilityType.ImageXResolution;
tcDPI.OneValueCapability.ItemType = TwainItemType.Fix32;
tcDPI.OneValueCapability.Value = 100;
_twainSession.SetCapability(tcDPI, TwainSetCapabilityMode.Set);
tcDPI.Information.ContainerType = TwainContainerType.OneValue;
tcDPI.Information.Type = TwainCapabilityType.ImageYResolution;
tcDPI.OneValueCapability.ItemType = TwainItemType.Fix32;
tcDPI.OneValueCapability.Value = 100;
_twainSession.SetCapability(tcDPI, TwainSetCapabilityMode.Set);
imageres.HorizontalResolution = 100;
imageres.VerticalResolution = 100;
props.ImageResolution = imageres;
_twainSession.Properties = props;

Exact code to save the pdf files :

_twainSession.EnableAcquireMultiPageEvent = true;
_twainSession.AcquireMultiPage += new EventHandler(twain_AcquireMulti);
_fileName = cheminsauvDocument + nomfichier + ".pdf";
TwainCapability tctemp = _twainSession.GetCapability(TwainCapabilityType.ImageXResolution, TwainGetCapabilityMode.GetValues);
_twainSession.AcquireFast(_fileName, TwainFastUserInterfaceFlags.None, TwainTransferMode.Buffer, RasterImageFormat.RasPdf, 24, true, 0, true);

public void twain_AcquireMulti(object sender, TwainAcquireMultiPageEventArgs e)
{
if (e.FinishScan)
{
MessageBox.show("The page # {0} is scanned and saved to file name {1}", e.PageNumber, e.FileName);

}
e.Cancel = false;
}


it's very important for me because if the problem is solved my boss buys leadtools.


   Report 
  06-18-2008, 10:13
Adnan Ismail is not online. Last active: 8/14/2008 1:40:07 PM Adnan Ismail



Top 10 Posts
Joined on 07-31-2006
Posts 1,113
Re: Scan and pdf size
Reply Quote

You have not told me what the image's properties are. Can you scan a typical page of yours and save it as TIFF (not PDF), then put it in a ZIP or RAR file and attach it here?


Adnan Ismail
LEADTOOLS Technical Support

   Report 
Post
LEAD Support Fo... » Developer » Scanning/Captur... » Re: Scan and pdf size

Powered by Community Server, by Telligent Systems