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

The meta data methods are not working as expected.

    XMLWordPrintableJSON

Details

    • Bug
    • Status: Closed
    • Critical
    • Resolution: Not A Bug
    • 2.0.14
    • None
    • Utilities
    • None
    • java project and JDK 1.8
    • Hide
      static String title = "PDF Title";
      static String keywords = "Keywords";
      static String author = "author";
      static String subject = "subject";

      XMPMetadata xmp = XMPMetadata.createXMPMetadata();
              
       xmp.createAndAddDublinCoreSchema();
       xmp.createAndAddDublinCoreSchema().addCreator( author );
        xmp.createAndAddDublinCoreSchema().addSubject(subject);
              
      xmp.createAndAddAdobePDFSchema().setKeywords(keywords);
      xmp.createAndAddXMPBasicSchema().setCreateDate(new GregorianCalendar());
      xmp.createAndAddXMPBasicSchema().setModifyDate(new GregorianCalendar());
              
       xmp.getDublinCoreSchema().setTitle(title);
       xmp.getDublinCoreSchema().setDescription(title);
      Show
      static String title = "PDF Title"; static String keywords = "Keywords"; static String author = "author"; static String subject = "subject"; XMPMetadata xmp = XMPMetadata.createXMPMetadata();           xmp.createAndAddDublinCoreSchema();  xmp.createAndAddDublinCoreSchema().addCreator( author );   xmp.createAndAddDublinCoreSchema().addSubject(subject);          xmp.createAndAddAdobePDFSchema().setKeywords(keywords); xmp.createAndAddXMPBasicSchema().setCreateDate(new GregorianCalendar()); xmp.createAndAddXMPBasicSchema().setModifyDate(new GregorianCalendar());           xmp.getDublinCoreSchema().setTitle(title);  xmp.getDublinCoreSchema().setDescription(title);

    Description

      When I am trying to insert meta data The methods are miss behaving imge [https://drive.google.com/file/d/1GD5gMNyzF4vlbJ_kF47xPFtP2ITcIfmW/view?usp=sharing.]

      In below doc text I added code What I used. 

      Attachments

        1. Capture.PNG
          18 kB
          Ravikumar

        Activity

          People

            Unassigned Unassigned
            goginenir6 Ravikumar
            Votes:
            0 Vote for this issue
            Watchers:
            2 Start watching this issue

            Dates

              Created:
              Updated:
              Resolved:

              Time Tracking

                Estimated:
                Original Estimate - 24h
                24h
                Remaining:
                Remaining Estimate - 24h
                24h
                Logged:
                Time Spent - Not Specified
                Not Specified