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

On display of a PDF document additional thick points and lines are displayed

    XMLWordPrintableJSON

Details

    • Bug
    • Status: Closed
    • Major
    • Resolution: Duplicate
    • 2.0.27, 2.0.29
    • None
    • Rendering
    • Operating System: Windows 10

    Description

      On display of a PDF document additional unexpected thick points and lines are displayed.

      • Example of problematic PDF documents see attachment "anonymous.pdf"
      • Screenshot of displayed image see attachment "display.png"

      For displaying PDF Document we use following methods of class PDFRenderer (package org.apache.pdfbox.rendering):

      public BufferedImage renderImage(int pageIndex, float scale) throws IOException

      • value of pageIndex: 0
      • value of scale: 1.9417475

       public void renderPageToGraphics(int pageIndex, Graphics2D graphics, float scaleX, float scaleY, RenderDestination destination) throws IOException

      • value of pageIndex: 0
      • value of graphics: SunGraphics2D
      • value of scaleX: 0.973301
      • value of scaleY: 0.973301
      • value of destination: "VIEW"

      Remark: On test of PDFTools only empty pages are displayed

       

      Attachments

        1. anonymous.pdf
          34 kB
          Viktor Merkel
        2. display.png
          56 kB
          Viktor Merkel

        Issue Links

          Activity

            People

              Unassigned Unassigned
              vmerkel Viktor Merkel
              Votes:
              0 Vote for this issue
              Watchers:
              2 Start watching this issue

              Dates

                Created:
                Updated:
                Resolved: