xfj:viewer-preferences

Top Previous Topic Next Topic  Print this topic

The xfj:viewer-preferences element specifies options for the viewer. It is currently designed to work with Adobe Reader:

 

<xfj:viewer-preferences

       hide-toolbar="true | false"

       hide-menubar="true | false"

       hide-window-ui="true | false"

       fit-window="true | false"

       center-window="true | false"

       display-doc-title="true | false"

       />

 

The attributes for xfj:viewer-preferences are boolean toggles. The default value for all of them is false. Their meanings are as follows:

hide-toolbar - true or false, if true hide the toolbar
hide-menubar - true or false, if true hide the menubar
hide-window-ui - true or false, if true hide everything but the document
fit-window - true or false, if true zoom to fit the document in the viewer window
center-window - true or false, if true center the document in the viewer window
display-doc-title - true or false, if true display the document title in the caption bar