0 Replies Latest reply on Jun 14, 2013 1:03 AM by ClauQU

    How to set metadata by Javascript inside a XDP template

    ClauQU

      Hi,

      I'm writing a template XDP and my need is to set some custom metadata into the generated PDF (I would like these metadata they were in the custom properties of the PDF).

       

      Metadata should be set by an embedded script (Javascript) set to run on client side (in my tests, I've tried to run the script on the Server side too, but nothing changed).

       

      I tried several solutions, but the only thing I managed to get with (almost) success was the display of metadata in the document, but I could not add the metadata that I need:

       

       

      var oMeta = event.target.metadata;

      xfa.host.messageBox(oMeta, "Metadata", 3,0);

       

       

      Please, someone can help me?

       

      Thanks in advance.