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

Annotation example not rendered to image

VotersWatch issueWatchersLinkCloneUpdate Comment AuthorReplace String in CommentUpdate Comment VisibilityDelete Comments
    XMLWordPrintableJSON

    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.jpg
          534 kB
          Chico Charlesworth
        2. example.pdf
          2 kB
          Chico Charlesworth

        Issue Links

          Activity

            People

            • Assignee:
              Unassigned
              Reporter:
              chico Chico Charlesworth

              Dates

              • Created:
                Updated:
                Resolved:

                Issue deployment