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

My PDF document is not printed correctly. Rendering it works.

    XMLWordPrintableJSON

    Details

    • Type: Bug
    • Status: Closed
    • Priority: Major
    • Resolution: Fixed
    • Affects Version/s: 2.0.2, 2.0.15, 2.0.19, 2.0.20
    • Fix Version/s: 2.0.20, 3.0.0 PDFBox
    • Component/s: Rendering
    • Labels:
    • Environment:
      Windows 10, JDK 1.8.0_152, 14.0.1

      Description

      I am printing PDF files with Apache PDFBox. The attached file shows a second turquise square on the top of the page (See attached file "ArtefactWhilePrinting.png").

      When I try to render the PDF with PDFBox the result looks nice (see attached file "RenderingResult.png")

      I have provided the code to render / print the letterpaper, and also the Input PDF ("LogoOnly_Letterpaper.pdf"). 

      The PDF is the output of an SVN file, exported by Inkscape, but AFAIK there isn't even an object at the location where the square appears in printing, so I cannot tell what bugs lets it appear there.

      Thanks for improving the PDF component to also handle this PDF in advance, you guys are great.

      Update: I tried to give a DPI number to printing, so the pixelating is done within PDF Box, but there the artefact still appears. So rendering with DPI to Image works (also with 300 DPI images), but rendering even with DPI to paper leads to the strange artefact.  Not true, rendering in PDFBox doesn't show behaviour.

      Update 2: Checked with currently nightly, bug still appears.

       

        Attachments

        1. image-2020-05-01-13-43-54-357.png
          163 kB
          Tilman Hausherr
        2. PDFBOX-4821_reduced7.pdf
          1 kB
          Tilman Hausherr
        3. LogoOnly_Letterpaper.pdf
          43 kB
          Daniel Migowski
        4. ArtefactWhilePrinting.png
          22 kB
          Daniel Migowski
        5. RenderingResult.png
          5 kB
          Daniel Migowski
        6. DevconLetterPaperPrinter.java
          1.0 kB
          Daniel Migowski
        7. DevconLetterPaperRenderer.java
          0.9 kB
          Daniel Migowski

          Activity

            People

            • Assignee:
              tilman Tilman Hausherr
              Reporter:
              dmigowski Daniel Migowski
            • Votes:
              0 Vote for this issue
              Watchers:
              3 Start watching this issue

              Dates

              • Created:
                Updated:
                Resolved: