tcpdf

tcpdf rotate confusion

I spent the last few days fighting with dynamic generation of pdf files using the tcpdf php library.

tcpdf is not well documented, so much of the process of getting it to work is trial and error (and error and error...)

The one thing that really kicked my ass was trying to print an item rotated 90 degrees, and then getting another rotated item to print where I wanted it. Finally after reading the documentation a dozen times, I saw that my answer was there but is not all that clear.

If you want to have control over more than one rotated item, you have to add a line to start and end each rotation/transformation