views:

39

answers:

1

Is it possible to print the contents of a pdf using php ,javascript or jquery

+1  A: 

No for the JavaScript/jQuery piece, on the PHP side if you're using a library to read the files then that's an option, for your PDF options in PHP check out this question.

If you just want to display the content to the user though, just returning the PDF itself and letting their client-side viewer of choice do the work would be my first option.

Nick Craver
@Nick:the pdf is on the serverside and ijust want to just display the contents of it using php,python or any other utility
Rajeev
@Rajeev - In that case just return the file to the client, for example: http://www.michiknows.com/2007/03/28/php-nuisance-how-to-stream-pdf-files/
Nick Craver