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

        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.

          People

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

            Dates

            • Created:
              Updated:
              Resolved: