Page 1 of 1

Extracting notes from uploaded PDF file?

Posted: Thu Jan 24, 2008 2:58 am
by latrixie
Hi,

I'm working on a personal project in which I would like to upload PDF files to a server (works fine) as well as storing information about these in a database. What I am most interested in is to be able to extract and store the notes that I've written in my PDF-files. As you can imagine the end result will be something of a bibliography site with my notes as complementary info.

Any ideas on how to extract the notes info using PHP are more than welcome.

Thanks a lot in advance!

.c

Re: Extracting notes from uploaded PDF file?

Posted: Fri Jan 25, 2008 3:20 pm
by jackcobain
Hi,

so you have uploaded PDF file to a server now you want to read the pdf files and extract the contents of the pdf file right...!

here is the code to extract the contents from pdf file in php... :D
<?php
$filelocation = "your file location";
$fp = fopen($filelocation, 'rb');
$pdf_buffer = fread($fp, $filesize);
fclose($fp);
?>

Re: Extracting notes from uploaded PDF file?

Posted: Fri Jan 25, 2008 4:30 pm
by latrixie
Thanks! I'll have a got at it and see if I can get it to work.


.c