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

XMPBox XMPBasicSchema setters don't work if already set

VotersWatch issueWatchersLinkCloneUpdate Comment AuthorReplace String in CommentUpdate Comment VisibilityDelete Comments
    XMLWordPrintableJSON

Details

    • Bug
    • Status: Closed
    • Major
    • Resolution: Fixed
    • 1.8.11, 1.8.12, 2.0.0
    • 1.8.12, 2.0.0
    • XmpBox
    • 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

          This comment will be Viewable by All Users Viewable by All Users
          Cancel

          People

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

            Dates

              Created:
              Updated:
              Resolved:

              Slack

                Issue deployment