ICEpdf
  1. ICEpdf
  2. PDF-648

Bad widths encoded in PDF file

    Details

    • Type: Bug Bug
    • Status: Closed
    • Priority: Major Major
    • Resolution: Fixed
    • Affects Version/s: 5.0.3
    • Fix Version/s: 5.0.4
    • Component/s: Font Engine
    • Labels:
      None
    • Environment:
      any
    • Salesforce Case Reference:

      Description

      The client has provided a sample file that has no embedded fonts. They also included a font file that is installed on the clients machines. When rendered the font in question has been horizontally scaled with values defined in the fonts "width" entry in the PDF notation.

      The widths defined in the "width" entry are quite different then the widths defined in the font program. The specification says that the font width should match the width entry. I have a potential fix that only applies the width entry if there isn't a fontDescriptor as there is some mention in the spec that the width should be ignored if the font descriptor is present. Will need to run this through QA to know for sure.

        Activity

        Patrick Corless made changes -
        Status Resolved [ 5 ] Closed [ 6 ]
        Patrick Corless made changes -
        Status Open [ 1 ] Resolved [ 5 ]
        Resolution Fixed [ 1 ]
        Hide
        Patrick Corless added a comment -

        Finally based QA with a fix that excludes OpenType fonts from having PDF width values applied. Fixed check in on 5.0.1 branch and trunk.

        Show
        Patrick Corless added a comment - Finally based QA with a fix that excludes OpenType fonts from having PDF width values applied. Fixed check in on 5.0.1 branch and trunk.
        Repository Revision Date User Message
        ICEsoft Public SVN Repository #38233 Thu Sep 19 13:57:08 MDT 2013 patrick.corless PDF-648 addition of first and last char parsing to abstract font.
        Files Changed
        Commit graph MODIFY /icepdf/trunk/icepdf/core/src/org/icepdf/core/pobjects/fonts/Font.java
        Repository Revision Date User Message
        ICEsoft Public SVN Repository #38232 Thu Sep 19 13:56:58 MDT 2013 patrick.corless PDF-648 addition of first and last char parsing to abstract font.
        Files Changed
        Commit graph MODIFY /icepdf/branches/icepdf-5.0.1/icepdf/core/src/org/icepdf/core/pobjects/fonts/Font.java
        Arran Mccullough made changes -
        Field Original Value New Value
        Salesforce Case Reference 5007000000VJONSAA5
        Patrick Corless created issue -

          People

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

            Dates

            • Created:
              Updated:
              Resolved: