regarding pdf2text
Page 1 of 1
regarding pdf2text
#2
Posted 24 October 2008 - 12:05 AM
I came across this in an ASP.NET project and had to resort to buying ABCpdf - as far as I can remember it only supported ASP.NET, ASP and VB, but I'm sure there are simillar packages for PHP.
Worst case scenario, you could handle the PDF to text in ASP / ASP.NET, store to the database and pull it from PHP.
As far as just using bog standard PHP to get the text from a PDF - I've never heard of it being done
sorry.
Worst case scenario, you could handle the PDF to text in ASP / ASP.NET, store to the database and pull it from PHP.
As far as just using bog standard PHP to get the text from a PDF - I've never heard of it being done
#3
Posted 24 October 2008 - 11:01 AM
nelgo26, on 24 Oct, 2008 - 12:17 AM, said:
i want save pdf content into mysql database.so pls help me how to convert pdf into text file by php coding.then only i can read that text file after that i need to save that text file into db.
You could just save the PDF as binary data into the DB, the only thing is anyone trying to access it would have to have Adobe Reader.
Unless you are talkign about using that PDF to populate different tables of that DB based on its content.. well I don't think its possible unless you wanna display it with HTML though google and then parse it from there.
#4
Posted 24 October 2008 - 01:08 PM
If you really need to convert a PDF to plain text, the easiest way is just shell out to an external command-line utility to do the heavy lifting. For example, if you're running in a Linux environment, you could install pdftotext on the server and just call it from your script and read the output file:
$command = "/usr/bin/pdftotext $pdf_file $text_file"); system($command); $plain_text = file_get_contents($text_file);Of course, results will vary with the utility you use and the content of your PDF files.
Page 1 of 1

Start a new topic
Add Reply




MultiQuote

| 


