Rotate is odd. What the docs aren't telling you is that you first need to do StartTransform , then do Rotate , and then do StopTransform . You can make a call to StartTransform after you somehow set the X / Y position (for example, I use SetXY for the initial position of the page, and then you can call StartTransform ). So try to do:
$this->pdfinvoice->StartTransform(); $this->pdfinvoice->Rotate(-90);
then add your content then call
$this->pdfinvoice->StopTransform();
when you are done. See how it works for you.
Femi
source share