Beefy Boxes and Bandwidth Generously Provided by pair Networks
Perl-Sensitive Sunglasses

Problem using PDF::API2 version 2.021

by mickey522 (Initiate)
on May 16, 2018 at 03:46 UTC ( #1214606=perlquestion: print w/replies, xml ) Need Help??
mickey522 has asked for the wisdom of the Perl Monks concerning the following question:

I am having trouble with a perl script which uses PDF::API2 version 2.021. The problem is in a bit of code which uses the transform method. The code was working on an old machine using a version from around 1999-2000. The bit of code that does not work properly is as follows:

. . . $local_gfx_context->transform( -translate=>[$x_dir_ref,$y_dir_ref], -rotate=>$mid_angle_pdf, -scale=>[1,1], -skew=>[0,0], ); . . .

if the code is commented out following code is processed. If left in following code is ignored (apparently). No output is produced beyond thet controlled by the above code snippet. There are also no error messages. I have tried various things like:
1) Using variables instead of literals as parameters
2) Adding spaces around '>='
to no avail. Any assistance in getting this fixed would be appeciated.

Replies are listed 'Best First'.
Re: Problem using PDF::API2 version 2.021
by poj (Monsignor) on May 16, 2018 at 06:01 UTC

    Maybe try making the transformations separately.


Log In?

What's my password?
Create A New User
Node Status?
node history
Node Type: perlquestion [id://1214606]
Approved by haukex
and the web crawler heard nothing...

How do I use this? | Other CB clients
Other Users?
Others lurking in the Monastery: (6)
As of 2018-08-19 22:42 GMT
Find Nodes?
    Voting Booth?
    Asked to put a square peg in a round hole, I would:

    Results (188 votes). Check out past polls.