Do you own a Debenu Quick PDF Library version 7, 8, 9, 10, 11, 12, 13 or iSEDQuickPDF license? Upgrade to Debenu Quick PDF Library 14 today!

Debenu Quick PDF Library - PDF SDK Community Forum Homepage
Forum Home Forum Home > For Users of the Library > I need help - I can help
  New Posts New Posts RSS Feed - How to Extact TEXT from a PDF File
  FAQ FAQ  Forum Search   Register Register  Login Login

How to Extact TEXT from a PDF File

 Post Reply Post Reply
Author
Message
isyscorp View Drop Down
Beginner
Beginner
Avatar

Joined: 30 Aug 12
Location: Philippines
Status: Offline
Points: 19
Post Options Post Options   Thanks (0) Thanks(0)   Quote isyscorp Quote  Post ReplyReply Direct Link To This Post Topic: How to Extact TEXT from a PDF File
    Posted: 08 Sep 12 at 5:03PM
I tried to read the QuickPDF Libray Guidelines, and experimented on some of the samples - but again quite complex for me.

I am trying to extract any TEXT/WORDS from a PDF file and saved it to a MEMO / DBMEMO box. QuickPDF Library had some discussions regarding this matter but I can't make to work using Delphi 7/XE. 

Thanks,
Vid
Back to Top
Ingo View Drop Down
Moderator Group
Moderator Group
Avatar

Joined: 29 Oct 05
Status: Offline
Points: 3530
Post Options Post Options   Thanks (0) Thanks(0)   Quote Ingo Quote  Post ReplyReply Direct Link To This Post Posted: 09 Sep 12 at 1:42PM
Hi Vid!

Where#s the problem?
I think the real textextraction works?
So you've got the textcontent in a string and your
only problem is to show it via a memo-field?
Then this is the syntax in Delphi:
//...
Memo1.Text.Add := your_extracted_text_as_string;
//...
If this isn't your problem then you should post your code here.

Cheers, Ingo

Back to Top
AndrewC View Drop Down
Moderator Group
Moderator Group
Avatar

Joined: 08 Dec 10
Location: Geelong, Aust
Status: Offline
Points: 841
Post Options Post Options   Thanks (0) Thanks(0)   Quote AndrewC Quote  Post ReplyReply Direct Link To This Post Posted: 10 Sep 12 at 8:26AM

QP.LoadFromFile('page.pdf', '');
Memo1.Text.Add := QP.GetPageText(7);

It doesn't get much easier.  This is basic Delphi programming 101.  I recommend getting a good Delphi book and working through it to learn how Delphi code works.  This forum assumes a basic understanding of Delphi.  If you want individual words from the PDF then you will have to start writing some real Pascal code to process the output from QPL before adding the words you your MEMO fields.

If you have code that is not working then you need to post the code rather than saying it doesn't work.
Back to Top
 Post Reply Post Reply
  Share Topic   

Forum Jump Forum Permissions View Drop Down

Forum Software by Web Wiz Forums® version 11.01
Copyright ©2001-2014 Web Wiz Ltd.

Copyright © 2017 Debenu. Debenu Quick PDF Library is a PDF SDK. All rights reserved. AboutContactBlogSupportOnline Store