Generating PDF from HTML is not a trivial task. There are several sites that can convert existing HTML pages to PDF documents, but these can only be used if the pages are publicly accessible.
This class provides a solution to work around that difficulty. It submits request to PDF to HTML conversion sites, passing as parameter a URL of the current script that serves HTML document, that could even be private.
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.