Print Page | Close Window

How to Extact TEXT from a PDF File

Printed From: Debenu Quick PDF Library - PDF SDK Community Forum
Category: For Users of the Library
Forum Name: I need help - I can help
Forum Description: Problems and solutions while programming with the Debenu Quick PDF Library and Debenu PDF Viewer SDK
URL: http://www.quickpdf.org/forum/forum_posts.asp?TID=2400
Printed Date: 06 Jul 25 at 12:15PM
Software Version: Web Wiz Forums 11.01 - http://www.webwizforums.com


Topic: How to Extact TEXT from a PDF File
Posted By: isyscorp
Subject: How to Extact TEXT from a PDF File
Date 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



Replies:
Posted By: Ingo
Date 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



Posted By: AndrewC
Date 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.



Print Page | Close Window

Forum Software by Web Wiz Forums® version 11.01 - http://www.webwizforums.com
Copyright ©2001-2014 Web Wiz Ltd. - http://www.webwiz.co.uk