You are viewing a plain text version of this content. The canonical link for it is here.
Posted to dev@pdfbox.apache.org by "Andreas Lehmkühler (JIRA)" <ji...@apache.org> on 2008/11/10 14:30:44 UTC
[jira] Commented: (PDFBOX-321) PDF printing or conversion : lines
are too thick - SOLVED ?
[ https://issues.apache.org/jira/browse/PDFBOX-321?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=12646262#action_12646262 ]
Andreas Lehmkühler commented on PDFBOX-321:
-------------------------------------------
The class org.pdfbox.util.operator.pagedrawer.AppendRectangleToPath was redesigned with sf-version 1.4 and I guess the problem is fixed. I suggest to close this issue as solved.
> PDF printing or conversion : lines are too thick - SOLVED ?
> -----------------------------------------------------------
>
> Key: PDFBOX-321
> URL: https://issues.apache.org/jira/browse/PDFBOX-321
> Project: PDFBox
> Issue Type: Bug
> Components: Writing
>
> [imported from SourceForge]
> http://sourceforge.net/tracker/index.php?group_id=78314&atid=552832&aid=1824739
> Originally submitted by gdeshors on 2007-11-02 09:12.
> I'm starting to use PDFBox, and I find it a great tool.
> The problem I detected is the following : when printing a PDF or converting it into an image, the table borders become too thick, which is unpretty. It probably is the case for all the lines drawn in the document.
>
> To illustrate this, I've uploaded an screenshot of
> - the original document : http://glcomp.free.fr/images/pdfbox/orig.png
> - and the document rendered by PDFBox (printed via PDF995) : http://glcomp.free.fr/images/pdfbox/final.png
>
> (nota : I've put the PDF documents as well : http://glcomp.free.fr/images/pdfbox/ )
>
> Steps to reproduce :
> 1/ take my document and convert it to image, or print it via PDFBox (let's say "PDFToImage -imageTypeJpg orig.pdf")
> 2/ on produced image orig1.jpg the lines are thicker than on original document.
> --------- SOLUTION ?
> I seem to have found the problem, though it seems a little too evident and maybe I'm afraid to be missing a trick...
> In the class org.pdfbox.util.operator.pagedrawer.AppendRectangleToPath#process method, which actually draws the rectangles, the x2 and y2 coordinates have an apparently useless '+1' on lines 67 and 68. I didn't see a reason for this, and when I remove these it works much better, for all the documents I tried.
> I'm uploading a patch to be crystal clear about the changes I propose.
> Sincerely,
> Guillaume Deshors
> [attachment on SourceForge]
> http://sourceforge.net/tracker/download.php?group_id=78314&atid=552832&aid=1824739&file_id=252546
> patch_AppendRectangleToPath.txt (text/plain), 296 bytes
> Patch to fix bug of thick lines
--
This message is automatically generated by JIRA.
-
You can reply to this email to add a comment to the issue online.