Display meta data on canvas?

Post questions on how to use or achieve an effect in Inkscape.
secundar
Posts: 3
Joined: Wed Nov 17, 2010 12:42 am

Display meta data on canvas?

Postby secundar » Wed Nov 17, 2010 1:03 am

Is there a way to use call variables, for example, to display the document creator meta data as a text object? I'm creating a template for students and it would be handy to have a protected text object that automatically reflects meta data entered for the document.

User avatar
brynn
Posts: 10309
Joined: Wed Sep 26, 2007 4:34 pm
Location: western USA
Contact:

Re: Display meta data on canvas?

Postby brynn » Thu Nov 18, 2010 3:27 am

Welcome secundar!

As far as I know, there's no button or command that does this. But if you're creating a template like you say, you could go ahead and put....sort of like fields. For example, you could put

Name:
Date:
Class:

or something like that. And then the student would simply use the text tool to fill in the blanks.

secundar
Posts: 3
Joined: Wed Nov 17, 2010 12:42 am

Re: Display meta data on canvas?

Postby secundar » Sat Nov 20, 2010 12:17 am

Thanks brynn,

That's fine but I thought, perhaps, I could edit the XML and use some kind of reference to pull that info from the document meta-data.

~suv
Posts: 2272
Joined: Sun May 10, 2009 2:07 am

Re: Display meta data on canvas?

Postby ~suv » Sat Nov 20, 2010 2:14 am

See the example distributed with Inkscape about using <tref> in 'share/examples/tref.svg'. Inkscape doesn't have an interface yet for the <tref> element though (but it should be possible to add it using Inkscape's built-in XML Editor).

secundar
Posts: 3
Joined: Wed Nov 17, 2010 12:42 am

Re: Display meta data on canvas?

Postby secundar » Sat Mar 12, 2011 9:28 pm

Thanks, that's just what I needed.

Is it possible to pull out specific info? When referencing the metadata, and there's data in more than one field, the output is all one long string of text that's impossible to format. Would be nice to make one tref per metadata field to have more control over formatting.


Return to “Help with using Inkscape”