in reply to pdf::api2 scale images?

How are you initializing your $page variable?, isn't it supposed to be $page = $pdf->page where $pdf is the PDF::API object that was created via the new() method?

"I have a small problem with understanding CPAN errors "
It's worrisome that strictures don't seem to be switched on..
use strict; use warnings;
and heed the messages generated thereof.

You may also need to consult Tk::Photo...


Excellence is an Endeavor of Persistence. A Year-Old Monk :D .

Replies are listed 'Best First'.
Re^2: pdf::api2 scale images?
by trevelyn (Novice) on Jun 21, 2010 at 14:07 UTC
    oh, I'm sorry I failed to put a "..." at the top of the code. This is just a piece of code I dropped off the top of my head. I do use warnings in all of my code, and I had a problem using strict with some Tk modules, so I took it out. I didn't realize that PDF::API2::Content came with PDF::API2, or I would have checked the CPAN link above. I did know it existed, I just thought that was yet another dependency my friends would need to install and skipped it. So far the PDF generation is smooth and they look great! Now with the $scale and PDF::API2::Content $gfx()->image $img $x $y $scale -- I'm sure things will be much much nicer! :) Thanks guys!