Does FOP 2.1 support ViewerPreferences?

后端 未结 2 1030
逝去的感伤
逝去的感伤 2020-12-11 21:59

I\'m using FOP 2.1 and am trying to set ViewerPreferences, e.g. DisplayDocTitle -> true.

I\'m trying (from this question


            


        
2条回答
  •  抹茶落季
    2020-12-11 22:48

    As supplement to @lfurini's excellent finding, here are some more thing that can be done that way easily, tested with fop 2.1, but could also work from 2.0:, remove the comments from the relevant sections to try:

    
      
        
        
    
        
        
        
    
        
        
          true
        
      
      
        
          
            
            Sample Document title
          
        
      
    
    

    Details of possible values can be looked up in the pdf specification (from page 139 in this v1.7 version, TABLE 3.25 Entries in the catalog dictionary), take care not to use values that would normally be set by fop anyway, restrict yourself to viewer/reader relevant stuff.

提交回复
热议问题