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
 ImageEnMView.MIO.SaveToFilePDF
 New Topic  Reply to Topic
Author Previous Topic Topic Next Topic  

Oleg

Russia
3 Posts

Posted - Dec 14 2011 :  18:05:33  Show Profile  Reply
Hi!

I have ImageEnMView with 500 images (greyscale,100 kB each).
When i try execute:
ImageEnMView.MIO.SaveToFilePDF('My.pdf')
then after some time i have message "Out of memeory".
My RAM = 4 Gb

How i can make it ????

/Sorry for bad English/
:)

Oleg K

fab

1310 Posts

Posted - Dec 15 2011 :  01:16:29  Show Profile  Reply
Hi,
you're right, this is a bug. Unfortunately each page of the resulting PDF is cached in memory, so to exhaust it soon.
Next minor release will cache pages on disk, so to allow to create bigger PDFs.

In the mean time you could try to set a compression (like jpeg) to the PDF pages.
Go to Top of Page

Oleg

Russia
3 Posts

Posted - Dec 15 2011 :  21:42:33  Show Profile  Reply
Ok, thank You for answer.
And i so try after scan my 500 images (if save to JPG = 50-100 kB each):
...
ImageEnMView1.MIO.Params[i].TIFF_JPEGQuality:=50;
ImageEnMView1.MIO.Params[i].TIFF_Compression:=ioTIFF_JPEG ;
ImageEnMView1.MIO.SaveToFileTIFF('MyFile.tif') ;
...
After save - TIF file > 1GB (!!)...
How i can make TIF real size (~25..50 Mb)?

/Sorry for bad English/
:)

Oleg K
Go to Top of Page

fab

1310 Posts

Posted - Dec 16 2011 :  00:30:51  Show Profile  Reply
JPEG requires an RGB image. So you should write:

ImageEnMView1.MIO.Params[0].TIFF_JPEGQuality:=50;
ImageEnMView1.MIO.Params[0].TIFF_Compression:=ioTIFF_JPEG ;
ImageEnMView1.MIO.Params[0].BitsPerSample:=8;
ImageEnMView1.MIO.Params[0].SamplesPerPixel:=3;
ImageEnMView1.MIO.DuplicateCompressionInfo();
ImageEnMView1.MIO.SaveToFileTIFF('MyFile.tif') ;

Go to Top of Page

Oleg

Russia
3 Posts

Posted - Dec 19 2011 :  23:01:46  Show Profile  Reply
Thank You!

Oleg K
Go to Top of Page
  Previous Topic Topic Next Topic  
 New Topic  Reply to Topic
Jump To: