PHP Classes

What is the best PHP pdf to html class?: Converting PDF files to a HTML file

Recommend this page to a friend!
  All requests RSS feed  >  What is the best PHP pdf to html class?  >  Request new recommendation  >  A request is featured when there is no good recommended package on the site when it is posted. Featured requests  >  No recommendations No recommendations  

What is the best PHP pdf to html class?

A request is featured when there is no good recommended package on the site when it is posted. Edit

Picture of Khan Asif Ahmed by Khan Asif Ahmed - 8 years ago (2016-02-13)

Converting PDF files to a HTML file

This request is clear and relevant.
This request is not clear or is not relevant.

+7

I used software for converting from PDF to XML but those has marks and so many PDF files are not converted into XML files, I got so many errors.

So I request to all please if you have any idea, any code or anything which help me convert my PDF files into XML for my Web site.

It is better if it is possible to do PDF batch converting into xml files.

  • 1 Clarification request
  • 1. Picture of Manuel Lemos by Manuel Lemos - 8 years ago (2016-02-14) Reply

    Well there are solutions to extract text from PDF but that is just plain text.

    There are many types of XML formats. What XML format do you expect to extract from a PDF file?

    • 2. Picture of Khan Asif Ahmed by Khan Asif Ahmed - 8 years ago (2016-02-16) in reply to comment 1 by Manuel Lemos Comment

      Plain Text, but it is better to get with images

    • 3. Picture of Manuel Lemos by Manuel Lemos - 8 years ago (2016-02-16) in reply to comment 2 by Khan Asif Ahmed Comment

      So you want to retrieve some form of formatted text, maybe HTML, from a PDF document that includes images?

    • 4. Picture of Khan Asif Ahmed by Khan Asif Ahmed - 8 years ago (2016-02-16) in reply to comment 3 by Manuel Lemos Comment

      actually i wanted to published a paper journal, and files are downloaded for study to students in different file formats like PDF, palin XML, HTML etc.

    • 5. Picture of Khan Asif Ahmed by Khan Asif Ahmed - 8 years ago (2016-02-16) in reply to comment 4 by Khan Asif Ahmed Comment

      for that what i m doing rite now, converting files from word document to pdf, by pdf professional and same file converted into xml file or web page, it takes a lots of time and converting process take lots of time bcoz one by one file conversion takes time

    • 6. Picture of Manuel Lemos by Manuel Lemos - 8 years ago (2016-02-16) in reply to comment 5 by Khan Asif Ahmed Comment

      Well the matter is that XML is not just a single format, it can be many different formats. Plain XML means nothing. XHTML is XML but there are other XML formats. What XML format do you want?

    • 7. Picture of Khan Asif Ahmed by Khan Asif Ahmed - 8 years ago (2016-02-16) in reply to comment 6 by Manuel Lemos Comment

      Plain XML means nothing. XHTML

Ask clarification

3 Recommendations

PHP PDF to HTML: Convert PDF to HTML using Poppler

This class can convert PDF to HTML using Poppler program.

It can take the path of the Poppler program tools and execute several operations to extract information from PDF documents.

Currently the class can convert whole PDF documents or individual pages to HTML, get the document information, return the page count, etc..

Several parameters can be configured like the the preferred format of the pictures inside the document, zoom scale, whether to use images or CSS inline within the HTML or as external files, etc..
This recommendation solves the problem.
This recommendation does not solve the problem.

+1

Picture of Anton N Nikolaev by Anton N Nikolaev package author package author Reputation 215 - 8 years ago (2016-12-02) Comment

I like it!


HTML to PDF: Convert HTML to PDF using Web services

This class can be used to convert an HTML document or Web page using the ABCPDF or EasySW Web services.

It can communicate with these services to tell to convert a given URL to PDF. It may also convert a local HTML file by serving it as a remote page passing it as an argument of the current script URL.

The converted PDF document may be stored as a local file or served for download.
This recommendation solves the problem.
This recommendation does not solve the problem.

+1

Picture of Haseeb Ahmad Basil by Haseeb Ahmad Basil Reputation 505 - 8 years ago (2016-02-18) Comment

Convert HTML to PDF using Web services

  • 1 Comment
  • 1. Picture of Dave Smith by Dave Smith - 8 years ago (2016-02-19) Reply

    I just checked both web services used by the class, and neither of them can be found. Looking at the support requests, they have not been around for many years.


Convert HTML to PDF PHP Library: Convert HTML to PDF using pdflayer API

This class can convert HTML to PDF using pdflayer API.

It can send HTTP requests to the pdflayer API Web server to convert a given HTML document to PDF. The HTML may be passed literally or as the URL of a given page to convert.

The class retrieves the converted HTML document and displays the PDF document as the current request output or serve it for download.

The class can pass conversion options like:

- Standard and custom page sizes and orientation
- Viewport page sizing and zooming
- Customized page headers and footers
- Margins
- Stamps and watermarks
- Encryption
- Owner and user password protection
- PDF file permissions to save, print, etc..
- PDF Meta data
This recommendation solves the problem.
This recommendation does not solve the problem.

+2

Picture of Manuel Lemos by Manuel Lemos Reputation 26695 - 8 years ago (2016-02-16) Comment

There is a new class that was published recently that can does that using a Web service. The service is free up to 100 request per month, so it should work well for you to try and see if it works for your purposes.


Recommend package
: 
: