By using this site, you agree to our updated Privacy Policy and our Terms of Use. Manage your Cookies Settings.
424,988 Members | 1,367 Online
Bytes IT Community
+ Ask a Question
Need help? Post your question and get tips & solutions from a community of 424,988 IT Pros & Developers. It's quick & easy.

PDF -> TXT

P: n/a
Hello,

is there a possibility to get the text
stored in a pdf file? I have some pdf files
and i would like to convert them to txt files.
In Adobre Acrobat Reader i can select the text,
but is thera a way to do this using PHP ?

best regards
websafe
Jul 17 '05 #1
Share this Question
Share on Google+
2 Replies


P: n/a
websafe wrote:

Hello,

is there a possibility to get the text
stored in a pdf file? I have some pdf files
and i would like to convert them to txt files.
In Adobre Acrobat Reader i can select the text,
but is thera a way to do this using PHP ?


I've never done anything with PDFs and PHP, but if you read the comments on this
page:

http://ca3.php.net/manual/en/ref.pdf.php

you'll see one by a guy who tells you how to search for and highlight text in a
PDF with PHP. I assume if you can search text, you can read it. But, like I
said, I've never tried it.

Regards,
Shawn
--
Shawn Wilson
sh***@glassgiant.com
http://www.glassgiant.com
Jul 17 '05 #2

P: n/a
Guess this is a little late, but there are also some pretty decent command
line programs you can pipe PDFs through. I think Ghostscripts ps2ascii is
the most reliable, although not the most powerful.

Dec 11, Shawn Wilson said:
Date: Thu, 11 Dec 2003 12:14:13 -0400
From: Shawn Wilson <sh***@glassgiant.com>
Newsgroups: comp.lang.php
Subject: Re: PDF -> TXT

websafe wrote:

Hello,

is there a possibility to get the text
stored in a pdf file? I have some pdf files
and i would like to convert them to txt files.
In Adobre Acrobat Reader i can select the text,
but is thera a way to do this using PHP ?


I've never done anything with PDFs and PHP, but if you read the comments on this
page:

http://ca3.php.net/manual/en/ref.pdf.php

you'll see one by a guy who tells you how to search for and highlight text in a
PDF with PHP. I assume if you can search text, you can read it. But, like I
said, I've never tried it.

Regards,
Shawn
--
Shawn Wilson
sh***@glassgiant.com
http://www.glassgiant.com

Jul 17 '05 #3

This discussion thread is closed

Replies have been disabled for this discussion.