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

Annotation example not rendered to image

    XMLWordPrintableJSON

Details

    • Bug
    • Status: Closed
    • Critical
    • Resolution: Duplicate
    • 2.0.0
    • 2.0.0
    • Rendering

    Description

      taking the code from the example at
      examples/src/main/java/org/apache/pdfbox/examples/pdmodel/Annotation.java
      add the following lines at the end (before the finally):
      BufferedImage image = new PDFRenderer(document).renderImageWithDPI(0, 600); ImageIO.write(image, "jpg", new File("example.jpg"));

      and the image contains only the text without any annotation.

      Attachments

        1. example.pdf
          2 kB
          Chico Charlesworth
        2. example.jpg
          534 kB
          Chico Charlesworth

        Issue Links

          Activity

            People

              Unassigned Unassigned
              chico Chico Charlesworth
              Votes:
              0 Vote for this issue
              Watchers:
              2 Start watching this issue

              Dates

                Created:
                Updated:
                Resolved: