I am using FOP 2.1 and trying to set ViewerPreferences, for example. DisplayDocTitle -> true.
I'm trying (from this question
<fo:declarations> <pdf:dictionary type="Catalog" xmlns:pdf="http://xmlgraphics.apache/org/fop/extensions/pdf"> <pdf:dictionary type="normal" key="ViewerPreferences"> <pdf:entry key="DisplayDocTitle" type="boolean">true</pdf:entry> </pdf:dictionary> </pdf:dictionary> <x:xmpmeta xmlns:x="adobe:ns:meta/"> ...
but getting
Jul 13, 2016 11:18:31 AM org.apache.fop.events.LoggingEventListener processEvent WARNING: Unknown formatting object "{http://xmlgraphics.apache/org/fop/extensions/pdf}dictionary" encountered (a child of fo:declarations}. (See position 242:105) Jul 13, 2016 11:18:31 AM org.apache.fop.events.LoggingEventListener processEvent WARNING: Unknown formatting object "{http://xmlgraphics.apache/org/fop/extensions/pdf}dictionary" encountered (a child of dictionary}. (See position 243:69)
and no ViewerPreferences inside pdf.
When I put the dictionaries below <x:xmpmeta xmlns:x="adobe:ns:meta/"> then I also do not get ViewerPreferences, only the prefax pdfbox will complain about
The file test.pdf is not valid, error(s) : 7.3 : Error on MetaData, Cannot find a definition for the namespace http:
What am I doing wrong, am I too early to try? Where do I need to install fop?
source share