Beefy Boxes and Bandwidth Generously Provided by pair Networks
Your skill will accomplish
what the force of many cannot
 
PerlMonks  

Re: XML2PDF

by davorg (Chancellor)
on Jul 02, 2001 at 18:05 UTC ( #93175=note: print w/ replies, xml ) Need Help??


in reply to XML2PDF

That looks very interesting. I'd never heard of PDFLib.pm (or, indeed, pdflib). I'll be taking a closer look at them.

One question tho'. You declare a number of package variables with this code:

use vars qw ( $TOPMARGIN $BOTTOMMARGIN $LEFTMARGIN $RIGHTMARGIN $PAGEHEIGHTPOINTS $PAGEWIDTHPOINTS );

And then later you declare a number of lexical variables with the same names with this code:

my $PAGEHEIGHTPOINTS = 842; my $PAGEWIDTHPOINTS = 595; # the size of your page my ($TOPMARGIN, $BOTTOMMARGIN, $LEFTMARGIN, $RIGHTMARGIN) = (10, 10, 15, 15);

You then go on to use the lexical variables, but never the package variables. Is this left over from an earlier version of the code?

--
<http://www.dave.org.uk>

Perl Training in the UK <http://www.iterative-software.com>


Comment on Re: XML2PDF
Select or Download Code
Replies are listed 'Best First'.
Re: Re: XML2PDF
by holygrail (Scribe) on Jul 02, 2001 at 18:28 UTC
    Absolutely! And thank you, I've updated it now!

    --HolyGrail

Log In?
Username:
Password:

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

How do I use this? | Other CB clients
Other Users?
Others taking refuge in the Monastery: (11)
As of 2015-07-30 14:21 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 (271 votes), past polls