A step back, first: You want to convert SVG to PDF. The best way to do that is to use the PDF transcoder (Batik plug-in) from the redesigned FOP, not from 0.20.5* because it's more advanced. I don't know if you know that. Easiest way to build it is to download a nightly snapshot and run the build because we haven't released the transcoder, yet.
So, to fill in the metadata: SVG has a metadata element, but that is currently unsupported by the transcoder, I think. The only way to set the subject and keyword fields at the moment is to get at the PDFInfo instance in PDFDocument (PDFDocument.getInfo()). The PDFDocument is held in PDFDocumentGraphics2D.java and can be accessed from outside by the getPDFDocument() method. What could be done now is to put your metadata in the TranscodingHints of the PDFTranscoder. PDFTranscoder.java would have to be enhanced for that (method transcode()). This could be done with very little effort. Supporting the svg:metadata element is a bit more complicated but nothing that cannot be done. There's only the matter of choosing a metadata flavor. I see that RDF with xmlns="http://purl.org/dc/elements/1.1/" seems to be quite popular (I've seen it in the SVG specs and a PDF created by Distiller), though I'm no specialist in that regard. In the end it simply means that PDFTranscoder.java has to be enhanced a bit. Do you feel up to the task to do it yourself? We would help you where we can. On 09.05.2003 15:30:36 Gary Marshall-Stevens wrote: > The "Document Information Dictionary" object should cover what I need. > > I can put the metadata I have into subject and keyword fields. > > Excuse my ignorance but what is the best tool to do this? Jeremias Maerki --------------------------------------------------------------------- To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]