Ich benutze FOP 2.1 und versuche, ViewerPreferences, z. DisplayDocTitle -> Wahr.Unterstützt FOP 2.1 ViewerPreferences?
Ich versuche (von 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/">
...
aber
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)
und keine ViewerPreferences innerhalb des pdf bekommen.
Als ich die Dictionarys unter dem <x:xmpmeta xmlns:x="adobe:ns:meta/">
setzen dann bekomme ich keine ViewerPreferences entweder, nur pdfbox preflight wird sich dann über
The file test.pdf is not valid, error(s) :
7.3 : Error on MetaData, Cannot find a definition for the namespace http://xmlgraphics.apache/org/fop/extensions/pdf
Was mache ich falsch, bin ich zu früh, um es zu versuchen? Wo muss ich foppen?
Ausgezeichnet, vielen Dank @ifurini! Es ist also eher eine Dokumentationsproblematik.Die Wirkung dieser Deklarationen ist leicht zu erkennen - ohne sie zeigt der acrobat reader den Dateinamen in der Titelleiste an, aber wenn sie erfolgreich arbeiten, wird der Titel des Dokuments (in RDF/dc: title) angezeigt –