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 08:56:13 UTC
[jira] [Comment Edited] (PDFBOX-1658) TTC fonts not supported for
substitution
[ https://issues.apache.org/jira/browse/PDFBOX-1658?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=14486855#comment-14486855 ]
John Hewson edited comment on PDFBOX-1658 at 4/9/15 6:56 AM:
-------------------------------------------------------------
I noticed that this 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 < under 1px being used, rather than using _stroked_ paths. Because these paths are rectangular, they're triggering our heuristic gradient detector which disables anti-aliasing.
I've attached a patch which increases the threshold for disabling anti-aliasing to paths with a width and height > 1, and this file now renders perfectly, even at 72 dpi. Hopefully this will fix other files with the thin lines problem, [~tilman] I'm going to let you try out the patch and tell me what you think.
was (Author: jahewson):
I noticed that this file also contains some thin lines which disappear when rendering at lower resolutions. The problem is due filled paths with a width < under 1px being used, rather than using stroked paths. Because these paths are rectangular, they're triggering our heuristic gradient detector which disables anti-aliasing.
I've attached a patch which increases the threshold for disabling anti-aliasing to paths with a width and height > 1, and this file now renders perfectly, even at 72 dpi. Hopefully this will fix other files with the thin lines problem, [~tilman] I'm going to let you try out the patch and tell me what you think.
> TTC fonts not supported for substitution
> ----------------------------------------
>
> Key: PDFBOX-1658
> URL: https://issues.apache.org/jira/browse/PDFBOX-1658
> Project: PDFBox
> Issue Type: Bug
> Components: Rendering
> Affects Versions: 1.7.0, 2.0.0
> Environment: Windows 7 64 bit
> Reporter: remya nair
> Assignee: John Hewson
> Labels: features
> Fix For: 2.0.0
>
> Attachments: Issue.jpg, anti-aliasing.patch, simeiteisi12.4.pdf
>
>
> Issue: The character position is seen wrong in some cases in PDFReader.
> Description: The character position (coordinate) seems irregular in PDFReader. Please refer the link below for input PDF
> "http://www.city.yotsukaido.chiba.jp/shisei/jigyoshamuke/nyusatsu/nyusatsu/teishi.files/simeiteisi12.4.pdf"
> 1. Open this pdf both in PDFReader and Adobe Reader.
> 2. Consider the input characters 「102269 工事成績」
> 3. Some character positions are seen incorrectly. For example, the x coordinate of the character "工" is between the digit "1" and "0".
--
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