Problems using Module PDF::Create

Discussion in 'Perl Misc' started by kielhd, Feb 16, 2004.

  1. kielhd

    kielhd Guest

    Hi all,
    the module 'PDF::Create' works fine except the 'Rotate' Option.

    I get the following error:
    Can't use string ("90") as an ARRAY ref while "strict refs" in use at
    C:/Perl/site/lib/PDF/Create.pm line 184, <GEN26> line 1.

    when using the following code:
    ....
    my $root = $pdf->new_page('MediaBox' => [ 0, 0, 612, 792 ],
    'Rotate' => 90);
    ....

    Any ideas ?

    Best regards, Henning
    kielhd, Feb 16, 2004
    #1
    1. Advertising

  2. kielhd wrote:
    >
    > Hi all,
    > the module 'PDF::Create' works fine except the 'Rotate' Option.
    >
    > I get the following error:
    > Can't use string ("90") as an ARRAY ref while "strict refs" in use at
    > C:/Perl/site/lib/PDF/Create.pm line 184, <GEN26> line 1.
    >
    > when using the following code:
    > ...
    > my $root = $pdf->new_page('MediaBox' => [ 0, 0, 612, 792 ],
    > 'Rotate' => 90);


    Just a quick idea:

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

    --
    Josef Möllers (Pinguinpfleger bei FSC)
    If failure had no penalty success would not be a prize
    -- T. Pratchett
    Josef Möllers, Feb 16, 2004
    #2
    1. Advertising

Want to reply to this thread or ask your own question?

It takes just 2 minutes to sign up (and it's free!). Just click the sign up button to choose a username and then you can ask your own questions on the forum.
Similar Threads
  1. vasudevram
    Replies:
    0
    Views:
    531
    vasudevram
    Jul 22, 2006
  2. Ricardo Pog
    Replies:
    1
    Views:
    400
    Austin Ziegler
    Mar 26, 2008
  3. Sean Nakasone
    Replies:
    1
    Views:
    344
    Farrel Lifson
    Apr 14, 2008
  4. kielhd

    Problems using Module PDF::Create

    kielhd, Feb 22, 2005, in forum: Perl Misc
    Replies:
    0
    Views:
    72
    kielhd
    Feb 22, 2005
  5. Bruce Horrocks
    Replies:
    0
    Views:
    377
    Bruce Horrocks
    Jan 24, 2006
Loading...

Share This Page