Login   Register  
PHP Classes
elePHPant
Icontem

File: htmldoc-sample.php

Recommend this page to a friend!
Stumble It! Stumble It! Bookmark in del.icio.us Bookmark in del.icio.us
  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: 2002-10-11 11:30
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();

?>