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

    • Bug
    • Status: Closed
    • Major
    • Resolution: Fixed
    • 2.0.17
    • 2.0.18, 3.0.0 PDFBox
    • PDModel
    • None

    Description

      ImageTest.zip

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

      Attachments

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

        Activity

          People

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

            Dates

              Created:
              Updated:
              Resolved: