Hello,
> 
> How do I convert pdf file (Acrobat readable format) to text, 
Convert to text not sure..
Have you looked at http://search.cpan.org and searched for pdf under modules?

Using/getting pdf into your script is easy :

#!/usr/bin/perl

use File::Slurp;
use CGI qw/:standard/;
 
print header("application/pdf");
print read_file("/path/to/my.pdf");

# or 
# $pdf_guts = read_file("/path/to/my.pdf");
# do what you want with pdf guts, like translate them into text or html if possible!
 
If you don't want to output he pdf to the screen 
but want other output ( html ) then do print header();

Of course you can do all kinds of things like check for 
errors modify the pdf using various image modules display 
different pdfs based on input, email the odf as an attchment etc, etc

This is a two for one reply! 
( If any one read the exact sam one about images an hour or so ago. )

DMuey

> or simple read these file types using Perl?  Do I treat these 
> file types as binary or what?
> 
> Any pointers will be appreciated.
> 
> Thank you,
> 
> 
> __________________
> 
> William Ampeh (x3939)
> Federal Reserve Board
> 
> 
> -- 
> To unsubscribe, e-mail: [EMAIL PROTECTED]
> For additional commands, e-mail: [EMAIL PROTECTED]
> 
> 

--
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]

Reply via email to