PDFNet::Initialize();
HTML2PDF::SetModulePath(dirname(__FILE__).'/../vendors/pdfnet');
$doc = new PDFDoc();
$converter = new HTML2PDF();
$html = "<html><body><h1>Heading</h1><p>Paragraph.</p></body></html>";
// Add html data
$converter->InsertFromHtmlString( $html );
// Note, InsertFromHtmlString can be mixed with the other Insert methods.
$converter->Convert( $doc );
$this->log( 'REPORTS :: Convert - ' . $converter->GetHTTPErrorCode() , LOG_DEBUG );
$doc->Save($output_path.'/'.$filename, SDFDoc::e_linearized);
$doc->Close();
--
You received this message because you are subscribed to the "PDFTron PDFNet SDK" group (http://www.pdftron.com/pdfnet/forum.html).
---
You received this message because you are subscribed to the Google Groups "PDFTron PDFNet SDK" group.
To unsubscribe from this group and stop receiving emails from it, send an email to pdfnet-sdk+...@googlegroups.com.
To post to this group, send email to pdfne...@googlegroups.com.
For more options, visit https://groups.google.com/groups/opt_out.