
The PDF Viewer showing a schematic in a maintenance manual.
The PDF Viewer component displays a PDF that exists as a file in some accessible filesystem, or as a URL. Note that this component is simply for viewing existing PDFs. To create dynamic reports, use the Report Viewer component.
This component is typically used in conjunction with the File Explorer component, in order to create a PDF viewing window. See the File Explorer documentation, as well as the File Explorer and PDF Viewer page for instructions on how to put these two components together.
Warning |
---|
This component is not as high-quality as Adobe Reader. This component can only be guaranteed to correctly display reports generated by the Report Viewer. In practice, it is able to view many PDFs, but it does have trouble with some, especially PDFs created by AutoCAD. |
The PDF Viewer component will accept raw bytes of information in addition to a file location. See Example - Storing Files in a Database.
Panel |
---|
Name | Data Type | Flags |
---|
accessibleContext | AccessibleContext | bindable | actionMap | ActionMap | bindable | alignmentX | float | bindable | alignmentY | float | bindable | ancestorListeners | AncestorListener[] | bindable | antialias | boolean | bindable | appContext | VisionClientContext | bindable | autoscrolls | boolean | bindable | background | Color | bindable | backgroundSet | boolean | bindable | baselineResizeBehavior | BaselineResizeBehavior | bindable | border | Border | bindable | bounds | Rectangle | bindable | bytes | byte[] | bindable | class | Class | none | colorModel | ColorModel | bindable | component | Component | bindable | componentCount | int | bindable | componentListeners | ComponentListeners[] | bindable | componentOrientation | ComponentOrientation | bindable | componentPopupMenu | JPopupMenu | bindable | components | Components[] | bindable | containerListeners | ContainerListeners[] | bindable | cursor | Cursor | bindable | cursorCode | int | bindable | cursorSet | boolean | bindable | dataQuality | int | bindable | debugGraphicsOptions | int | bindable | displayable | boolean | bindable | doubleBuffered | boolean | bindable | dropTarget | DropTarget | bindable | dynamicProps | TreeMap | bindable | enabled | boolean | bindable | filename | String | bindable | focusCycleRoot | boolean | bindable | focusCycleRootAncestor | Container | bindable | focusListeners | FocusListener[] | bindable | focusOwner | boolean | bindable | focusTraversable | boolean | bindable | focusTraversalKeys | Set | bindable | focusTraversalKeysEnabled | boolean | bindable | focusTraversalPolicy | FocusTraversalPolicy | bindable | focusTraversalPolicyProvider | boolean | bindable | focusTraversalPolicySet | boolean | bindable | focusable | boolean | bindable | font | Font | bindable | fontSet | boolean | bindable | foreground | Color | bindable | foregroundSet | boolean | bindable | graphics | Graphics | bindable | graphicsConfiguration | GraphicsConfiguration | bindable | height | int | bindable | hierarchyBoundsListeners | HierarchyBoundsListener[] | bindable | hierarchyListeners | HierarchyListener[] | bindable | ignoreRepaint | boolean | bindable | inheritsPopupMenu | boolean | bindable | inputContext | InputContext | bindable | inputMap | InputMap | bindable | inputMethodListeners | InputMethodListener[] | bindable | inputMethodRequests | InputMethodRequests | bindable | inputVerifier | InputVerifier | bindable | insets | Insets | bindable | keyListeners | KeyListener[] | bindable | layout | LayoutManager | bindable | lightweight | boolean | bindable | locale | Locale | bindable | location | Point | bindable | locationOnScreen | Point | bindable | managingFocus | boolean | bindable | maximumSize | Dimension | bindable | MaximumSizeSet | boolean | bindable | minimumSize | Dimension | bindable | minimumSizeSet | boolean | bindable | mouseListeners | MouseListener[] | bindable | mouseMotionListeners | MouseMotionListener[] | bindable | mousePostion | Point | bindable | mouseWheelListeners | MouseWheelListener[] | bindable | name | String | bindable | nextFocusableComponent | Component | bindable | opaque | boolean | bindable | optimizedDrawingEnabled | boolean | bindable | paintingForPrint | boolean | bindable | paintingTile | boolean | bindable | parent | Container | bindable | peer | ComponentPeer | bindable | preferredSize | Dimension | bindable | perferredSizeSet | boolean | bindable | printingDPI | int | bindable | printingMode | int | bindable | properties | DynamicPropertyDescriptor[] | bindable | propertyChangeListeners | PropertyChangeListener[] | bindable | registeredKeyStrokes | KeyStroke[] | bindable | requestFocusEnabled | boolean | bindable | retainPageOnReload | boolean | bindable | rootPane | JRootPane | bindable | showing | boolean | bindable | size | Dimension | bindable | styles | Dataset | bindable | toolTipText | String | bindable | toolkit | Toolkit | bindable | topLevelAncestor | Container | bindable | transferHandler | TransferHandler | bindable | treeLock | Object | bindable | valid | boolean | bindable | validateRoot | boolean | bindable | verifyInputWhenFocusTarget | verifyInputWhenFocusTarget | bindable | vetoableChangeListeners | VetoableChangeListener[] | bindable | visible | boolean | bindable | visibleRect | Rectangle | bindable | width | int | bindable | x | int | bindable | y | int | bindable | zoomFactor | float | bindable | UI | PanelUI | bindable | UIClassID | String | bindable |
|
Panel |
---|
|
Panel |
---|
|
Expand |
---|
title | .loadPDFBytes(bytes, name) |
---|
| This function will pass in the bytes of a PDF and load them into the PDF Viewer component. Please see Storing Files in a Database for more details string bytes - The bytes of the PDF to be displayed on the component string name - The name of the PDF Client |
Expand |
---|
| This function will print the PDF. boolean- If true, shows the user a print dialog. Default is true [optional] Client |
Expand |
---|
title | .setZoomFactor(zoomFactor) |
---|
| This function will set the current zoom level of the PDF, adjusted to stay within the minimum / maximum zoom range. Will zoom in on center of page. float- Zoom factor to use. 1.0 is no zoom. Client |
|
Panel |
---|
| This component does not have extension functions associated with it. |
|