--- Amit Sharma <[EMAIL PROTECTED]> wrote:
> But in this case...the users are uploading PDF files on to the server.
> Other user post their reviews based on the uploaded file.
> 
> When the reviewing is Finished..A new PDF is created which has the first
> page of the existing uploaded pdf and the second page has the comments and
> reviews posted online.
> 
> Now here my problem begins..how do i read the data from the uploaded pdf
> file and append all the reviews in it.???
> 
> This has left me clueless :(
> 
> Any advice ????
> 
> Thanks for the help.
> 
> Amit

Some people want to "read" PDF documents for the purpose of indexing a site.  
For this purpose,
you would need some tool which can convert a PDF to text.  A good starting 
place is to search for
pdf2txt since it is a natural name applied to this sort of tool.  However, some 
of these would
only work on Windows systems.  Since many servers which run PHP are Linux, you 
should add that to
your search.  

The following page has some Bash shell scripts which seem like they would be a 
starting point if
the proper required applications are present.  It was not clear to me if these 
are just standard
commands being used or if they require something special.

http://comp.eonworks.com/scripts/scripts_by_date.html

On most servers, if you have something like this which can be run from the 
command line (sometimes
executing scripts is banned from your web space) you can use the exec() or 
system() or passthru()
function in PHP to activate the script.

>From your latest description, it appears that you want something which can 
>generate new PDF pages
and append them to the front and/or back of the current PDF and offer the end 
result to the web
user.  This is a complicated approach and I assume you have a compelling reason 
to do it. 
Sometimes people try to get web applications to do the sort of things which are 
only possible in a
desktop graphic user interface environment.  It's like trying to use a 
sportscar to pull a farming
plow.  You should use the right tool for the right job.

I have seen desktop utilities which allow you to split or join PDF documents.  
It also may be
possible to generate your initial PDF and "include" the binary content (perhaps 
the PHP readfile()
function) of the one stored in the filesystem as part of the output stream you 
are generating.  It
would be an interesting experiment but my time is very short for the next 
couple of weeks.  I
would be interested in hearing what you come up with.

Don't forget to indicate your platform, webserver, and versions since these can 
make a difference
to the tools available which would run there.

James
_____


James D. Keeline
http://www.Keeline.com  http://www.Keeline.com/articles
http://Stratemeyer.org  http://www.Keeline.com/TSCollection

http://www.ITeachPHP.com -- Free Computer Classes: Linux, PHP, etc.
Spring Semester January-June 2006.  Two new class topics.


Community email addresses:
  Post message: [email protected]
  Subscribe:    [EMAIL PROTECTED]
  Unsubscribe:  [EMAIL PROTECTED]
  List owner:   [EMAIL PROTECTED]

Shortcut URL to this page:
  http://groups.yahoo.com/group/php-list 
Yahoo! Groups Links

<*> To visit your group on the web, go to:
    http://groups.yahoo.com/group/php-list/

<*> To unsubscribe from this group, send an email to:
    [EMAIL PROTECTED]

<*> Your use of Yahoo! Groups is subject to:
    http://docs.yahoo.com/info/terms/
 



Reply via email to