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 2016/03/11 21:31:46 UTC
[jira] [Comment Edited] (PDFBOX-3268) Corners of stroked type are
inaccurate when rendered as an image
[ https://issues.apache.org/jira/browse/PDFBOX-3268?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=15191461#comment-15191461 ]
Tilman Hausherr edited comment on PDFBOX-3268 at 3/11/16 8:31 PM:
------------------------------------------------------------------
This is a file I created myself which has a similar effect to your file. Here's the path of the "A" glyph:
{code}
moveto (-1.46484375, 0.0)
lineto (273.4375, 715.8203125)
lineto (375.48828125, 715.8203125)
lineto (668.45703125, 0.0)
lineto (560.546875, 0.0)
lineto (477.05078125, 216.796875)
lineto (177.734375, 216.796875)
lineto (99.12109375, 0.0)
lineto (-1.46484375, 0.0) <==============
moveto (205.078125, 293.9453125)
lineto (447.75390625, 293.9453125)
lineto (373.046875, 492.1875)
quad (338.8671875, 582.51953125) (322.265625, 640.625)
quad (308.59375, 571.77734375) (283.69140625, 503.90625)
lineto (205.078125, 293.9453125) <=========
{code}
The two commands that I've marked should be "close" but they're not.
was (Author: tilman):
This is a file I created myself which has a similar effect to your file. Here's the path of the "A" glyph:
{code}
moveto (-1.46484375, 0.0)
lineto (273.4375, 715.8203125)
lineto (375.48828125, 715.8203125)
lineto (668.45703125, 0.0)
lineto (560.546875, 0.0)
lineto (477.05078125, 216.796875)
lineto (177.734375, 216.796875)
lineto (99.12109375, 0.0)
lineto (-1.46484375, 0.0) <==============
moveto (205.078125, 293.9453125)
lineto (447.75390625, 293.9453125)
lineto (373.046875, 492.1875)
quad (338.8671875, 582.51953125) (322.265625, 640.625)
quad (308.59375, 571.77734375) (283.69140625, 503.90625)
lineto (205.078125, 293.9453125) <=========
{code}
The two commands that I've marked should be "closeto" but they're not.
> Corners of stroked type are inaccurate when rendered as an image
> ----------------------------------------------------------------
>
> Key: PDFBOX-3268
> URL: https://issues.apache.org/jira/browse/PDFBOX-3268
> Project: PDFBox
> Issue Type: Bug
> Components: Rendering
> Affects Versions: 2.0.0
> Environment: Java 8u72, OS X 10.11.3
> Reporter: Jon Wu
> Attachments: PDFBOX-3268-reduced.pdf, abc.pdf, abc1.jpg
>
>
> Using the latest 2.0 SNAPSHOT, converting a PDF with outlined type results in slightly inaccurate strokes. It looks as if the strokes don't always meet completely causing some corners of the rendered type to have double corners.
> For abc1.jpg, it's most visible on the bottom left of most rendered glyphs.
> java -jar pdfbox-app-2.0.0-20160310.194240-1983.jar PDFToImage -dpi 300 abc.pdf
--
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