TCPDF: mixed orientation in one pdf

Is it possible to have a mixed orientation in one PDF. For instance. some pages of a portrait and some landscapes? Or can I rotate the contents? I see that you can establish that the general orientation can be set in the constructor, but nothing is visible.

MS

+4
source share
2 answers

Actually pretty easy all you have to do is when you add the page:

// protrait $tcpdf->addPage( 'P', 'LETTER' ); // landscape $tcpdf->addPage( 'L', 'LETTER' ); 
+7
source

You can use the following code to rotate the content.

 $pdf->StartTransform(); $pdf->Rotate(-90); $pdf->Cell(0,0,'This is a sample data',1,1,'L',0,''); $pdf->StopTransform(); 
0
source

All Articles