Connecting Tech Pros Worldwide Help | Site Map

PDF -> TXT

  #1  
Old July 17th, 2005, 02:35 AM
websafe
Guest
 
Posts: 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


  #2  
Old July 17th, 2005, 02:35 AM
Shawn Wilson
Guest
 
Posts: n/a

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, 04:03 AM
Chinasaur
Guest
 
Posts: n/a

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]
Closed Thread


Similar Threads
Thread Thread Starter Forum Replies Last Post
Exporting Access to Excel or PDF Dlangdaman answers 0 July 3rd, 2007 07:47 PM
Automation Server can''t create object While copiying A PDF file in Textarea nehacredo answers 1 May 18th, 2007 12:43 PM
pdf to text tubby answers 8 January 30th, 2007 05:35 AM
HOWTO: Automate Printing of Access Reports to PDF files cyranoVR@gmail.com answers 16 November 13th, 2005 08:44 AM
Looking for way to automate PDF index (or menu) generation Mike answers 2 July 17th, 2005 09:20 AM