You are viewing a plain text version of this content. The canonical link for it is here.
Posted to dev@pdfbox.apache.org by "Tilman Hausherr (Jira)" <ji...@apache.org> on 2020/05/01 14:47:00 UTC

[jira] [Comment Edited] (PDFBOX-4821) My PDF document is not printed correctly. Rendering it works.

    [ https://issues.apache.org/jira/browse/PDFBOX-4821?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=17097382#comment-17097382 ] 

Tilman Hausherr edited comment on PDFBOX-4821 at 5/1/20, 2:46 PM:
------------------------------------------------------------------

I believe this is a java bug. I checked that the graphics device clipping path is empty.

So we need a workaround, to check whether the clipping path is empty before doing any graphics operations. I'll commit that later or tomorrow.


was (Author: tilman):
I believe this is a java bug. I checked that the graphics device clipping path is empty.

So we need a workaround, to check whether the clipping path is empty before doing any graphics operations.

> My PDF document is not printed correctly. Rendering it works.
> -------------------------------------------------------------
>
>                 Key: PDFBOX-4821
>                 URL: https://issues.apache.org/jira/browse/PDFBOX-4821
>             Project: PDFBox
>          Issue Type: Bug
>          Components: Rendering
>    Affects Versions: 2.0.15, 2.0.20
>         Environment: Windows 10, JDK 1.8.0_152, 14.0.1
>            Reporter: Daniel Migowski
>            Priority: Major
>              Labels: bug, printing, rendering
>         Attachments: ArtefactWhilePrinting.png, DevconLetterPaperPrinter.java, DevconLetterPaperRenderer.java, LogoOnly_Letterpaper.pdf, PDFBOX-4821_reduced1.pdf, PDFBOX-4821_reduced6.pdf, PDFBOX-4821_reduced7.pdf, RenderingResult.png, image-2020-05-01-13-43-54-357.png
>
>
> 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.
>  



--
This message was sent by Atlassian Jira
(v8.3.4#803005)

---------------------------------------------------------------------
To unsubscribe, e-mail: dev-unsubscribe@pdfbox.apache.org
For additional commands, e-mail: dev-help@pdfbox.apache.org