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

right parenthess are not handled properly in bookmarks

    XMLWordPrintableJSON

Details

    • Bug
    • Status: Closed
    • Major
    • Resolution: Fixed
    • None
    • 1.2.0
    • Parsing
    • None
    • Windows Vista 32-bit, Java 1.5.0_06, PDFBox HEAD tag (revision 939870)

    Description

      Bookmarks with a right parenthesis are not parsed correctly. Instead of a right parenthesis ")", a backslash "\" is output. For example "(L(I((S)P)))" becomes "(L(I((S\P\\\".

      I'm attaching a file which demonstrates the issue. Sample code segment to reproduce this:
      doc = PDDocument.load(inputFile);
      PDDocumentOutline root = doc.getDocumentCatalog().getDocumentOutline();
      if(root != null) {
      PDOutlineItem item = root.getFirstChild();
      System.out.println("title = " + item.getTitle());
      }

      I'll post a patch if I can figure out where this issue lies.

      Attachments

        1. PDFBOX-276_removal.patch
          5 kB
          Adam Nichols
        2. parentheses_fail.pdf
          108 kB
          Adam Nichols

        Activity

          People

            Unassigned Unassigned
            adamnichols Adam Nichols
            Votes:
            0 Vote for this issue
            Watchers:
            0 Start watching this issue

            Dates

              Created:
              Updated:
              Resolved: