ozzy has asked for the wisdom of the Perl Monks concerning the following question:

I would like to change the Rotation of a new page.
Does the 'Rotate' param have to be defined in the root page or the new pages created from it ?
I have tried to specify the parameter but perl still complains about how I specify the parameter.

my $root = $pdf->new_page('MediaBox' => [ 0, 0, 612, 792 ], 'Rotate' +=> 90 );

# Add a page which inherits its attributes from $root my $page = $pdf->new_page( 'Rotate' => 90 );

Thx.

Replies are listed 'Best First'.
Re: PDF::Create
by rsiedl (Friar) on Oct 14, 2004 at 14:08 UTC
    Hi Ozzy,

    Were you able to get this to work?
    If so, could you let me know.

    Cheers,
    Reagen.

    Update: Just for anyone else in the same boat, i wasnt able to get this to work so instead created a new page layout which had the dims of a lanscaped page.
      I know this is an old posting, but I was having the same problem. The PDF::CREATE docs are not very clear how to do this. Anyone out there have a suggestion how to set up a document in landscape, or have the landscape dimensions?
        I am in the same boat, I want to push student names to a script that pass a course. yourscript.cgi?coursename=Marketing&studentname=Jim+Smith&completiondate=Aug-20-08 But, I would want to have an existing template on the server that gets used and the fields in the PDF get populated with the required information? I then want to generate a PDF that can be either emailed to them or downloaded to them. Not sure which module would do it? Let me know, Kevin Brake