You are viewing a plain text version of this content. The canonical link for it is here.
Posted to dev@pdfbox.apache.org by "Cornelis Hoeflake (JIRA)" <ji...@apache.org> on 2016/01/06 15:51:39 UTC

[jira] [Created] (PDFBOX-3183) Thine strokes (hairline)

Cornelis Hoeflake created PDFBOX-3183:
-----------------------------------------

             Summary: Thine strokes (hairline)
                 Key: PDFBOX-3183
                 URL: https://issues.apache.org/jira/browse/PDFBOX-3183
             Project: PDFBox
          Issue Type: Bug
          Components: Rendering
    Affects Versions: 2.0.0
            Reporter: Cornelis Hoeflake
             Fix For: 2.0.0


I have a PDF which has a very small line in it. When rendering with PDFBox, the line is not shown. Only at very high resolution, starting with a scale factor of 14. The line is shown (as black 1 pixel line) in other PDF readers like Adobe, Chrome, PDFJS and Edge.

I think this issue is related to PDFBOX-2753 but is different.

The line is implemented by a stroke of 0.06pt high. That stroke is surrounded by a rectangle of the same height. Now there are two problems. 
First, the rectangle is used as the clipping area. That area is 0.06pt high which is 0 pixels at lower resolution.
Secondly, the stroke itself has a height of 0.06pt which is 0 pixels at lower resolution. Although the PageDrawer.getStroke rewrites this to 0.25.



--
This message was sent by Atlassian JIRA
(v6.3.4#6332)

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