PHP Classes

File: html_to_pdf_test.php

Recommend this page to a friend!
  Classes of Harish Chauhan   HTML to PDF   html_to_pdf_test.php   Download  
File: html_to_pdf_test.php
Role: Example script
Content type: text/plain
Description: Example
Class: HTML to PDF
Convert HTML to PDF using Web services
Author: By
Last change:
Date: 18 years ago
Size: 411 bytes
 

Contents

Class file image Download
<?php
   
   
require('html_to_pdf.inc.php');
   
$htmltopdf = new HTML_TO_PDF();
   
   
//$htmltopdf->useURL(HKC_USE_EASYW); // default HKC_USE_ABC other HKC_USE_EASYW
   
$htmltopdf->saveFile("abc.pdf");
   
$htmltopdf->downloadFile("abc.pdf");
   
//$result = $htmltopdf->convertHTML("<b>MY TEST</b>");
   
$result = $htmltopdf->convertURL("http://test.ultraglobal.info/govazo/");
    if(
$result==false)
        echo
$htmltopdf->error();
?>