Connecting Tech Pros Worldwide Help | Site Map

PDF -> TXT

 
LinkBack Thread Tools Search this Thread
  #1  
Old July 17th, 2005, 01:35 AM
websafe
Guest
 
Posts: n/a
Default PDF -> TXT

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



  #2  
Old July 17th, 2005, 01:35 AM
Shawn Wilson
Guest
 
Posts: n/a
Default Re: PDF -> TXT

websafe wrote:[color=blue]
>
> 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 ?[/color]

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
shawn@glassgiant.com
http://www.glassgiant.com
  #3  
Old July 17th, 2005, 03:03 AM
Chinasaur
Guest
 
Posts: n/a
Default Re: PDF -> TXT

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:
[color=blue]
> Date: Thu, 11 Dec 2003 12:14:13 -0400
> From: Shawn Wilson <shawn@glassgiant.com>
> Newsgroups: comp.lang.php
> Subject: Re: PDF -> TXT
>
> websafe wrote:[color=green]
> >
> > 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 ?[/color]
>
> 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
> shawn@glassgiant.com
> http://www.glassgiant.com
>[/color]
 

Bookmarks

Thread Tools Search this Thread
Search this Thread:

Advanced Search

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is Off
HTML code is Off
Trackbacks are On
Pingbacks are On
Refbacks are On

Popular Articles

What is Bytes?

We are a network of experts and professionals in IT and software development that help one another with answers to tough questions and share insights. Get the best answers to your questions from over 220,989 network members.