SVG::Convert - The fantastic new SVG::Convert!
version 0.02
use SVG::Convert; my $svgconv = SVG::Convert->new(); print $svgconv->convert(format => "xaml", src_file => "examples/01.svg", output => "string");
Constructor. The "$args" arguments is HASHREF. See below more details about $args.
The driver_opts parameter is HASHREF. The keys of HASHREF are lower-cased suffix of driver module name.
For example, If driver is SVG::Convert::XAML, then the key is "xaml". The values of HASHREF are parameter needed by each of drivers.
my $sconv = SVG::Convert->new({ driver_opts => { xaml => { ## for Driver::XAML } } });
See below about %args details.
my $xaml_doc = $sconv->convert( format => "xaml", src_file => $src_file, output => "doc" );
The format parameter is string value represented format type for converting. This value is lower-cased suffix of driver module name.
For example, If the driver module is SVG::Convert::Driver::XAML, then this value is "xaml".
The src_file parameter is string value represented SVG source file name.
The src_file parameter is string value represented SVG source string.
The src_doc parameter is XML::LibXML::Document object value represented SVG source document.
The output parameter is "file" or "string" or "doc".
The output_file parameter is output filename.
The convert_opts parameter is extra params for driver.
Toru Yamaguchi, <zigorou@cpan.org>
<zigorou@cpan.org>
Please report any bugs or feature requests to bug-svg-convert@rt.cpan.org, or through the web interface at http://rt.cpan.org. I will be notified, and then you'll automatically be notified of progress on your bug as I make changes.
bug-svg-convert@rt.cpan.org
Copyright 2007 Toru Yamaguchi, All Rights Reserved.
This program is free software; you can redistribute it and/or modify it under the same terms as Perl itself.
To install SVG::Convert, copy and paste the appropriate command in to your terminal.
cpanm
cpanm SVG::Convert
CPAN shell
perl -MCPAN -e shell install SVG::Convert
For more information on module installation, please visit the detailed CPAN module installation guide.