Search
 
SCRIPT & CODE EXAMPLE
 
CODE EXAMPLE FOR PHP

php html to pdf

Try php mpdf

  
CMD :    composer require mpdf/mpdf
  
  // Require composer autoload
require_once __DIR__ . '/vendor/autoload.php';
// Create an instance of the class:
$mpdf = new MpdfMpdf();

// Write some HTML code:
$mpdf->WriteHTML('Hello World');

// Output a PDF file directly to the browser
$mpdf->Output();
Source by github.com #
 
PREVIOUS NEXT
Tagged: #php #html #pdf
ADD COMMENT
Topic
Name
3+5 =