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

PDF/A file is declared invalid on windows and valid with linux

    Details

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

      Description

      The testing the attached file on windows, it is considered as an invalid PDF/A with that error :

      The fileOPM_pdfa.pdf is not valid, error(s) :
      1.1 : Body Syntax error, Second line must contains at least 4 bytes greater than 127

      The same file is valid in a linux environment.

      I think the problem comes from a defined charset in PreflightParser. The attached patch fixes the problem.

        Attachments

        1. PDFB1477.patch
          3 kB
          Eric Leleu
        2. win.patch
          1 kB
          Guillaume Bailleul
        3. OPM_pdfa.pdf
          22 kB
          Guillaume Bailleul

          Activity

            People

            • Assignee:
              gbm.bailleul Guillaume Bailleul
              Reporter:
              gbm.bailleul Guillaume Bailleul
            • Votes:
              0 Vote for this issue
              Watchers:
              1 Start watching this issue

              Dates

              • Created:
                Updated:
                Resolved: