Please choose a menu option
Visit the IDRsolutions WebSite

Java PDF Viewer Interface properties

This section gives information about the interface properties tab for the PDF viewer, the function of the different flags and how they can be changed. Please note, we are constantly adding new functionality to the properties file and therefore the documentation contained here is for version 4.3 of JPedal. If a flag is not present in your properties file then the functionality is not available for your version.

The above images show the preferences interface tabs and the available options on them.

Interface Tab Options

Use new GUI layout

This check box allows the user to switch between JPedal's old and new layouts.
The properties file flag for this option is <enhancedGUI value="true" />.
The two values for this option are

  • box selected
    Use the new layout.
    Properties file value = true
  • box unselected
    Use the old layout.
    Properties file value = false

Custom window title

This text input allows the user to specify a replacement title for the window.
The properties file flag for this option is <windowTitle value="" />.
The value used for this flag is the replacement title.

Location of Icon Set

This text input allows the user to specify a directory in which alternative icons for the GUI are placed.
The properties file flag for this option is <iconLocation value="/org/jpedal/examples/simpleviewer/res/" />.
The value used for this flag is the path to the icon directory.

PDF Search Style

This combo box allows the user to set how the gui representation of the PDF search functionality is displayed.
The properties file flag for this option is <searchWindowType value="2" />.
The three values fo this option are

  • Ext. Window
    An external window is opened containing the PDF search box, result list and PDF search options.
    Properties file value = 0
  • Tab Panel
    The PDF search box, result list and PDF search options are added to an extra tab that is visible in the tab bar on the left hand side of the window.
    Properties file value = 1
  • Menubar
    The PDF search box and two buttons are added to the menubar. The buttons will move to either the previous or next PDF search result.
    Properties file value = 2

Max MultiViewers

This text input allows the user to specify the total number of windows that can be opened in the multiviewer.
The properties file flag for this option is <maxmultiviewers value="20" />.
The value for this flag is an integer to represent the max number of windows.

Side Tab Length

This text input allows the user to specify the default width for the side tab.
The properties file flag for this option is <sideTabBarCollapseLength value="30" />.
The value for this flag is an integer to represent the width of the tab.

Keep side tab consistent

This check box allows the user to make sure that the side tab stays consistent between files.
The properties file flag for this option is <consistentTabBar value="false" />.
The two values for this option are

  • box selected
    Keeps the tab consistent.
    Properties file value = true
  • box unselected
    Does not keep the tab consistent.
    Properties file value = false

Allow right click

This check box allows the user to enable/disable the right click functionality.
The properties file flag for this option is <allowRightClick value="true" />.
The two values for this option are

  • box selected
    Allows right click.
    Properties file value = true
  • box unselected
    Does not allow right click.
    Properties file value = false

Allow scrollwheel zooming

This check box allows the user to enable/disable scrolling when using the scrollwheel with ctrl pressed.
The properties file flag for this option is <allowScrollwheelZoom value="true" />.
The two values for this option are

  • box selected
    Enable scrolling.
    Properties file value = true
  • box unselected
    Disable scrolling.
    Properties file value = false

Change Highlight Colour

This button opens a color chooser window which will allow the user to specify the color of the highlight around selected text.
The properties file flag for this option is <highlightBoxColor value="-16777216" />.
The value used for this flag is the integer representation of the color selected.

Change Highlighted Text Colour

This button opens a color chooser window which will allow the user to specify the color of the text that has been highlighted.
The properties file flag for this option is <highlightTextColor value="-26316" />.
The value used for this flag is the integer representation of the color selected.

Change Highlight Transparency

This text input allows the user to set the transparency of the highlight box.
The properties file flag for this option is <highlightComposite value="0.35" />.
The value of the highlightComposite flag is the percentage of opacity of the highlgiht where 0 = 0% and 1 = 100% (therefore the default is 35%).

Highlight Inverts Page

This check box allows the user to turn on/off the functionality of the viewer to invert the colors found in the area of the highlight.
The properties file flag for this option is <invertHighlights value="false" />.
The two values for this option are

  • box selected
    Inverts the color of highlights.
    Properties file value = true
  • box unselected
    Uses the colors specified for the highlight.
    Properties file value = false

Back to main preferences page

 

Return to main PDF support section

Click here for the main PDF support area with lots of java examples, PDF tutorials and useful information to get the most out of the JPedal PDF library

 


PDF viewer