Dg2PDF(3pm) | User Contributed Perl Documentation | Dg2PDF(3pm) |
Games::Go::Dg2PDF - Perl extension to convert Games::Go::Diagrams to PDF (Portable Document Format).
use Games::Go::Dg2PDF
my $dg2pdf = B<Games::Go::Dg2PDF-E<gt>new> (options); $dg2pdf->convertDiagram($diagram);
A Games::Go::Dg2PDF object converts a Games::Go::Diagram object into a PDF file.
Default: 19
Default: false
Default: false
Default:
sub { my ($x, $y) = @_;
$x = chr($x - 1 + ord('a')); # convert 1 to 'a',
etc
$y = chr($y - 1 + ord('a'));
return("$x$y"); }, # concatenate two letters
Default: 'letter'
Default for all margins: 72 * .70 (7/10s of an inch)
Default: 11
Default: 5
If stone_width is not explicitly set, it is calculated from the stone_fontSize to allow up to three digits on a stone . The default stone_fontSize allows for three diagrams (with -coords) per 'letter' page if comments don't take up extra space below diagrams. If doubleDigits is specified, the stones and board are slightly smaller (stone 100 may look a bit cramped).
If stone_height is not explicitly set, it will be 1.05 * stone_width, creating a slightly rectangular diagram.
Default: undef - determined from stone_fontSize
Note that this is not the same as the printComment method.
Returns the converted text.
Both long and short property names are recognized, and all unrecognized properties are ignored with no warnings. Note that these properties are all intended as game-level notations.
You think I'd admit it?
Reid Augustin, <reid@hellosix.com>
Copyright (C) 2005 by Reid Augustin
This library is free software; you can redistribute it and/or modify it under the same terms as Perl itself, either Perl version 5.8.5 or, at your option, any later version of Perl 5 you may have available.
2009-11-01 | perl v5.24.1 |