Page 1 of 1

Adding XMP details to PDF File

Posted: 2010-06-24T00:47:15-07:00
by mmath1234
I would like to add some XMP details (like Autor & Keywords) to a PDF file. Im not sure of the syntax of the input file or the actual command. I think it would be something like convert -profile XMP:myxmp.xmp File.pdf. Any help woul dbe appreciated.

Re: Adding XMP details to PDF File

Posted: 2010-06-24T05:39:18-07:00
by snibgo
Your command syntax is good, but "XMP:" isn't needed if the file extension is "xmp".

The xmp file syntax is defined by Adobe, for example in http://www.adobe.com/devnet/xmp/pdfs/xm ... cation.pdf

The data you need in the xmp file will depend on your application. You might find an image file that does what you want, and extract the xmp data, eg:

convert image.png in.xmp

You can then edit in.xmp (with a text editor) and use that.

Re: Adding XMP details to PDF File

Posted: 2010-06-24T05:58:02-07:00
by snibgo
Ah, I've just realised you want to add to pdf files. You should be aware that ImageMagic will rasterise the image (onvert it to pixels), which may be bad news for you.

IM isn't an ideal tool if you want to change metadata without changing the image, especially vector images.