tremoor
tremoor

Reputation: 1

how to add custom properties metadata to the pdf using apache fop

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?

Upvotes: 0

Views: 1702

Answers (1)

Florian Ruh
Florian Ruh

Reputation: 110

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

Upvotes: 1

Related Questions