Convert PDF to HTML
Is it possible for PHP to be able to convert a pdf file into html?
i think it is possible , i can share with you the image converter i am currently using. it can do pdf to html conversion. i am not an expert in this field so thew only way i know is to employ an image converter. i have looked for solutions in many forums but i can't find a way which can do it by myself. so if you haven't found a good way to do that, you can have a try.
Yes this is possible, and will not be fun to do in php.
But here are the concepts of this:
Eventually, you can reduce your solution to be more efficient. But for now to understand the process, do this:
userUploadFile => uncompress pdf and output to temporary folder(in .txt) (also validate the file) => parse the file => output in the form you want AND delete temporary file
I want to be able to convert a PDF file to an HTML file via PHP, but am running into some trouble.
I found a basic way to do this using Saaspose, which lets you convert PDF's to HTML files. There are some problems with this, however, such as the use of SVGs, images, positioning, fonts, etc.
All I would need is the ability to grab the text from the PHP file and any images associated with it, and then display it in a linear format as opposed to it being formatted with absolute positioning.
well, personally speaking, PHP is possible for you to convert a pdf file to a html file, yet you could also try other tools by google search!
Originally Posted by iahne
Users Browsing this Thread
There are currently 1 users browsing this thread. (0 members and 1 guests)