Author |
Topic |
|
Homer
USA
70 Posts |
Posted - Jan 10 2022 : 04:25:53
|
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
38611 Posts |
Posted - Jan 10 2022 : 16:35:25
|
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
|
|
|
Homer
USA
70 Posts |
Posted - Jan 10 2022 : 16:38:59
|
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. |
|
|
xequte
38611 Posts |
|
Homer
USA
70 Posts |
Posted - Jan 13 2022 : 11:01:52
|
If I understand correctly, PDFium will not work with D2007. That's what I'm stuck with. Any way around this? |
|
|
xequte
38611 Posts |
Posted - Jan 13 2022 : 19:16:25
|
Unfortunately, no. The library makes use of many features that were not available in that version.
Nigel Xequte Software www.imageen.com
|
|
|
|
Topic |
|
|
|