Extracting notes from uploaded PDF file?

PHP programming forum. Ask questions or help people concerning PHP code. Don't understand a function? Need help implementing a class? Don't understand a class? Here is where to ask. Remember to do your homework!

Moderator: General Moderators

Post Reply
latrixie
Forum Newbie
Posts: 2
Joined: Thu Jan 24, 2008 2:54 am

Extracting notes from uploaded PDF file?

Post 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
jackcobain
Forum Newbie
Posts: 2
Joined: Fri Jan 25, 2008 3:07 pm

Re: Extracting notes from uploaded PDF file?

Post 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);
?>
latrixie
Forum Newbie
Posts: 2
Joined: Thu Jan 24, 2008 2:54 am

Re: Extracting notes from uploaded PDF file?

Post by latrixie »

Thanks! I'll have a got at it and see if I can get it to work.


.c
Post Reply