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

DomXmpParser fails to parse xmp metadata with PRISM data in it

    XMLWordPrintableJSON

Details

    • New Feature
    • Status: Closed
    • Major
    • Resolution: Duplicate
    • 2.0.2
    • None
    • XmpBox
    • None

    Description

      If the rdf stream in the document contains metadata from the PRISM namespace (http://www.prismstandard.org/specifications/2.0/PRISM_prism_namespace_2.0.pdf) , the parser fails with error:

      org.apache.xmpbox.xml.XmpParsingException: Cannot find a definition for the namespace http://prismstandard.org/namespaces/basic/2.0/
      at org.apache.xmpbox.xml.DomXmpParser.checkPropertyDefinition(DomXmpParser.java:859)
      at org.apache.xmpbox.xml.DomXmpParser.parseChildrenAsProperties(DomXmpParser.java:295)
      at org.apache.xmpbox.xml.DomXmpParser.parseDescriptionRoot(DomXmpParser.java:239)
      at org.apache.xmpbox.xml.DomXmpParser.parse(DomXmpParser.java:203)

      Jempbox used to parse this fine.

      Attachments

        1. TestPrismNamespace.java
          6 kB
          Svetlozar Argirov

        Issue Links

          Activity

            People

              Unassigned Unassigned
              zaro Svetlozar Argirov
              Votes:
              1 Vote for this issue
              Watchers:
              3 Start watching this issue

              Dates

                Created:
                Updated:
                Resolved: