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
 How to extract certain parts from a PDF?
 New Topic  Reply to Topic
Author Previous Topic Topic Next Topic  

yogiyang

India
727 Posts

Posted - Dec 02 2021 :  01:37:25  Show Profile  Reply
Hello,

I have a need where in I have to extract certain parts from a PDF and provide them as editable content in ImageEn.

Please download sample PDF file from here: https://mega.nz/file/61QAUDbD#A4vWJNxSVq8u8BvqJG5VjIhdU0_HyOTXfmyWY1lNgEQ

Let me try to explain as I want to achieve.
If you will open the PDF file you will notice that it has some text and photo(s). From this I want to extract the Photo of the person, Name (RENU GULATI),YOB (1959), Registration # (P5954HKBY) and the QR Code.

The location/position of the items I have mentioned here changes over a period of time.

Can we do this in the latest version of IE?

If Yes then please guide as to how.

Yogi Yang

Ken Randall

33 Posts

Posted - Dec 12 2021 :  04:12:35  Show Profile  Reply
I would also like to be able to extract tables. Also do not know the location, size, number of rows, etc.

Ken R
Go to Top of Page

xequte

38611 Posts

Posted - Dec 12 2021 :  19:12:53  Show Profile  Reply
Hi

There is not an easy way to do this at present. The following may help:

- PdfViewer can return the rect of text on a page using TIEPdfViewerInteraction.GetTextRects (Requires upcoming 10.3.0)
- To get all the text on a page use: https://www.imageen.com/help/TIEPdfViewerInteraction.GetText.html
- If you convert the Pdf to a bitmap (e.g. using https://www.imageen.com/help/TIEPdfViewerInteraction.DrawTo.html), you can use IEVision to get the position of a QR code


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