You are viewing a plain text version of this content. The canonical link for it is here.
Posted to dev@pdfbox.apache.org by "Andrew Duffy (JIRA)" <ji...@apache.org> on 2009/09/12 13:46:57 UTC
[jira] Created: (PDFBOX-527) PageDrawer should set clipping region
before drawing text
PageDrawer should set clipping region before drawing text
---------------------------------------------------------
Key: PDFBOX-527
URL: https://issues.apache.org/jira/browse/PDFBOX-527
Project: PDFBox
Issue Type: Bug
Components: PDModel
Affects Versions: 0.8.0-incubator
Reporter: Andrew Duffy
Priority: Minor
Attachments: clip.patch
When PageDrawer.java strokes or fills a path, or when it draws an image via Invoke or BeginInlineImage, it sets the clipping region of its graphics object prior to drawing. However, when it draws text it doesn't, so a prior image or stroke operation can result in text being clipped. The PDF attached to https://issues.apache.org/jira/browse/PDFBOX-522 displays this when the patch in 522 is applied.
--
This message is automatically generated by JIRA.
-
You can reply to this email to add a comment to the issue online.
[jira] Updated: (PDFBOX-527) PageDrawer should set clipping region
before drawing text
Posted by "Andrew Duffy (JIRA)" <ji...@apache.org>.
[ https://issues.apache.org/jira/browse/PDFBOX-527?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel ]
Andrew Duffy updated PDFBOX-527:
--------------------------------
Attachment: clip.patch
The attached patch sets the clipping region prior to drawing text.
> PageDrawer should set clipping region before drawing text
> ---------------------------------------------------------
>
> Key: PDFBOX-527
> URL: https://issues.apache.org/jira/browse/PDFBOX-527
> Project: PDFBox
> Issue Type: Bug
> Components: PDModel
> Affects Versions: 0.8.0-incubator
> Reporter: Andrew Duffy
> Priority: Minor
> Attachments: clip.patch
>
>
> When PageDrawer.java strokes or fills a path, or when it draws an image via Invoke or BeginInlineImage, it sets the clipping region of its graphics object prior to drawing. However, when it draws text it doesn't, so a prior image or stroke operation can result in text being clipped. The PDF attached to https://issues.apache.org/jira/browse/PDFBOX-522 displays this when the patch in 522 is applied.
--
This message is automatically generated by JIRA.
-
You can reply to this email to add a comment to the issue online.
[jira] Resolved: (PDFBOX-527) PageDrawer should set clipping region
before drawing text
Posted by "Andreas Lehmkühler (JIRA)" <ji...@apache.org>.
[ https://issues.apache.org/jira/browse/PDFBOX-527?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel ]
Andreas Lehmkühler resolved PDFBOX-527.
---------------------------------------
Resolution: Fixed
We have to set the clipping path before every drawing operation, as I already mentioned in PDFBOX-483. Obviously I missed at least one situation.
Thanks to Andrew for his patch, it works fine. I've added it with version 814294.
> PageDrawer should set clipping region before drawing text
> ---------------------------------------------------------
>
> Key: PDFBOX-527
> URL: https://issues.apache.org/jira/browse/PDFBOX-527
> Project: PDFBox
> Issue Type: Bug
> Components: PDModel
> Affects Versions: 0.8.0-incubator
> Reporter: Andrew Duffy
> Priority: Minor
> Attachments: clip.patch
>
>
> When PageDrawer.java strokes or fills a path, or when it draws an image via Invoke or BeginInlineImage, it sets the clipping region of its graphics object prior to drawing. However, when it draws text it doesn't, so a prior image or stroke operation can result in text being clipped. The PDF attached to https://issues.apache.org/jira/browse/PDFBOX-522 displays this when the patch in 522 is applied.
--
This message is automatically generated by JIRA.
-
You can reply to this email to add a comment to the issue online.