PHP Classes

File: htmldoc-sample.php

Recommend this page to a friend!
  Classes of Tom Arnold   htmldoc   htmldoc-sample.php   Download  
File: htmldoc-sample.php
Role: Example script
Content type: text/plain
Description: Sample file for htmldoc. Put it in the same dir as the class file
Class: htmldoc
Wrapper class for htmldoc
Author: By
Last change: Just code cleaning
Date: 21 years ago
Size: 452 bytes
 

Contents

Class file image Download
<?

require_once(realpath('./htmldoc.class.php'));

// If this ain't working with your version of php, comment it out and uncomment the lines below it

$pdf_document = new htmldoc("http://www.google.com/","header=./.|footer=.A.|tmargin=50");

// $pdf_document = new htmldoc;
// $pdf_document->html2pdf_doc("http://www.google.com/","header=./.|footer=.A.|tmargin=50");


$pdf_document->generate_pdf();
$pdf_document->download_pdf();

?>