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

XMPBox XMPBasicSchema setters don't work if already set

    Details

    • Type: Bug
    • Status: Closed
    • Priority: Major
    • Resolution: Fixed
    • Affects Version/s: 1.8.11, 1.8.12, 2.0.0
    • Fix Version/s: 1.8.12, 2.0.0
    • Component/s: XmpBox
    • Labels:
      None

      Description

      This is a follow-up for PDFBOX-3257 but for XMPBox.

              DomXmpParser xmpParser = new DomXmpParser();
              xmpParser.setStrictParsing(false);
              InputStream is = meta.createInputStream();
              org.apache.xmpbox.XMPMetadata xmp = xmpParser.parse(is);
              is.close();
              XMPBasicSchema basic = xmp.getXMPBasicSchema();
              Calendar createDate = basic.getCreateDate();
              System.out.println(createDate);
              basic.setCreateDate(new GregorianCalendar());
              createDate = basic.getCreateDate();
              System.out.println(createDate);
      

      This outputs twice the same

        Attachments

          Issue Links

            Activity

              People

              • Assignee:
                tilman Tilman Hausherr
                Reporter:
                tilman Tilman Hausherr
              • Votes:
                0 Vote for this issue
                Watchers:
                2 Start watching this issue

                Dates

                • Created:
                  Updated:
                  Resolved: