|
Posted by atulkapoor on 10/15/07 13:08
Well You do have a option of reading PDF files from PHP
Firstly you will need PDFlib to be install written by Thomas Merz.
then using statement below:
<?php
$pdf = PDF_new();
PDF_open_file($pdf);
you can read the contents of the PDF file
"Where $var represents the variable to store the PDF object reference
(to be used in the next function in place of <pdf object>) and
[filename] represents an optional parameter specifying a already
existing PDF file to open. If no filename is specified, then a new PDF
document is created."
for more reference please visit:
http://www.zend.com/zend/spotlight/creatingpdfmay1.php
On Sep 19, 11:48 pm, "Shelly" <sheldonlg.n...@asap-consult.com> wrote:
> Any suggestions?
>
> "Shelly" <sheldonlg.n...@asap-consult.com> wrote in message
>
> news:13f2f8uqm3eck19@corp.supernews.com...>I had to do my first investigation regarding PDF files. Surprisingly, I
> >found that the only functions in PHP were for creating PDF files.
>
> > The potential customer receives order forms from the corporate
> > headquarters and they are PDF forms. What we want to do is to extract
> > information from these forms and process the data into a database. To do
> > this we need to read certain set fields. Nowhere did I find a function to
> > be able to read PDF files, let alone extract information from them.
>
> > My thoughts, in the absence of this function, would be if there were a way
> > to open the file, strip the formatting, and then work on the text stream.
> > The key unknown for me in this is how to strip the formatting.
>
> > So, do I hear any suggestions for either?:
> > (1) How to read predetermined field entries from a PDF file or
> > (2) How to convert a PDF into an unformatted text stream
>
> > Shelly
Navigation:
[Reply to this message]
|