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?