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

Remove direct JAI dependency

    XMLWordPrintableJSON

Details

    • Improvement
    • Status: Closed
    • Blocker
    • Resolution: Fixed
    • None
    • 0.8.0-incubator
    • PDModel
    • None

    Description

      As noted during the license review (PDFBOX-366), we can't have the Java Advanced Imaging (JAI) libraries included in Apache PDFBox.

      One alternative would be to require downstream users to explicitly download the required JAI libraries from Sun and place them in the lib directory before building PDFBox. That's quite cumbersome, so I looked at how tightly integrated PDFBox is with the JAI libraries.

      It turns out that only two classes in PDFBox (PDPage and PDCcitt) have direct dependencies to the JAI libraries. The PDPage dependency is used for rotating the page image, and the PDCcitt dependency for parsing a tiff image.

      I believe both of these dependencies can be replaced with functionality or interfaces available in standard JDK 1.4. See the attached patch for the proposed changes.

      Attachments

        1. pdfbox-nojai.patch
          4 kB
          Jukka Zitting

        Issue Links

          Activity

            People

              jukkaz Jukka Zitting
              jukkaz Jukka Zitting
              Votes:
              0 Vote for this issue
              Watchers:
              1 Start watching this issue

              Dates

                Created:
                Updated:
                Resolved: