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
 Deskew PDF
 New Topic  Reply to Topic
Author Previous Topic Topic Next Topic  

Homer

USA
57 Posts

Posted - Jan 10 2022 :  04:25:53  Show Profile  Reply
The application in which I use ImageEn is a document manager, think electronic filing cabinet. It saves, organizes prints, emails exports, displays and otherwise manages JPG, PNG, TIFF, BMP, PDF, Doc, and Docx files and allows minor editing of graphic images. I created the app years ago when ImageEn 2.1 didnít support PDF files. Back then I used an early release of WPViewPDF to display PDFs. After a while I switched to using TWebBrowser until new releases of Windows made that troublesome. Then I switched to Adobeís AcroPDF.DLL. That has been rock solid for years even though I couldnít scan PDFs directly into the app.

IE 10.2 allowes me to use ImageEnMview to scan and save PDFs. That is really great, but I still use Adobe's dll because thatís the way it has been done for years, and my users are familiar with the UI.

I just added deskewing for JPG and PNG as a new feature, and would like to do it for PDFs. If I understand correctly, ImageEn canít natively load PDFs. Even if it can, each page of a PDF can have a different amount of skew so I think they must somehow be handled individually. For deskewing, angle computation takes time. In a multi-page document, doing one page at a time could take ages, but could still be a nice feature to add. Anyway, perhaps someone could suggest a strategy. Looking for a methodology rather than code, although code is always helpfull.


xequte

6666 Posts

Posted - Jan 10 2022 :  16:35:25  Show Profile  Reply
Hi Homer

I'm not sure ImageEn would be the best solution for that, because:
- It would only work with image only PDF documents
- You would need to load the PDF using PDFium, deskew each page, and then save using native PDF saving. There is potential for loss of quality in that process

Nigel
Xequte Software
www.imageen.com
Go to Top of Page

Homer

USA
57 Posts

Posted - Jan 10 2022 :  16:38:59  Show Profile  Reply
Thank you, Nigel. I thought it would be something like that, but I didn't think of PDFium. That's good to know. I need to get this update out to my customers, so I'll play with that after the crunch is over. Thanks again.
Go to Top of Page

xequte

6666 Posts

Posted - Jan 11 2022 :  19:47:47  Show Profile  Reply
No worries. I do mean the PDFium that is available in ImageEn:

www.imageen.com/download/


Nigel
Xequte Software
www.imageen.com
Go to Top of Page

Homer

USA
57 Posts

Posted - Jan 13 2022 :  11:01:52  Show Profile  Reply
If I understand correctly, PDFium will not work with D2007. That's what I'm stuck with. Any way around this?
Go to Top of Page

xequte

6666 Posts

Posted - Jan 13 2022 :  19:16:25  Show Profile  Reply
Unfortunately, no. The library makes use of many features that were not available in that version.

Nigel
Xequte Software
www.imageen.com
Go to Top of Page
  Previous Topic Topic Next Topic  
 New Topic  Reply to Topic
Jump To: