Uploaded image for project: 'PDFBox'
  1. PDFBox
  2. PDFBOX-3507

Modern OS X doesn't show JMenuBar in PDFDebugger app

    Details

    • Type: Bug
    • Status: Closed
    • Priority: Minor
    • Resolution: Fixed
    • Affects Version/s: 3.0.0 PDFBox
    • Fix Version/s: 2.0.4, 3.0.0 PDFBox
    • Component/s: Utilities
    • Labels:
      None
    • Environment:
      Mac OS X El Capitan (10.11.6), System-installed Java @ build 1.8.0_101-b13

      Description

      OS X apparently doesn't support `System.setProperty("apple.laf.useScreenMenuBar", "true");` these days, so that line should be removed from the main method on PDFDebugger. The debugger app is a lot more useful with the menu than without. Forcing it to a single value in main disallows overriding it via `-Dapple.laf.useScreenMenuBar=false`, which means the menubar is invisible and unrecoverable in Mac OS X.

      I built from source at HEAD on trunk, and run with the following command:

      java -jar ./app/target/pdfbox-app-2.1.0-SNAPSHOT.jar PDFDebugger my-doc.pdf

      After removing the aforementioned line and rebuilding, I have access to the menubar (which is handy!).

        Attachments

        1. With-useScreenMenuBar.png
          84 kB
          Chris Brown
        2. Without-useScreenMenuBar.png
          91 kB
          Chris Brown

          Activity

            People

            • Assignee:
              jahewson John Hewson
              Reporter:
              chbrown Chris Brown
            • Votes:
              0 Vote for this issue
              Watchers:
              3 Start watching this issue

              Dates

              • Created:
                Updated:
                Resolved:

                Time Tracking

                Estimated:
                Original Estimate - 0.5h
                0.5h
                Remaining:
                Remaining Estimate - 0.5h
                0.5h
                Logged:
                Time Spent - Not Specified
                Not Specified