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

Illegal characters in XML output

    XMLWordPrintableJSON

Details

    • Bug
    • Status: Closed
    • Major
    • Resolution: Fixed
    • 2.0.0
    • 1.8.4, 2.0.0
    • Preflight
    • Bug reproduced under Win 7, Ubuntu

    Description

      When running Preflight in XML mode, the latest Preflight version (I used the JAR from build #747) sometimes produces output that contains characters that are illegal in XML. This can cause unexpected behavior if such files are further processed with tools that expect well-formed XML. See attached PDFs, which all result in illegal characters in the description of a 1.0 Syntax error, Error: Expected a long type. Output of older versions of Preflight didn't contain these illegal characters; instead they would give something like actual='/O', actual='Pages'. etc. So I suppose this must have been caused by a fairly recent change.

      See attachments below.

      Attachments

        1. preflight-app.jar
          7.63 MB
          Johan van der Knijff
        2. 600111.xml
          0.9 kB
          Johan van der Knijff
        3. 600111.pdf
          175 kB
          Johan van der Knijff
        4. 600111_old.xml
          0.6 kB
          Johan van der Knijff
        5. 598659.xml
          1.0 kB
          Johan van der Knijff
        6. 598659.pdf
          275 kB
          Johan van der Knijff
        7. 598659_old.xml
          0.8 kB
          Johan van der Knijff
        8. 1812-additionalPDFs09012014.zip
          6.17 MB
          Johan van der Knijff
        9. 013814.xml
          0.8 kB
          Johan van der Knijff
        10. 013814.pdf
          2.28 MB
          Johan van der Knijff
        11. 013814_old.xml
          0.6 kB
          Johan van der Knijff

        Issue Links

          Activity

            People

              lehmi Andreas Lehmkühler
              johanvanderknijff Johan van der Knijff
              Votes:
              0 Vote for this issue
              Watchers:
              3 Start watching this issue

              Dates

                Created:
                Updated:
                Resolved: