Hello,

Looking at the XMP Specification Part 1, section 7.2 Qualifiers I see in 
example 2 a way to capture additional general qualifier metadata.

Snippet from XMP Specification Part 1:
<rdf:RDF xmlns:rdf="http://www.w3.org/1999/02/22-rdf-syntax-ns#";
  (c)Adobe Systems Incorporated, 2010 23
  xmlns:dc="http://purl.org/dc/elements/1.1/";
  xmlns:xmp="http://ns.adobe.com/xap/1.0/";
  xmlns:xe="http://ns.adobe.com/xmp-example/";>
<!-- elements removed for brevity -->
    <dc:subject>
      <rdf:Bag>
        <rdf:li>XMP</rdf:li>
        <rdf:li>
          <rdf:Description>
            <rdf:value>metadata</rdf:value>
            <xe:qualifier>artificial example</xe:qualifier>
          </rdf:Description>
        </rdf:li>
        <rdf:li>ISO standard</rdf:li>
      </rdf:Bag>
    </dc:subject>
  </rdf:Description>
</rdf:RDF>

I created a XmpQualifier object with a method that outputs the RDF/XML for the 
qualifiers.
<plm:car>
  <rdf:Bag>
    <rdf:li>
      <rdf:Description xmlns:rdf="http://www.w3.org/1999/02/22-rdf-syntax-ns#";>
        <rdf:value>Automobile</rdf:value>
        <plm:color 
xmlns:plm="http://something.llnl.gov/elements";>red</plm:color>
        <plm:model xmlns:plm="http:// 
something.llnl.gov/elements">Valiant</plm:model>
        <plm:model_year xmlns:plm="http:// 
something.llnl.gov/elements">1962</plm:model_year>
      </rdf:Description>
    </rdf:li>
  </rdf:Bag>
</plm:car>

Then convert all of the brackets and quotes back to <>" because the XmpSchema 
and XmpArray methods convert these values to XML entities. When I output the 
PDF the data is in the XMP but has been converted to a RDF li parse type = 
"Resource" and changes the name space XPath ID to plm_1_ from the original plm.

         <plm:car>
            <rdf:Bag>
               <rdf:li rdf:parseType="Resource">
                  <rdf:value>Automobile</rdf:value>
                  <plm_1_:color>red</plm_1_:color>
                  <plm_1_:model>Valiant</plm_1_:model>
                  <plm_1_:model_year>1962</plm_1_:model_year>
               </rdf:li>
            </rdf:Bag>
         </plm:car>

I am concerned that RDF/XML structure is being modified. Is there a better way 
to add the qualifier data?

As I recall I found an example that  uses iText that indicated that "iText" 
went in one metadata field and "my app name" went in another. I believe that it 
went on to talk about licensing issues. Alas I haven't been able to find it 
again.

Thanks,

Chris Lindberg

------------------------------------------------------------------------------
Special Offer -- Download ArcSight Logger for FREE!
Finally, a world-class log management solution at an even better 
price-free! And you'll get a free "Love Thy Logs" t-shirt when you
download Logger. Secure your free ArcSight Logger TODAY!
http://p.sf.net/sfu/arcsisghtdev2dev
_______________________________________________
iText-questions mailing list
iText-questions@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/itext-questions

iText(R) is a registered trademark of 1T3XT BVBA.
Many questions posted to this list can (and will) be answered with a reference 
to the iText book: http://www.itextpdf.com/book/
Please check the keywords list before you ask for examples: 
http://itextpdf.com/themes/keywords.php

Reply via email to