0

I am using apache FOP to create PDF files and need to add specific metadata to the PDF. In adobe reader it is called "custom properties" and it contains name and value. I can add simple metadata like this:

out = new ByteArrayOutputStream();
fop = fopFactory.newFop(MimeConstants.MIME_PDF, foUserAgent, out);
foUserAgent.setKeywords("some keywords");

But I need to add customised metadata with name and value. Any idea how to do it?

tremoor
  • 1
  • 1

1 Answers1

1

Maybe you're lucky with the XMP support in FOP 1.1? Try with some keys that you find in the XMP specification.

Florian Ruh
  • 110
  • 8