[
https://issues.apache.org/jira/browse/PDFBOX-716?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel
]
Adam Nichols updated PDFBOX-716:
--------------------------------
Attachment: PDFBOX-276_removal.patch
Here's a patch to revert the changes made by PDFBOX-276. This will fix the
parser to handle right parenthesis correctly, but reintroduces the issue
reported in PDFBOX-276. Applying this patch will fix issues with valid PDFs,
but PDFs which are out of spec may have issues.
> right parenthess are not handled properly in bookmarks
> ------------------------------------------------------
>
> Key: PDFBOX-716
> URL: https://issues.apache.org/jira/browse/PDFBOX-716
> Project: PDFBox
> Issue Type: Bug
> Components: Parsing
> Environment: Windows Vista 32-bit, Java 1.5.0_06, PDFBox HEAD tag
> (revision 939870)
> Reporter: Adam Nichols
> Fix For: 1.2.0
>
> Attachments: parentheses_fail.pdf, PDFBOX-276_removal.patch
>
>
> 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.
--
This message is automatically generated by JIRA.
-
You can reply to this email to add a comment to the issue online.