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

Draws the attachment image to the PDF document, and the image displays as a black block

    XMLWordPrintableJSON

    Details

    • Type: Bug
    • Status: Resolved
    • Priority: Major
    • Resolution: Fixed
    • Affects Version/s: 2.0.17
    • Fix Version/s: 2.0.18, 3.0.0 PDFBox
    • Component/s: PDModel
    • Labels:
      None

      Description

      ImageTest.zip

       pdImage = PDImageXObject.createFromFile("Resources\\image1.png", doc);
       PDPageContentStream contents = new PDPageContentStream(doc, page);
       contents.drawImage(pdImage, 100, 100);
      

        Attachments

        1. ImageTest.zip
          3.78 MB
          bai yuan
        2. image1.png
          0.5 kB
          bai yuan

          Issue Links

            Activity

              People

              • Assignee:
                tilman Tilman Hausherr
                Reporter:
                berylbai bai yuan
              • Votes:
                0 Vote for this issue
                Watchers:
                2 Start watching this issue

                Dates

                • Created:
                  Updated:
                  Resolved: