Beefy Boxes and Bandwidth Generously Provided by pair Networks
Perl Monk, Perl Meditation
 
PerlMonks  

Re^2: PDF::API2 & PDF::Textblock problems

by ksublondie (Pilgrim)
on Jun 09, 2012 at 00:02 UTC ( #975258=note: print w/ replies, xml ) Need Help??


in reply to Re: PDF::API2 & PDF::Textblock problems
in thread PDF::API2 & PDF::Textblock problems

Well, after spending an entire day on this, I've finally tracked down the offending code as line #144 in PDF::API2::Util

my $value = sprintf('%.'.abs($ad).'f',$f);

After making the following changes it worked:

my $temp='%.'.abs($ad).'f'; $temp=~/^(.*)$/; $temp=$1; my $value = sprintf($temp,$f);

For some reason, the working server had the modified code already in it. Don't have a clue how that happened. I'm the only one messing with the perl on these servers and even though I'm forgetful, I didn't think I was THAT bad!


Comment on Re^2: PDF::API2 & PDF::Textblock problems
Select or Download Code

Log In?
Username:
Password:

What's my password?
Create A New User
Node Status?
node history
Node Type: note [id://975258]
help
Chatterbox?
and the web crawler heard nothing...

How do I use this? | Other CB clients
Other Users?
Others contemplating the Monastery: (7)
As of 2015-07-04 01:45 GMT
Sections?
Information?
Find Nodes?
Leftovers?
    Voting Booth?

    The top three priorities of my open tasks are (in descending order of likelihood to be worked on) ...









    Results (57 votes), past polls