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

PDImageXObject doesn't support TIFF although JavaDoc says it does

    XMLWordPrintableJSON

Details

    • Bug
    • Status: Closed
    • Major
    • Resolution: Fixed
    • 2.0.9
    • 2.0.10, 3.0.0 PDFBox
    • None
    • None

    Description

      This code:

      final PDImageXObject jpeg = PDImageXObject.createFromByteArray(doc, IOUtils.toByteArray(new FileInputStream(tiffFile)), "tiff.tif");
      

      throws:

      java.lang.IllegalArgumentException: Image type not supported: tiff.tif
              at org.apache.pdfbox.pdmodel.graphics.image.PDImageXObject.createFromByteArray(PDImageXObject.java:351)
      
      

      Attachments

        Issue Links

          Activity

            People

              tilman Tilman Hausherr
              eximius Kamil
              Votes:
              0 Vote for this issue
              Watchers:
              4 Start watching this issue

              Dates

                Created:
                Updated:
                Resolved: