I am using dompdf for generating PDF files (data comes from database).
$dompdf = new DOMPDF();
$dompdf->load_html($strHtml); // here $strHtml is the containt which I want to write in pdf
$dompdf->set_paper( array(0,0, 12 * 108, 12 * 72), "portrait" ); // 12" x 12"
$dompdf->render();
// The next call will store the entire PDF as a string in $pdf
$pdf = $dompdf->output();
// You can now write $pdf to disk, store it in a database or stream it
// to the client.
$pdfname = 'PDFNAME'
file_put_contents('pdf/'.$pdfname.'.pdf', $pdf);
Right now in $strHtml variable there are many pages for PDF, and all pages generated with page type portait.
Now I want to create all pages with different type for example page 1 with portrait, 2nd page with landscape, 3 with landscape etc.
How can I solve this problem?