Skip navigation
Currently Being Moderated

How to get XMP MetaData as an XML String in a process?

Apr 20, 2010 12:57 PM

Hi there,


I have a process where I would like to export a documents XMP MetaData, manipulate the XMP MetaData and then import the MetaData again to the document.


I thougt first I will use the service Name "XMPUtilityService" with the Service Operation "Export XMP" to export the XMP MetaData as a document.

Hoewer I am not sure how to manipulate the output document from the Export XMP service.


When I print out the document.toString() in a execute Script Service I get the following:


<document state="active" senderVersion="0" persistent="false" senderPersistent="false" passivated="false" senderPassivated="false" deserialized="false" senderHostId="null" callbackId="0" senderCallbackId="0" callbackRef="null" isLocalizable="true" isTransactionBound="false" defaultDisposalTimeout="600" disposalTimeout="600" maxInlineSize="65536" defaultMaxInlineSize="65536" inlineSize="3440" contentType="null" length="-1"><cacheId/><localBackendId/><globalBackendId/><senderLocal BackendId/><senderGlobalBackendId/><inline><?xpacket begin="" id="W5M0MpCehiHzreSzNTczkc9d"?>
<x:xmpmeta xmlns:x="adobe:ns:meta/" x:xmptk="A...</inline><senderPullServantJndiName/><attributes/></docu ment>




Actually I expected something like this:


<?xpacket begin="" id="W5M0MpCehiHzreSzNTczkc9d"?>
<x:xmpmeta xmlns:x="adobe:ns:meta/" x:xmptk="Adobe XMP Core 5.0-jc006 DEBUG-1.0, 2009 Jun 23 11:07:21-PDT">
   <rdf:RDF xmlns:rdf="">
      <rdf:Description rdf:about=""
         <pdf:Producer>Adobe LiveCycle PDF Generator ES2</pdf:Producer>
      <rdf:Description rdf:about=""
      <rdf:Description rdf:about=""
         <xmpMM:DocumentID>uuid:0cf2c6c6-2fba-2b39-5fb6-33ad8ccf58aa</xmpMM:Do cumentID>
         <xmpMM:InstanceID>uuid:187bc5a2-acb0-2fa9-711d-33ad8ccf58aa</xmpMM:In stanceID>

<?xpacket end="w"?>


What do I need to do to get the XMPMeta data as an XML String from a document within a process?


Thanks in advance!


  • Currently Being Moderated
    Apr 20, 2010 2:28 PM   in reply to Paul_Kuhn

    The easiest thing is to change the output of the export metadata operation to "variable" and use the green + button to create a variable.


    You'll see that it creates a variable of type XMPUtilityMetadata.


    You can manipulate this variable in xPath and reuse it with the import metadata step.



    Mark as:
  • Currently Being Moderated
    Apr 22, 2010 11:13 AM   in reply to Paul_Kuhn

    You can also use Assembler to extract the metadata.


    I tried with the following ddx and it gave me more information:


    <Metadata result="doc1.xmp"
    <PDF source="doc1.pdf"/>



    Mark as:

More Like This

  • Retrieving data ...

Bookmarked By (0)

Answers + Points = Status

  • 10 points awarded for Correct Answers
  • 5 points awarded for Helpful Answers
  • 10,000+ points
  • 1,001-10,000 points
  • 501-1,000 points
  • 5-500 points