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

Add COSBoolean(false) as option in PDDocumentCatalog's getOpenAction

    XMLWordPrintableJSON

Details

    • Improvement
    • Status: Closed
    • Trivial
    • Resolution: Fixed
    • None
    • 2.0.6, 3.0.0 PDFBox
    • None
    • None

    Description

      Over on Tika, we've started allowing users to extract PDActions. In our recent regression tests, we found a few new exceptions while trying to get the OpenAction from PDDocumentCatalog.

      The easy one to fix is:

      java.io.IOException: Unknown OpenAction false
      	at org.apache.pdfbox.pdmodel.PDDocumentCatalog.getOpenAction(PDDocumentCatalog.java:261)
      	at org.apache.tika.parser.pdf.AbstractPDF2XHTML.startDocument(AbstractPDF2XHTML.java:460)
      
      

      The object is a COSBoolean with value=false.

      I'll open a separate issue for the other new (to us) exception.

      Attachments

        1. 020196.pdf
          111 kB
          Tim Allison

        Activity

          People

            Unassigned Unassigned
            tallison Tim Allison
            Votes:
            0 Vote for this issue
            Watchers:
            3 Start watching this issue

            Dates

              Created:
              Updated:
              Resolved: