ImageEn for Delphi and C++ Builder ImageEn for Delphi and C++ Builder

 

ImageEn Forum
Profile    Join    Active Topics    Forum FAQ    Search this forumSearch
Forum membership is Free!  Click Join to sign-up
Username:
Password:
Save Password
Forgot your Password?

 All Forums
 ImageEn Library for Delphi, C++ and .Net
 ImageEn and IEvolution Support Forum
 Multiview Demo:Two problems
 New Topic  Reply to Topic
Author Previous Topic Topic Next Topic  

Flashcqxg

131 Posts

Posted - May 19 2018 :  10:21:41  Show Profile  Reply
1.I use feeder to scan 5 papers,how to automatically save PDF at the end of the scan?
2.When i use the File menu to save as pdf file,the pdf file is so big, more than 40MB#65292;how to reduce its size?

Thanks.

xequte

39142 Posts

Posted - May 21 2018 :  01:50:48  Show Profile  Reply
Hi

1. After your call to MIO.Acquire, use MIO.SaveToFilePDF

2. ImageEn outputs the images to your PDF at their current size. You may want to resample them to a smaller size:

https://www.imageen.com/help/TImageEnProc.Resample.html

Also, check your PDF_Compression:

https://www.imageen.com/help/TIOParams.PDF_Compression.html



Nigel
Xequte Software
www.imageen.com
Go to Top of Page

Flashcqxg

131 Posts

Posted - May 22 2018 :  20:51:30  Show Profile  Reply
Hello:
Thanks.I test with the code as bellow:

ImageEnMView1.MIO.Acquire;
ImageEnMView1.Proc.Resample(100, 100, rfLanczos3, True);
ImageEnMView1.MIO.Params[0].PDF_Compression := ioPDF_G4FAX;
ImageEnMView1.MIO.SaveToFile('d:\test.pdf');

1.The image is not clear and blurred
2.The generated PDF document is still large,two pages,about 11MB
Go to Top of Page

xequte

39142 Posts

Posted - May 23 2018 :  06:13:42  Show Profile  Reply
Hi

1. 100x100 pixels is very small. You want at least 1000x1000.

2. ImageEnMView1.Proc.Resample only resamples the selected frame.

You want to resample all frames, e.g.

ImageEnMView1.MIO.Acquire;
ImageEnMView1.MBitmap.ResampleAll( 0.25, rfFastLinear );
ImageEnMView1.MIO.Params[0].PDF_Compression := ioPDF_G4FAX;
ImageEnMView1.MIO.SaveToFile('d:\test.pdf');



Nigel
Xequte Software
www.imageen.com
Go to Top of Page
  Previous Topic Topic Next Topic  
 New Topic  Reply to Topic
Jump To: