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

Dublin Core: Title not defined

    XMLWordPrintableJSON

Details

    • Bug
    • Status: Open
    • Minor
    • Resolution: Unresolved
    • 1.8.8
    • None
    • Preflight

    Description

      Validating a PDF for A1 compatibility, I get an error:

      Error on MetaData, Title present in the document catalog dictionary can't be found in XMP information (Property is not defined)

      Yet when I look at the file, the property is defined as such:

            <dc:title>
              <rdf:Alt>
                <dc:li>Rechnung 14512-14-001</dc:li>
              </rdf:Alt>
            </dc:title>
      

      The code that sets the title (in order to make sure it's the same as the one from the document information):

              DublinCoreSchema dublinCore = xmp.createAndAddDublinCoreSchema();
              dublinCore.setTitle("x-default", docInfo.getTitle());
      

      Setting the creator via DublinCoreSchema seems to work as it doesn't raise the error anymore after calling

      dublinCore.addCreator(docInfo.getAuthor());

      .

      Attachments

        1. PDFBOX-2659.diff
          10 kB
          Andreas
        2. pdf1a.xml
          7 kB
          Marcus Ilgner
        3. invoice_patched.pdf
          62 kB
          Marcus Ilgner
        4. invoice_old.pdf
          62 kB
          Marcus Ilgner
        5. invoice_converted.pdf
          62 kB
          Marcus Ilgner

        Activity

          People

            Unassigned Unassigned
            milgner Marcus Ilgner
            Votes:
            0 Vote for this issue
            Watchers:
            3 Start watching this issue

            Dates

              Created:
              Updated: