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
 Convert a multi-page PDF into a multi page TIF

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
jeffp Posted - Nov 07 2024 : 13:42:13
I can load a multi page PDF into the TIEPdfViewer. Once loaded how can I then save it out to a multi-page TIF file?

TImageEnView.IO.SaveToFile only seems to save out the first page to a TIF file.


jp
5   L A T E S T    R E P L I E S    (Newest First)
xequte Posted - Nov 13 2024 : 13:46:12
Hi

It would be the same method as above:

// Change the compression method for a TIFF file
MBitmap := TIEMultiBitmap.Create();
MBitmap.LoadFromFile( 'C:\MyImage.pdf' );
MBitmap.SaveToFile( 'C:\OutImage.png' );
MBitmap.Free;


To improve the quality of the PDF (make the PDF files larger), set the PdfViewerDefaults.Dpi:

http://www.imageen.com/help/TIEGlobalSettings.PdfViewerDefaults.html

You will also need to include iepdf32.dll

Nigel
Xequte Software
www.imageen.com
HeartWare Posted - Nov 12 2024 : 04:46:43
Is there an easy to way to convert a PDF file to a series of PNG files in full resolution using only ImageEn ?
xequte Posted - Nov 07 2024 : 21:20:07
Hi Jeff

You can do it as follows:
// Change the compression method for a TIFF file
MBitmap := TIEMultiBitmap.Create();
MBitmap.LoadFromFile( 'C:\MyImage.pdf' );
MBitmap.Params[ 0 ].TIFF_Compression := ioTIFF_LZW;
MBitmap.DuplicateCompressionInfo();
MBitmap.SaveToFile( 'C:\OutImage.tiff' );
MBitmap.Free;

http://www.imageen.com/help/TIEMultiBitmap.DuplicateCompressionInfo.html

You don't need to actively "convert" the document, it saves in whatever format you specify, e.g. here because you are saving with the extension .tiff, it saves as a TIFF file.



Nigel
Xequte Software
www.imageen.com
jeffp Posted - Nov 07 2024 : 17:09:26
Using TIEMultiBitmap is there a way to set the TIF Compression I want, which is LZW.

And is the the best way to convert one file type to another? For example, will it convert TIF to PDF?
jp
xequte Posted - Nov 07 2024 : 16:20:14
Hi Jeff

Assuming you are dealing only with typical sized PDFs then the easiest way is to use a TIEMultiBitmap or TImageEnMView:

// Convert a PDF to a multi-page TIFF
mbmp := TIEMultiBitmap.Create();
mbmp.LoadFromFile( 'D:\input.pdf' );
mbmp.SaveToFile( 'D:\output.tiff' );
mbmp.Free;


If the PDF files are huge (e.g. 100+ pages at high resolution), then you would be better to build up the TIFF file a page at a time, e.g. using TIETIFFHandler:

http://www.imageen.com/help/TIETIFFHandler.html

Nigel
Xequte Software
www.imageen.com