Uploaded image for project: 'Service Packs and Hot Fixes'
  1. Service Packs and Hot Fixes
  2. MNT-17722

"SEVERE: An error occured when reading table hmtx" in alfresco.log with PDF2XHTML transformation on some PDF files (PDFBOX-2428)

    Details

    • Type: Service Pack Request
    • Status: Open (View Workflow)
    • Priority: Major
    • Resolution: Unresolved
    • Affects Version/s: 5.1.2.1
    • Fix Version/s: 5.1.N
    • Component/s: Transformations
    • Labels:
      None
    • Environment:
      Alfresco One 5.1.2.1
    • ACT Numbers:

      00816701, 00857310

      Description

      [Description]:

      The issue occurred when reindexing during upgrade from version 4 to 5.1.2 (Stack trace attached). We were not able to reproduce the issue but we can reproduce the exact same error by unit test to highlight the issue is exactly the same as in PDFBOX-2428

      [Steps to reproduce]
      1-) Copy the following Jar files contained from https://artifacts.alfresco.com/nexus/service/local/repositories/thirdparty/content/org/apache/pdfbox/pdfbox/1.8.10-alfresco-patched/pdfbox-1.8.10-alfresco-patched-sources.zip :

      • preflight/target/preflight-1.8.10.jar
      • preflight-app/target/preflight-app-1.8.10.jar
        2-) place the file in <alfresco5.2.0.1_path>/tomcat/webapps/alfresco/WEB-INF/lib
        3-) copy pdf from https://issues.apache.org/jira/browse/PDFBOX-2428 to the same folder
        4-) From the same location run command:
        java -cp * org.apache.pdfbox.preflight.Validator_A1b ttsubset_pdfa.pdf

      [Expected behaviour]

      • No error

      [Observed Behaviour]:

      02:42:25,750 [main] ERROR org.apache.fontbox.ttf.TrueTypeFont  - An error occur
      d when reading table hmtx
      java.io.EOFException
              at org.apache.fontbox.ttf.MemoryTTFDataStream.readSignedShort(MemoryTTF
      ataStream.java:139)
              at org.apache.fontbox.ttf.HorizontalMetricsTable.initData(HorizontalMet
      icsTable.java:62)
      (...)
      

        Attachments

          Activity

            People

            • Assignee:
              repositoryteam Repository Team
              Reporter:
              jguay Julien Guay [X] (Inactive)
            • Votes:
              0 Vote for this issue
              Watchers:
              4 Start watching this issue

              Dates

              • Created:
                Updated: