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

Rect of Annotation contains indirect elements + Patch

    XMLWordPrintableJSON

Details

    • Bug
    • Status: Closed
    • Minor
    • Resolution: Fixed
    • 1.8.13
    • 1.8.14
    • PDModel
    • Patch

    Description

      During processing of attached PDF file (081204_gcada.pdf) I've found out that method PDAnnotation.getRectangle() is not able to get elements from Rect of annotation if these elements are indirect cos objects ([10 0 R 11 0 R 12 0 R 13 0 R]) -> returns null.
      It works only if elements are direct cos objects.

      Affected annotation is present on page with reference number 266 0 R (page 25).

      Also I've attached a patch which solves this problems.

      Attachments

        1. 081204_gcada.pdf
          1.29 MB
          Martin Mancuska
        2. AnnotRectangleIndirectElems.patch
          2 kB
          Martin Mancuska

        Activity

          People

            tilman Tilman Hausherr
            mato7d5 Martin Mancuska
            Votes:
            0 Vote for this issue
            Watchers:
            3 Start watching this issue

            Dates

              Created:
              Updated:
              Resolved: