Class PDFDebugger

All Implemented Interfaces:
ImageObserver, MenuContainer, Serializable, Accessible, RootPaneContainer, WindowConstants

public class PDFDebugger extends JFrame
PDF Debugger.
Author:
wurtz, Ben Litchfield, Khyrul Bashar
See Also:
  • Field Details

  • Constructor Details

    • PDFDebugger

      public PDFDebugger()
      Constructor.
    • PDFDebugger

      public PDFDebugger(boolean viewPages)
      Constructor.
  • Method Details

    • initGlobalEventHandlers

      protected void initGlobalEventHandlers()
      Initialize application global event handlers. Protected to allow subclasses to override this method if they don't want the global event handler overridden.
    • getFindMenu

      public JMenu getFindMenu()
      Returns the File menu.
    • getFindMenuItem

      public JMenuItem getFindMenuItem()
      Returns the Edit > Find > Find menu item.
    • getFindNextMenuItem

      public JMenuItem getFindNextMenuItem()
      Returns the Edit > Find > Find Next menu item.
    • getFindPreviousMenuItem

      public JMenuItem getFindPreviousMenuItem()
      Returns the Edit > Find > Find Previous menu item.
    • performApplicationExit

      protected void performApplicationExit()
      Exit the application after the window is closed. This is protected to let subclasses override the behavior.
    • main

      public static void main(String[] args) throws Exception
      Entry point.
      Parameters:
      args - the command line arguments
      Throws:
      Exception - If anything goes wrong.
    • getPageLabel

      public static String getPageLabel(org.apache.pdfbox.pdmodel.PDDocument document, int pageIndex)
      Convenience method to get the page label if available.
      Parameters:
      document -
      pageIndex - 0-based page number.
      Returns:
      a page label or null if not available.