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

Incorrect property names for lists

    XMLWordPrintableJSON

Details

    • Bug
    • Status: Closed
    • Major
    • Resolution: Fixed
    • 2.0.0
    • 2.0.0
    • Writing, XmpBox
    • None

    Description

      When i write code as follows:

      PDDocument document = PDDocument.load(new File(FILE_PATH));
      DomXmpParser parser = new DomXmpParser();
      XMPMetadata metadata = parser.parse(document.getDocumentCatalog().getMetadata().getStream().getUnfilteredStream());
      metadata.removeSchema(metadata.getPDFIdentificationSchema());
      OutputStream res = new FileOutputStream(RESULT_XML);
      new XmpSerializer().serialize(metadata, res, true);
      

      I got xml which contain following tag:

      <dc:creator>
          <rdf:Seq>
              <rdf:creator>Tomioka, Satoshi</rdf:creator>
          </rdf:Seq>
      </dc:creator>
      

      but instead of rdf:creator must be rdf:li. This problem reproducible also for others DublinCoreShema properties which contains lists.

      Attachments

        1. isis09_04.pdf
          239 kB
          Evgeniy Muravitskiy
        2. restest.xml
          2 kB
          Evgeniy Muravitskiy

        Activity

          People

            msahyoun Maruan Sahyoun
            evgeniy.muravitskiy Evgeniy Muravitskiy
            Votes:
            0 Vote for this issue
            Watchers:
            4 Start watching this issue

            Dates

              Created:
              Updated:
              Resolved: