Uploaded image for project: 'PDFBox'
  1. PDFBox
  2. PDFBOX-527

PageDrawer should set clipping region before drawing text

VotersWatch issueWatchersLinkCloneUpdate Comment AuthorReplace String in CommentUpdate Comment VisibilityDelete Comments
    XMLWordPrintableJSON

Details

    • Bug
    • Status: Closed
    • Minor
    • Resolution: Fixed
    • 0.8.0-incubator
    • 0.8.0-incubator
    • PDModel
    • None

    Description

      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.

      Attachments

        1. clip.patch
          0.6 kB
          Andrew Duffy

        Activity

          This comment will be Viewable by All Users Viewable by All Users
          Cancel

          People

            Unassigned Unassigned
            andrew_duffy Andrew Duffy
            Votes:
            0 Vote for this issue
            Watchers:
            0 Start watching this issue

            Dates

              Created:
              Updated:
              Resolved:

              Slack

                Issue deployment