Search
 
SCRIPT & CODE EXAMPLE
 
CODE EXAMPLE FOR PHP

HTML to PDF in PHP

<?php require 'vendor/autoload.php';
use SpipuHtml2PdfHtml2Pdf;
$html2pdf = new Html2Pdf();
ob_start();
include('data.php');
$html_code = ob_get_clean();
$html2pdf->writeHTML($html_code);
$html2pdf->output();
?>
Source by technosmarter.com #
 
PREVIOUS NEXT
Tagged: #HTML #PDF #PHP
ADD COMMENT
Topic
Name
3+2 =