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
 PDF pages to multiple TIF files.

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
GA334 Posted - Feb 09 2025 : 13:38:51
Hi All -

I have a PDF with ~5k pages.
What I need to do is load the PDF and search each page's data, (for creating a filename) and then copy the page out to a tiff file.
There will be ~ 5k TIF files when done.

I was thinking of using ImageEnView.PDfViewer but I can't figure out how to save a page to a TIF file...

Seemed so easy but no joy here.

Any suggestions?

I hope its not too obvious... :)

Thanks!
GA
3   L A T E S T    R E P L I E S    (Newest First)
xequte Posted - Feb 10 2025 : 16:57:57
Hi

What are your values for JPEG Quality:

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

And PDF DPI?

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

Also, is the PDF just black and white? If so one of the monochrome compression methods may be better.


Nigel
Xequte Software
www.imageen.com
GA334 Posted - Feb 10 2025 : 05:47:08
Well that was simple:)
I was certain I tried that and it saved all pages of the pdf <!?>
Thank you.

However when I save in TIFF format and use the following :

    ImgEn.IO.Params.TIFF_Compression := ioTIFF_JPEG ;
    ImgEn.IO.SaveToFileTIFF(IntToStr(X1)+'.tif');


the output is too blurry for reading the fine print on the page.
(The PDF contains forms with pretty small type)

Previously I have used Universal Document Converter Print-Driver to 'print' to a tiff file and the output is crisp and filesize for each page is only ~ 42k.
Using ioTIFF_LZW the output size is 250k and ioTIFF_JPEG is 144k

Any suggestions?

Thanks again!
GA
xequte Posted - Feb 09 2025 : 18:03:24
Hi

You can do it as follows:

// Save all pages of PDF to Jpeg
ImageEnView1.PdfViewer.Enabled := True;
ImageEnView1.IO.LoadFromFile( filename );
for i := 0 to ImageEnView1.PdfViewer.PageCount - 1 do
begin
  ImageEnView1.PdfViewer.PageIndex := i;
  ImageEnView1.IO.SaveToFile( 'D:\' + ExtractFilename( ChangeFileExt( filename, '_' + IntToStr( i + 1 ) + '.jpg' )));
end;


Nigel
Xequte Software
www.imageen.com