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

Incorrect property names for lists

    Details

    • Type: Bug
    • Status: Closed
    • Priority: Major
    • Resolution: Fixed
    • Affects Version/s: 2.0.0
    • Fix Version/s: 2.0.0
    • Component/s: Writing, XmpBox
    • Labels:
      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

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

              Dates

              • Created:
                Updated:
                Resolved: