marcelo
marcelo

Reputation: 81

How to get several single pdf pages in a single mPDF document?

I´m running a pg query which returns a lot of records that i use to create individual 'Response Sheets'. But i want these individual Sheets as a unique pdf Document, because i'll need to print these Sheets, so is easier to print one big single Mpdf Document that a lot of small single pdfs Sheets. i didn't find anywhere how to do this, anyone can help me?

Upvotes: 3

Views: 2433

Answers (1)

Andy  Gee
Andy Gee

Reputation: 3335

This will make a 2 page PDF

<?php

$mpdf=new mPDF();
$mpdf->WriteHTML('Your Introduction');
$mpdf->AddPage();
$mpdf->WriteHTML('Your Book text');

?>

Upvotes: 4

Related Questions