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

Annotation example not rendered to image

    Details

    • Type: Bug
    • Status: Closed
    • Priority: Critical
    • Resolution: Duplicate
    • Affects Version/s: 2.0.0
    • Fix Version/s: 2.0.0
    • Component/s: Rendering
    • Labels:

      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
          Adi
        2. example.jpg
          534 kB
          Adi

          Issue Links

            Activity

              People

              • Assignee:
                Unassigned
                Reporter:
                chico Adi
              • Votes:
                0 Vote for this issue
                Watchers:
                2 Start watching this issue

                Dates

                • Created:
                  Updated:
                  Resolved: