You are viewing a plain text version of this content. The canonical link for it is here.
Posted to dev@pdfbox.apache.org by "John Hewson (JIRA)" <ji...@apache.org> on 2015/04/09 20:57:14 UTC

[jira] [Created] (PDFBOX-2753) Improve rendering of filled thin lines

John Hewson created PDFBOX-2753:
-----------------------------------

             Summary: Improve rendering of filled thin lines
                 Key: PDFBOX-2753
                 URL: https://issues.apache.org/jira/browse/PDFBOX-2753
             Project: PDFBox
          Issue Type: Improvement
          Components: Rendering
    Affects Versions: 2.0.0
            Reporter: John Hewson
            Assignee: John Hewson
             Fix For: 2.0.0


While working on PDFBOX-1658 I noticed that the file also contains some thin lines which disappear when rendering at lower resolutions. The problem is due to the PDF having filled paths with a width < 1px being used, rather than using stroked paths. Because these paths are rectangular, they're triggering our heuristic gradient detector which disables anti-aliasing.

The solution is to increase the threshold for disabling anti-aliasing to paths with a width and height > 1, and this file now renders perfectly, even at 72 dpi.

See the discussion in PDFBOX-1658 for further information.



--
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