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

 

ImageEn Forum
Profile    Join    Active Topics    Forum FAQ    Search this forumSearch
 All Forums
 ImageEn Library for Delphi, C++ and .Net
 ImageEn and IEvolution Support Forum
 ImageEnMView.MIO.SaveToFilePDF

Note: You must be registered in order to post a reply.
To register, click here. Registration is FREE!

View 
UserName:
Password:
Format  Bold Italicized Underline  Align Left Centered Align Right  Horizontal Rule  Insert Hyperlink   Browse for an image to attach to your post Browse for a zip to attach to your post Insert Code  Insert Quote Insert List
   
Message 

 

Emoji
Smile [:)] Big Smile [:D] Cool [8D] Blush [:I]
Tongue [:P] Evil [):] Wink [;)] Black Eye [B)]
Frown [:(] Shocked [:0] Angry [:(!] Sleepy [|)]
Kisses [:X] Approve [^] Disapprove [V] Question [?]

 
Check here to subscribe to this topic.
   

T O P I C    R E V I E W
Oleg Posted - Dec 14 2011 : 18:05:33
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
4   L A T E S T    R E P L I E S    (Newest First)
Oleg Posted - Dec 19 2011 : 23:01:46
Thank You!

Oleg K
fab Posted - Dec 16 2011 : 00:30:51
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') ;

Oleg Posted - Dec 15 2011 : 21:42:33
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
fab Posted - Dec 15 2011 : 01:16:29
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.