Beefy Boxes and Bandwidth Generously Provided by pair Networks
Don't ask to ask, just ask
 
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
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 lurking in the Monastery: (6)
As of 2014-08-02 00:00 GMT
Sections?
Information?
Find Nodes?
Leftovers?
    Voting Booth?

    Who would be the most fun to work for?















    Results (53 votes), past polls