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

Adding large TYPE_BYTE_BINARY image to pdf document generates distorted result

    Details

    • Type: Bug
    • Status: Closed
    • Priority: Major
    • Resolution: Fixed
    • Affects Version/s: 1.8.7, 1.8.8, 2.0.0
    • Fix Version/s: 1.8.8, 2.0.0
    • Component/s: PDModel
    • Labels:
      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. Image2Pdf2ImageBlackAndWhite2PDF.java
          3 kB
          Julien Béti
        3. large.jpg
          110 kB
          Julien Béti
        4. rgb.pdf
          2.22 MB
          Julien Béti
        5. small.jpg
          161 kB
          Julien Béti

          Activity

            People

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

              Dates

              • Created:
                Updated:
                Resolved: