Expand my Community achievements bar.

Dive into Adobe Summit 2024! Explore curated list of AEM sessions & labs, register, connect with experts, ask questions, engage, and share insights. Don't miss the excitement.

How to add metadata into XDP form

Avatar

Level 2

Hi,

I am new to LiveCycle Designer. Wondering if there is a way to add PDF metadata into XDP form?

I tried adding it into the XML source under the <x:xmpmeta> section, but the rendered PDF output file lost the metadata I added in the XDP.

<x:xmpmeta xmlns:x="adobe:ns:meta/" x:xmptk="Adobe XMP Core 4.2.1-c041 52.337767, 2008/04/13-15:41:00        ">

   <rdf:RDF xmlns:rdf="http://www.w3.org/1999/02/22-rdf-syntax-ns#">

      <rdf:Description xmlns:xmp="http://ns.adobe.com/xap/1.0/" rdf:about="">

         <xmp:ModifyDate>2009-09-14T15:44:32+05:30</xmp:ModifyDate>

         <xmp:CreateDate>2009-09-14T15:44:31+05:30</xmp:CreateDate>

         <xmp:MetadataDate>2010-12-08T19:42:13Z</xmp:MetadataDate>

         <xmp:CreatorTool>Adobe LiveCycle Designer ES 8.2</xmp:CreatorTool>

      </rdf:Description>

      <rdf:Description xmlns:xmpMM="http://ns.adobe.com/xap/1.0/mm/" rdf:about="">

         <xmpMM:DocumentID>uuid:129e34eb-49a8-43f4-a934-43f67f5d6891</xmpMM:DocumentID>

         <xmpMM:InstanceID>uuid:ee103292-b266-4bb8-b1d1-71d29fe339e2</xmpMM:InstanceID>

      </rdf:Description>

      <rdf:Description xmlns:dc="http://purl.org/dc/elements/1.1/" rdf:about="">

         <dc:format>application/pdf</dc:format>

      </rdf:Description>

      <rdf:Description xmlns:pdf="http://ns.adobe.com/pdf/1.3/" rdf:about="">

         <pdf:Producer>Adobe LiveCycle Designer ES 8.2</pdf:Producer>

      </rdf:Description>

      <rdf:Description xmlns:ABC="ABC (http://www.abc.com)" rdf:about="">

         <ABC:XYZ>&lt;?xml version="1.0" encoding="utf-8"?&gt;

&lt; xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance" xmlns:xsd="http://www.w3.org/2001/XMLSchema" xmlns="http://www.abc.net/API/3.0"&gt;


... ...


</ABC:XYZ>

      </rdf:Description>

      <rdf:Description xmlns:desc="http://ns.adobe.com/xfa/promoted-desc/" rdf:about="">

         <desc:version rdf:parseType="Resource">

            <rdf:value>8.0.1291.1.339988.308172</rdf:value>

            <desc:ref>/template/subform[1]</desc:ref>

         </desc:version>

      </rdf:Description>

   </rdf:RDF>

</x:xmpmeta>

Appreciated!

lcfun

5 Replies

Avatar

Level 10

You will need to manipulate the template.

John Brinkman decribed how this can be done:

http://blogs.adobe.com/formfeed/2009/05/template_transformation.html

Avatar

Level 2

Thanks! I need to save the form as XDP and this technique doesn't work with XDP.

Avatar

Level 10

Hmm, why should it not work?

In Designer you generally work with XDP.

The only difference is the file format you can select when you save the forms.

Avatar

Level 2

The document states: "It also does not work when you save as .XDP.  "

My form needs to be saved as .XDP.

Avatar

Level 10

Ohh, I see.

But I think you can do this in a workaround with PDF, like the following.

1. Load a form in Designer

2. Delete possibly existing metadata in the XML Source <desc> ... </desc>

3. Add fragment with the scripting for the metadata changes

4. Save as PDF

5. Close the PDF

6. Reopen the PDF

7. Save as XDP