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

Exception when using Preflight validation on PDF/A 1b

    Details

    • Type: Bug
    • Status: Closed
    • Priority: Major
    • Resolution: Fixed
    • Affects Version/s: 1.7.1
    • Fix Version/s: 1.8.0
    • Component/s: Preflight
    • Labels:
      None
    • Environment:
      Windows 7/64 _ Java 1.6.0.29

      Description

      Exception in thread "main" java.lang.NumberFormatException: For input string: "readonly"
      at java.lang.NumberFormatException.forInputString(Unknown Source)
      at java.lang.Integer.parseInt(Unknown Source)
      at java.lang.Integer.parseInt(Unknown Source)
      at org.apache.pdfbox.preflight.font.util.Type1Parser.readCharStringElement(Type1Parser.java:276)
      at org.apache.pdfbox.preflight.font.util.Type1Parser.parseCharStringArray(Type1Parser.java:259)
      at org.apache.pdfbox.preflight.font.util.Type1Parser.parseEExecPart(Type1Parser.java:248)
      at org.apache.pdfbox.preflight.font.util.Type1Parser.decodeAndParseEExecPart(Type1Parser.java:180)
      at org.apache.pdfbox.preflight.font.util.Type1Parser.parse(Type1Parser.java:167)
      at org.apache.pdfbox.preflight.font.descriptor.Type1DescriptorHelper.processFontFile1(Type1DescriptorHelper.java:134)
      at org.apache.pdfbox.preflight.font.descriptor.Type1DescriptorHelper.processFontFile(Type1DescriptorHelper.java:109)
      at org.apache.pdfbox.preflight.font.descriptor.FontDescriptorHelper.validate(FontDescriptorHelper.java:90)
      at org.apache.pdfbox.preflight.font.SimpleFontValidator.processFontDescriptorValidation(SimpleFontValidator.java:76)
      at org.apache.pdfbox.preflight.font.SimpleFontValidator.validate(SimpleFontValidator.java:53)
      at org.apache.pdfbox.preflight.process.reflect.FontValidationProcess.validate(FontValidationProcess.java:58)
      at org.apache.pdfbox.preflight.utils.ContextHelper.callValidation(ContextHelper.java:67)
      at org.apache.pdfbox.preflight.utils.ContextHelper.validateElement(ContextHelper.java:45)
      at org.apache.pdfbox.preflight.process.reflect.ResourcesValidationProcess.validateFonts(ResourcesValidationProcess.java:82)
      at org.apache.pdfbox.preflight.process.reflect.ResourcesValidationProcess.validate(ResourcesValidationProcess.java:65)
      at org.apache.pdfbox.preflight.utils.ContextHelper.callValidation(ContextHelper.java:67)
      at org.apache.pdfbox.preflight.utils.ContextHelper.validateElement(ContextHelper.java:45)
      at org.apache.pdfbox.preflight.process.reflect.SinglePageValidationProcess.validateResources(SinglePageValidationProcess.java:142)
      at org.apache.pdfbox.preflight.process.reflect.SinglePageValidationProcess.validate(SinglePageValidationProcess.java:76)
      at org.apache.pdfbox.preflight.utils.ContextHelper.callValidation(ContextHelper.java:67)
      at org.apache.pdfbox.preflight.utils.ContextHelper.validateElement(ContextHelper.java:45)
      at org.apache.pdfbox.preflight.process.PageTreeValidationProcess.validatePage(PageTreeValidationProcess.java:49)
      at org.apache.pdfbox.preflight.process.PageTreeValidationProcess.validate(PageTreeValidationProcess.java:41)
      at org.apache.pdfbox.preflight.utils.ContextHelper.callValidation(ContextHelper.java:67)
      at org.apache.pdfbox.preflight.utils.ContextHelper.validateElement(ContextHelper.java:79)
      at org.apache.pdfbox.preflight.PreflightDocument.validate(PreflightDocument.java:147)
      at org.apache.pdfbox.preflight.Validator_A1b.main(Validator_A1b.java:58)

        Attachments

        1. test_dep.pdf
          5.29 MB
          Claude Catherine
        2. PDFBOX_1484.patch
          5 kB
          Eric Leleu

          Activity

            People

            • Assignee:
              leleueri Eric Leleu
              Reporter:
              claude30570 Claude Catherine
            • Votes:
              0 Vote for this issue
              Watchers:
              2 Start watching this issue

              Dates

              • Created:
                Updated:
                Resolved: