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

Adding large TYPE_BYTE_BINARY image to pdf document generates distorted result

    XMLWordPrintableJSON

Details

    • Bug
    • Status: Closed
    • Major
    • Resolution: Fixed
    • 1.8.7, 1.8.8, 2.0.0
    • 1.8.8, 2.0.0
    • PDModel
    • None

    Description

      See attached small.jpg and large.jpg added to attached rgb.pdf and bn.pdf using attached Image2Pdf2ImageBlackAndWhite2PDF.java.

      Adding both small.jpg and large.jpg to rgb.pdf is OK
      Adding small.jpg, converted to black and white, to bn.pdf is OK
      Adding large.jpg, converted to black and white, to bn.pdf is NOK: the resulting image is distorted.

      Attachments

        1. bn.pdf
          40 kB
          Julien Béti
        2. rgb.pdf
          2.22 MB
          Julien Béti
        3. small.jpg
          161 kB
          Julien Béti
        4. large.jpg
          110 kB
          Julien Béti
        5. Image2Pdf2ImageBlackAndWhite2PDF.java
          3 kB
          Julien Béti

        Activity

          People

            tilman Tilman Hausherr
            motofix Julien Béti
            Votes:
            0 Vote for this issue
            Watchers:
            3 Start watching this issue

            Dates

              Created:
              Updated:
              Resolved: