Skip navigation links

Initialization Parameters

Many aspects of the PDF Viewer can be controlled via "initialization parameters", which provides an alternative way to configure the viewer when API access isn't desirable (for instance, when running as an applet). Parameters are documented in the API specification - for example, the ThumbnailPanel feature contains the following entry in its javadoc:

The following initialization parameters can be specified to configure this feature.
editabletrue or false, for setEditable()
scrollFollowtrue or false, for setScrollFollow()

Exactly how you set these parameters depends on how the viewer is being run. If it's a command line application, they can be specified directly on the command line.

java -Dorg.faceless.pdf2.viewer2.feature.ThumbnailPanel.editable=false \
     -Dorg.faceless.pdf2.viewer2.defaultViewport=SinglePageDocumentViewport \
     org.faceless.pdf2.viewer2.PDFViewer

Alternatively if the viewer is being run as an applet, they can be specified as parameters to the applet. In this case the "org.faceless.pdf2.viewer2" feature is optional.

<applet code="org.faceless.pdf2.viewer2.PDFViewerApplet" name="pdfapplet" archive="bfopdf.jar" mayscript>
  <param name="defaultViewport" value="SinglePageDocumentViewport" />
  <param name="feature.ThumbnailPanel.editable" value="false" />
  <param name="feature.TextTool.highlightColor" value="0x80FF0000" />
</applet>

Copyright © 2001-2009 Big Faceless Organization