I\'m using FOP 2.1 and am trying to set ViewerPreferences, e.g. DisplayDocTitle -> true.
I\'m trying (from this question
According to the release notes FOP 2.0 introduced, among other things, a
- Low level mechanism to augment PDF
/Catalogand/Pagedictionaries
but there are not many examples of its usage in the website.
Looking at the testcases included in the source distribution, in particular the ones named pdf-dictionary-extension_*.xml, I was able to put together something similar to your code which does not generate run-time exceptions; admittedly, I'm not familiar enough with this PDF feature to say whether the output actually achieves what you are trying to do:
true
, there is pdf:catalog instead element, but there is a specific element for each possible entry type: pdf:array, pdf:boolean, pdf:name, pdf:number, pdf:string, ...(disclosure: I'm a FOP developer, though not very active nowadays)