SVG::Fill - use svg file as templates, replace strings and images by id
use SVG::Fill; # Open the filename for resue my $file = SVG::Fill->new( 'example.svg' ); # Fill text in to a text field $file->fill_text('#Template_ID', 'New Text'); # Save image in to an image $file->fill_image('#Template_ID', 'file.png'); # Save the modified svg $file->save('output.svg'); # If rsvg-convert also installed, you could generate png and pdf from the svg file $file->convert('output.png','png'); $file->convert('output.pdf','pdf');
SVG::Fill rewrites svg as template. Elements like text and img could be replaced by id (layer-name in Adobe Illustrator)
Current
Copyright (C) Jens Gassmann.
This library is free software; you can redistribute it and/or modify it under the same terms as Perl itself.
Jens Gassmann <jens.gassmann@atomix.de>
To install SVG::Fill, copy and paste the appropriate command in to your terminal.
cpanm
cpanm SVG::Fill
CPAN shell
perl -MCPAN -e shell install SVG::Fill
For more information on module installation, please visit the detailed CPAN module installation guide.