ICEpdf
  1. ICEpdf
  2. PDF-446

Problems rendering text encoded using PDFlib+PDI 7.0.2

    Details

    • Type: Bug Bug
    • Status: Closed
    • Priority: Major Major
    • Resolution: Fixed
    • Affects Version/s: 4.3.2
    • Fix Version/s: 4.3.3
    • Component/s: Core/Parsing
    • Labels:
      None
    • Environment:
      any

      Description

      The file in question is on the support drive. The PDF parses without error but only first text block is rendered. Closer inspection of the content stream shows the the font and font size is only specified for first text block. Normally the font and font size is specified at the start of new text block. This however does not seem to be causing the issue. Further investigation is need to figure out where the text is being drawn.

      I have verified that the text is correct parsed and stored in the PageText data structure and is being painted. So it is likely the text is being painted off screen or at an incorrect scale or colour.

        Activity

        Patrick Corless created issue -
        Repository Revision Date User Message
        ICEsoft Public SVN Repository #30237 Wed Jul 25 13:06:34 MDT 2012 patrick.corless PDF-446 added applyTextScaling to the start of a new text block to insure that the coordinate space is correctly setup if "tz" is not specified.
        Files Changed
        Commit graph MODIFY /icepdf/trunk/icepdf/core/src/org/icepdf/core/util/ContentParser.java
        Hide
        Patrick Corless added a comment -

        Figuring this one out took quite a bit of time but I found the problem. As mentioned in the original comment that the text blocks in this document did not specify the font at the start of each block. It turns out the they don't also specify the text size as well which is responsible in this case fore getting the coordinate system lined up between text blocks.

        Marking as resolved.

        Show
        Patrick Corless added a comment - Figuring this one out took quite a bit of time but I found the problem. As mentioned in the original comment that the text blocks in this document did not specify the font at the start of each block. It turns out the they don't also specify the text size as well which is responsible in this case fore getting the coordinate system lined up between text blocks. Marking as resolved.
        Patrick Corless made changes -
        Field Original Value New Value
        Status Open [ 1 ] Resolved [ 5 ]
        Resolution Fixed [ 1 ]
        Repository Revision Date User Message
        ICEsoft Public SVN Repository #30280 Thu Jul 26 14:07:10 MDT 2012 patrick.corless PDF-446 updated tz processing to only record the value when a tz is outside of a text block and not apply the scale value to the CTM.
        Files Changed
        Commit graph MODIFY /icepdf/trunk/icepdf/core/src/org/icepdf/core/util/ContentParser.java
        Patrick Corless made changes -
        Status Resolved [ 5 ] Closed [ 6 ]

          People

          • Assignee:
            Patrick Corless
            Reporter:
            Patrick Corless
          • Votes:
            0 Vote for this issue
            Watchers:
            0 Start watching this issue

            Dates

            • Created:
              Updated:
              Resolved: