Is it possible to add additional metadata to a pdf?

20 views
Skip to first unread message

Władysław Czaja

unread,
Nov 9, 2020, 9:52:12 AM11/9/20
to Orbeon Forms
Hi, 

Is it possible to add additional metadata to a pdf file when generating pdf in Orbeon FOrms e.g. DOCUMENT_ID etc.  

Vlad


Alessandro Vernet

unread,
Nov 10, 2020, 1:08:06 AM11/10/20
to orb...@googlegroups.com
Hi Vlad,

It isn't supported out-of-the-box, but would certainly be possible. For the
automatic PDF generation, Orbeon Forms uses Flying Saucer. I'm not sure if
it supports adding key/values to the Document Information Dictionary (see
1st link below). If not, we could use iText to add this information to the
PDF once produced by Flying Saucer (see 2nd link below, in particular the
example at the end of the answer).

https://en.wikipedia.org/wiki/PDF#Metadata
https://stackoverflow.com/a/25699078/5295

‑Alex

-----
--
Follow Orbeon on Twitter: @orbeon
Follow me on Twitter: @avernet
--
Sent from: http://discuss.orbeon.com/
Reply all
Reply to author
Forward
0 new messages