can any one tell me logic or techniques to convert pdf to word using php.

i need to convert pdf into word document which shoud be embed in web page.

can you suggest me how i can implement that using php

example site
Who is Participating?
Karl Heinz KremerConnect With a Mentor Commented:
Any language will cause you problems, because it's not a trivial task by any means. Do you know and understand the PDF format completely (_ALL_ about 1000 pages of the PDF spec)? Do you also have a solid understanding of the Word format? If you cannot answer both questions with a YES!!!, this is not a task you can or should undertake. If you really need to convert from PDF to Word use a 3rd party toolkit that does the conversion for you, and just add the user interface. One option is - I don't have any first hand experience with that package, but I've used other PDF products from BCL.
Karl Heinz KremerCommented:
You cannot do that with PHP. There are a few applictions available that attempt to do that conversion (e.g. from ABBYY and Nuance). You would have to parse a PDF file and then convert it's parts to objects that can be used in a Word file and then re-create the layout. For anything that is an image, you would have to run OCR to find out if you can extract text, determine the font and font size and recreate that text object. Then you have to decide if you can get rid of the image, or if there is more information in the image than what you just extracted as text... All in all, this is not a trivial task, and PHP is not an environment you want to implement that.
psarun85Author Commented:
if it is not possible in php, then can you tell me that in java or

is it possible by any technologies
Question has a verified solution.

Are you are experiencing a similar issue? Get a personalized answer when you ask a related question.

Have a better answer? Share it in a comment.

All Courses

From novice to tech pro — start learning today.