Note: You must be registered in order to post a reply. To register, click here. Registration is FREE!
T O P I C R E V I E W
Ole Ekerhovd
Posted - Dec 11 2021 : 04:32:01 Hi
I load a pdf file into a ImageEnmView.
After that I save to a database as Tiff (blob).
for i:=0 to imageenmview1.ImageCount-1 do begin imageenmview1.MIO.Params[i].TIFF_Compression:=ioTIFF_JPEG; imageenmview1.MIO.Params[i].BitsPerSample:=2; end;
The picture quality gets a bit blurry using above code.
As there are thousands of files saved to the database, size of saved data is important. (Also client program and the database are at separate locations)
Is it possible to reduce size and at the same time maintain most of the quality?
4 L A T E S T R E P L I E S (Newest First)
Ole Ekerhovd
Posted - Dec 13 2021 : 23:10:17 Thanks Nigel
Works great.
Compressed and fully readable :)
Pdf=200kb ioTIFF_LZW=147kb ioTIFF_JPEG=76kb
Regards from Norway, Ole
xequte
Posted - Dec 13 2021 : 17:39:52 Hi Ole
This works well for me:
// Convert a multi-page PDF file to TIFF
// Ensure iepdf.dll is in the EXE folder
mbmp := TIEMultiBitmap.Create( 'D:\multi.pdf' );
mbmp.Params[0].TIFF_Compression := ioTIFF_LZW;
mbmp.DuplicateCompressionInfo();
mbmp.Write( 'D:\Converted.TIFF' );
mbmp.Free;
ioTIFF_JPEG should be good for color PDF files. It gives better compression than ioTIFF_LZW, without significant degredation.