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
 How to extract certain parts from a PDF?

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
yogiyang Posted - Dec 02 2021 : 01:37:25
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
2   L A T E S T    R E P L I E S    (Newest First)
xequte Posted - Dec 12 2021 : 19:12:53
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
Ken Randall Posted - Dec 12 2021 : 04:12:35
I would also like to be able to extract tables. Also do not know the location, size, number of rows, etc.

Ken R