I use inkscape to edit diplomas. They include the student name, address, program name, diploma number, date and student picture. Is there a possibility to create a script that will generate diplomas from a table using each row for one diploma's data and automatically position the data according to its length?
Where can I find tutorials for this and which is the best programming language to interface with inkscape? Thank you.
Create script for diplomas
Re: Create script for diplomas
Search for "inkscape extension"
The language is python.
Alternately, (and possibly easier) is to create a single template with placeholders as an SVG file using inkscape, then use an external script to replace the placeholders.
(or specify the node ID's for each element and use an external script with xml parsing capabilities to replace the attribute contents for the specified node id's)
Then call inkscape from the command line to render the output as png.
Text can be set as left/right/or center justified, so as long as the text boxes are large enough to handle the largest string you should be fine.
What is the OS?
-Rob A>
The language is python.
Alternately, (and possibly easier) is to create a single template with placeholders as an SVG file using inkscape, then use an external script to replace the placeholders.
(or specify the node ID's for each element and use an external script with xml parsing capabilities to replace the attribute contents for the specified node id's)
Then call inkscape from the command line to render the output as png.
Text can be set as left/right/or center justified, so as long as the text boxes are large enough to handle the largest string you should be fine.
What is the OS?
-Rob A>
-
- Posts: 3
- Joined: Thu Nov 19, 2009 1:33 am
Re: Create script for diplomas
I can use windows/linux/mac
Is it possible to change image attributes (image source, position, size) too?
Thank you.
Is it possible to change image attributes (image source, position, size) too?
Thank you.
Re: Create script for diplomas
Hi, sorry for being so long to give you an answer.
There is an extension that can do " mail merge" type stuff:
http://colivre.coop.br/Aurium/InkscapeGenerator
with the proviso that I have not used it myself, and it may be a bit out of date.
tom.
There is an extension that can do " mail merge" type stuff:
http://colivre.coop.br/Aurium/InkscapeGenerator
with the proviso that I have not used it myself, and it may be a bit out of date.
tom.