http://www.perlmonks.org?node_id=1006257


in reply to How to rotate images in PDF:API2 module?

Also, according to PDF::API2::Content it looks like $photo1->rotate(90) should work.

(I've not really used PDF::API2 much, and when I have it's mostly been via PDF::API2::Simple, so I can't vouch for the reliability of its documentation. But usually when documentation says you can do something, you probably can.)

perl -E'sub Monkey::do{say$_,for@_,do{($monkey=[caller(0)]->[3])=~s{::}{ }and$monkey}}"Monkey say"->Monkey::do'