How to import XMP metadata in pdf

Could you please explain me, how to import XMP metadata in pdf file through "Live Cycle ES"?

Yes, with LiveCycle ES (almost) all services can be invoked from any of the available endpoints (watch folder, EJB, WebService, etc).
In this case since the ImportXMP requires two input files (the PDF and the XMP) you will need to drop a directory containing both of your files into the watch folder (not the individual files). This is because several requests can be dropped into the watch folder at the same time and without the sub directories LiveCycle couldn't tell what XMP when with what PDF.
A com.adobe.idp.Document - AKA: Document - object is one of the common object types used across all LiveCycle products. When you deal with PDFs and many other binary file objects they are stored a Document object. It is more important that you know this when using Workbench, web services or the Java API.
You should have a look at the documentation at: http://livedocs.adobe.com/livecycle/8.2/programLC/programmer/help/001553.html

Similar Messages

  • How to import XMP Metadata?

    Could you please explain me, how to import XMP metadata in pdf file through "Live Cycle ES"?

    > Please give any samples.
    As I said, the samples are in the API Reference. All you have to do is look them up.

  • Import XMP Metadata From File

    In Beta4, the Import XMP Metadata From File command would import data found in an xmp file.
    In V1, it's not working...or am I missing something.
    (I do understand that Export XMP to File will write the data into the image file itself.)
    Ideas?
    Pete

    Here's a sample xmp I created...in case it's wrong..but it was working in B4.<br /><br /><x:xmpmeta xmlns:x="adobe:ns:meta/" x:xmptk="Adobe XMP Toolkit 3.3-016, build -num-, -date-"><br /> <rdf:RDF xmlns:rdf="http://www.w3.org/1999/02/22-rdf-syntax-ns#"><br />   <rdf:Description rdf:about=""<br /> xmlns:dc="http://purl.org/dc/elements/1.1/"><br />    <dc:description><br />     <rdf:Alt><br />      <rdf:li xml:lang="x-default">: Geese at sunset. Finley National Wildlife Refuge, Oregon</rdf:li><br />     </rdf:Alt><br />    </dc:description><br />    <dc:creator><br />     <rdf:Seq><br />      <rdf:li xml:lang="x-default">Peter K. Ziminski</rdf:li><br />     </rdf:Seq><br />    </dc:creator><br />    <dc:rights><br />     <rdf:Alt><br />      <rdf:li xml:lang="x-default">Peter K. Ziminski</rdf:li><br />     </rdf:Alt><br />    </dc:rights><br />    <dc:subject><br />     <rdf:Bag><br />      <rdf:li>Sunrises and Sunsets</rdf:li><br />      <rdf:li>Birds</rdf:li><br />      <rdf:li>Landscapes</rdf:li><br />      <rdf:li>Animals</rdf:li><br />      <rdf:li>Oregon</rdf:li><br />      <rdf:li>Finley National Wildlife Refuge</rdf:li><br />     </rdf:Bag><br />    </dc:subject><br />   </rdf:Description><br />   <rdf:Description rdf:about=""<br />    xmlns:Iptc4xmpCore="http://iptc.org/std/Iptc4xmpCore/1.0/xmlns/"><br />     <Iptc4xmpCore:Location>Finley National Wildlife Refuge, Oregon</Iptc4xmpCore:Location><br />    </rdf:Description><br /> </rdf:RDF><br /></x:xmpmeta>

  • Import XMP Metadata Kills My Image Edits

    I imported a batch of JPGs from a recent trip and happily used LR to rank them, add labels and adjust them in the Develop module. Later, when LR was not running, I used another program to modify some of the embedded meta data in these JPGs (in particular the dates).
    On my next visit to LR I used the Import XMP Metadata From File command, hoping to get LR to recognize the modified dates. This turned out to be a big mistake. All my previous ranking, labeling and developing was lost. Oh dear.
    I guess I was under the impression that the Import XMP Metadata From File command would synchronize the metadata in the files with the metadata in the database. It appears to have simply replaced the database values with what was in the file. So is this a bug or did I just misunderstand the feature?

    Last history state? See
    Loading metadata resets Develop settings.
    >I can go back to Develop and "back up" because the history is all there, but this would have to be done file by file,
    Don
    Don Ricklin, MacBook 1.83Ghz Duo 2 Core running 10.4.8 & Win XP, Pentax *ist D
    http://donricklin.blogspot.com/

  • How to import XMP-MP metadata into organizer

    I have a fairly large number of photos with face tag metadata.  Since Adobe is part of the working group that developed the XMP metadata standard, imagine my surprise to find out that Photoshop Elements 11 doesn't use it!
    Is there any external program you guys know about to import face tag metadata into the organizer?  I used Windows Photo Gallery to do the face tagging and it properly writes the metadata to the XMP fields.  Problem is the photoshop organizer doesn't read the XMP fields!  It's using it's own standard(?)
    We are talking thousands of photos here so re-tagging is just not an option.  Is there a way to get photoshop to import the tags and regions?
    Struggling User

    I think most of us who deal with large amounts of photos usually have a multi-application approach to things.  No one application does it all.  I crossed the 10,000 image point some time back and the thought of face tagging all that again makes me more than a little queasy!
    I looked at PSE 11's organizer and realized it was very close to what I want.  I'm going to use PSE for pixel editing anyway so it looks like an ideal one-size-fits-all application.  However, of course I now know PSE doesn't use tags in the same way as others.  So it's just a deal breaker plain and simple.
    Right now I use:
    Photo Gallery (formerly Window Live Photo Gallery) for organization and face tagging and subject tagging
    GeoSetter for location tagging by the way it recognizes the Microsoft face tag data so I can use the people tags to sort in that app too
    ExifTool for metadata manipulation where needed (camera data or other interesting info)Also note the ExifToolGUI (no longer maintained also recognizes the Microsoft face tag metadata)
    Photoshop Elements for pixel editing
    I use the face tags as keyword tags so you get a double benifit.  The big deal of course however is the face region tag.  Having a picture of many people and a separate list of keywords isn't helpful.  You only know that John Smith is in the photo somewhere but you don't know which person he is!  Like you said however, it's not important to everyone.
    I will keep researching this.  I'm betting someone has written an app to extract one set of data and make it available to another app.

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

    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/><senderLocalBackendId/><senderGl obalBackendId/><inline><?xpacket begin="" id="W5M0MpCehiHzreSzNTczkc9d"?>
    <x:xmpmeta xmlns:x="adobe:ns:meta/" x:xmptk="A...</inline><senderPullServantJndiName/><attributes/></document>
    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="http://www.w3.org/1999/02/22-rdf-syntax-ns#">
          <rdf:Description rdf:about=""
                xmlns:pdf="http://ns.adobe.com/pdf/1.3/">
             <pdf:Producer>Adobe LiveCycle PDF Generator ES2</pdf:Producer>
          </rdf:Description>
          <rdf:Description rdf:about=""
                xmlns:xmp="http://ns.adobe.com/xap/1.0/">
             <xmp:ModifyDate>2010-04-20T20:43:59+02:00</xmp:ModifyDate>
             <xmp:MetadataDate>2010-04-20T20:43:59+02:00</xmp:MetadataDate>
          </rdf:Description>
          <rdf:Description rdf:about=""
                xmlns:xmpMM="http://ns.adobe.com/xap/1.0/mm/">
             <xmpMM:DocumentID>uuid:0cf2c6c6-2fba-2b39-5fb6-33ad8ccf58aa</xmpMM:DocumentID>
             <xmpMM:InstanceID>uuid:187bc5a2-acb0-2fa9-711d-33ad8ccf58aa</xmpMM:InstanceID>
          </rdf:Description>
       </rdf:RDF>
    </x:xmpmeta>
    <?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!
    Paul

    Hi,
    thanks for the answer.
    I know that I can retrieve the XMPUtilityMetadata object, but this object provides only access to a few information suche as creator, subject, producer, etc.
    However I would like to retrieve the whole XML String of the XMP Metadata.
    How is this possible?
    Thanks.
    Paul

  • Incrementally appending  custom XMP metadata into PDF files

    I have a problem writing custom XMP metadata into a PDF document (I'm using the XMP Toolkit SDK).
    The problem is that I don't know whether is possible to expand the XMP packet in order to append metadata incrementally into the document, and, if it is possible, I don't know how to do it. The program I wrote succesfully appends an item to an array four times, but it fails when trying to append the fifth one. The reason obviously is that the packet gets full and there is not room for more metadata. The error message, if I force the PutXMP call, is:
    ERROR: Can't fit into specified packet size
    So, what can I do? How to enlarge the packet or make it expandable? Or, otherwise, have I to inject a new XMP packet with the up-to-date information in it? How?
    And a last question: Have I to scan for packets when dealing with PDF files? No smart handlers are available for this kind of files?
    Thanks in advance.
    Xabier Artola.
    Univ. of the Basque Country.

    Were you able to find a solution to this problem? I am having the same issue.
    Jason

  • C++ code to get XMP metadata from pdf files ??

    Hi,
    I am new to this field and now I have to write a C++ code which will read the XMP metadata from any pdf files. Could anyone please tell me how to do that or where to start? Is there any sample code available for that?
    I am reading the Programmer's guide and XMP specification to have the whole idea.
    I really appriciate your help. Thanks in advance.
    Regards,
    Suranjit Paul

    Hi,
    The same code for reading other formats will go for Pdf too.
    Only difference is while reading PDF it is not calling any smart filters.

  • [CS3 JS] How to force XMP metadata update for a thumbnail?

    Hi Folks,
    In a JavaScript in Bridge CS3, I'm updating a value in the XMP metadata for a Thumbnail. Later in the script I want to read the updated XMP metadata information from the Thumbnail, but often Bridge hasn't updated the metadata by the time I read it. In other words, my script reads the value prior to the update. I'm guessing there's a caching issue going on.
    I'm new to Bridge scripting, and I am hoping someone here can offer suggestions on how I can (or, even *if* I can) force Bridge to update the XMP metadata cache for a file so that when I read it later in the script it will reflect the recent changes. I've tried using Thumbnail.refresh(), but that doesn't seem to do the trick. I don't mind a slower script, I just want to be able to read the correct value.
    Thanks in advance for any help!
    -- Jim

    Hi David,
    I'm running this script on a MacBook Pro, 2.5GHz, 4GB RAM.
    Here is a sample JSX that shows the issue I'm having:
    #target "bridge-2.0"
    main();
    function main() {
        if( xmpLib == undefined ) {
            var pathToLib = Folder.startup.fsName + "/AdobeXMPScript.framework";
            var libfile = new File( pathToLib );
            var xmpLib = new ExternalObject("lib:" + pathToLib );
        var myValue = "Headline Test";
        var myFilePath = "~/Desktop/TestFile.tif";
        var curHeadlineStr = XMPGetHeadline(myFilePath);
        $.writeln("Headline value: \"" +  curHeadlineStr + "\"");
        XMPWriteHeadline(myFilePath, myValue);
        // *** I would like to refresh the cache here ***
        curHeadlineStr = XMPGetHeadline(myFilePath);
        $.writeln("Headline value: \"" +  curHeadlineStr + "\"");
    function XMPGetHeadline(theFilePath) {
        var thumb = new Thumbnail(File (theFilePath) );
        md = thumb.synchronousMetadata;   
        xmp = new XMPMeta(md.serialize());
        var myHeadlineXMPProp = xmp.getProperty
            (XMPConst.NS_PHOTOSHOP, "Headline", XMPConst.STRING);
        return myHeadlineXMPProp;
    function XMPWriteHeadline(theFilePath, theTextStr){
        var thumb = new Thumbnail(File (theFilePath) );
        md = thumb.synchronousMetadata;   
        xmp = new XMPMeta(md.serialize());
        var myOrigHeadlineXMPProp = xmp.getProperty
            (XMPConst.NS_PHOTOSHOP, "Headline", XMPConst.STRING);
        xmp.deleteProperty(XMPConst.NS_PHOTOSHOP, "Headline");
        xmp.setProperty(XMPConst.NS_PHOTOSHOP, "Headline", theTextStr, 0, XMPConst.STRING);
        var updatedPacket = xmp.serialize
            (XMPConst.SERIALIZE_OMIT_PACKET_WRAPPER | XMPConst.SERIALIZE_USE_COMPACT_FORMAT);
        thumb.metadata = new Metadata(updatedPacket);
    To run this script, in main(), set the myFilePath variable to the path of a file that has an "IPTC Code" "Headline" property.
    This script, when run, sets the "Headline" property value to the value of myValue. After runing the script for the first time, take a look at the console log. You should see that Headline value displayed does not change between the two console entries. My log looks like this after the first run:
      Headline value: "undefined"
      Headline value: "undefined"
    The thing is, the second entry in the console listing, above, was created after the Headline value was set by XMPWriteHeadline(). The two values should be different between the two console entries.
    If you run the script a second time against the same file, you will see that the Headline value does contain the value that was written in the first run of the script--it just took some time to update the cache, I'm guessing. Here's the second run's log:
      Headline value: "Headline Test"
       Headline value: "Headline Test"
    So, what I'm looking for is a way to insert code (where the comment line "//*** I would like to refresh the cache here ***" appears), to force Bridge CS3 to refresh its cache so that when I call XMPGetHeadline() after calling XMPWriteHeadline(), the Headline value will return the value that was just written.
    I hope this is clear enough...
    Thanks!!!!
    -- Jim

  • Crawling xmp metadata from pdf's

    We have some PDF files which we are crawling in. These PDF's contain XMP metadata tags. I suspect that the PDF accessor is ignoring these tags. We've tried a number of different proprty mappings all to no avail.
    Has anyone else had any luck crawlingin XMP generated metadata?
    Simon Dragicevich

    Hi,
    The same code for reading other formats will go for Pdf too.
    Only difference is while reading PDF it is not calling any smart filters.

  • How to read XMP metadata of an indd file using Actionscript

    Hi All,
    I am trying to read XMP metadata of an indd file using CS Extension Builder in Flash Builder 4.5.
    The documentation has many class like XMPmeta, XMPStruct, etc.
    I have got the currently opened document in InDesign as follows:
    var myDoc:Document = InDesign.app.activeDocument();
    And a new XMPmeta object is created as follows:
    var myXMP:XMPMeta = new XMPMeta();
    How to initialize document's xmp metadata in the XMPMeta object? Or is there any other way to get the XMP metadata of currently opened document in InDesign?

    I have found that the XMP data of an InDesign document can be retrieved in actionscript as follows:
    InDesign.app.activeDocument.metadataPreferences
    This returns the MetadataPreference object.
    But I am not able to iterate each namespace in the xmp. There isn't any XMPFile class which allows me to serialize the object to xml file so that I can iterate all elements in the XMP.
    I could not relate class like XMPMeta, XMPProp, etc. with the MetaDataPreference class. So, how to obtain the entire xmp packet from the MetadataPreference object?
    Can anyone shed light on this?

  • How to remove xmp metadata?

    I need to remove the "XMP metadata" information in the tiff(photoshop) files via scripting. Is it possible? Kindly advice me. Please provide examples.
    Thanks for looking into this..
    Regards,
    Maria Prabudass

    This will remove as much metadata that is possible by using scripting, anything else you need ExifTool.
    #target photoshop
    var f = File(Folder.desktop + "/example.tif");
    removeMetadata(f);
    function removeMetadata( file){
    if ( !ExternalObject.AdobeXMPScript ) ExternalObject.AdobeXMPScript = new ExternalObject('lib:AdobeXMPScript');
            var xmpf = new XMPFile( File(file).fsName, XMPConst.UNKNOWN, XMPConst.OPEN_FOR_UPDATE );
            var xmp = xmpf.getXMP();
            XMPUtils.removeProperties(xmp, "", "", XMPConst.REMOVE_ALL_PROPERTIES);
          if (xmpf.canPutXMP( xmp )) {
             xmpf.putXMP( xmp );
          xmpf.closeFile( XMPConst.CLOSE_UPDATE_SAFELY );
    The only other way is to save for web, open the file again and save as a tif.

  • Can't write large xmp metadata to pdf

    Hello,
    I tried to add a custom metadata of 2kb to the pdf, using PutXmp() method.The API supports "inplace" serialization of exact size - it serializes my packet to the size of the old xmp packet. If my packet size is small - it succeeds; otherwise, like in case of 2kb - fails.Moreover, if there is no old xmp packet, it can't put my xmp. Are there any limitations?I tried to remove some flags in API and PutXmp() performed "not inplace" serialization - that way it succeeded to serialize a big packet.Then I call CloseFile() method which performs an actual writing to file. When I open a pdf in txt format, I see the meta is writen correctly in a correctplace. But when I open the pdf file, the "out of memory" message is displayed.When I try to close the pdf file, it asks if I want to save it. Please advise how to add a large amount of metadata without getting the pdf corrupted.

    Hi Curt,
    Thanks for your response.
    No, there is currently no metadata displayed for the WAV file. I was getting the impression from forums that WAV files can't carry metadata but I thought Bridge would create a sidecar file to carry it.
    Cheers,
    Josh

  • Issues with XMP metadata in PDF/A

    Hello all,
    I'm doing a project converting historical pdf's to pdf/a format for archiving. I'm consistantly running up against problems with xmp schemas not being predetermined. This one in particular keeps giving me error messages when converting via Preflight, despite the fact that as far as I know it IS a predefined schema.
    http://ns.adobe/xap/1.0/mm/xmpMM:History
    Unfortunately I can't find any way of deleting it, and have no luck with the Convert Document Metadata fixup. I'm using Acrobat 9. Any hints?

    This is a known issue that has been resolved in Acrobat XI. For previous versions you need to remove the xmpMM data objects manually before the PDF/A conversion step - there's a free script which will add a new menu item.

  • How to read XMP metadata from a Jpeg

    This seems like it should be a no-brainer, but I can't find any classes to do this ?? I can find classes to read song titles from MP3 files, I want to do similar with jpeg image files.
    In photoshop and lightroom you can set up titles and captions (and copyright info) in the metadata. When you save a jpeg this gets embedded in the file.
    How to read this info and parse it and use it once you have loaded it into a BitMapData???
    I am Flash/AS3.0 code only no IDE -  please no flex/AIR examples!
    Thanks!

    http://www.adobe.com/devnet/xmp/

Maybe you are looking for

  • How do I find the image type of an image file

    This was posted on the LabView forum in error yesterday,  Please excuse the dual post. I am trying to open a JPEG image.  If I do not know the image type (8U, 16I, GrayscaleSingle, ... etc)... is there a way to find out that information? If you open

  • Maintaining it1007 programmatically

    I need to develop a program that takes in two position numbers and delimits the vacancy record for the first position and creates a vacancy record for the second position. I am trying to use the SAP standard functions RH_CUT_INFTY and RH_INSERT_INFTY

  • Query for BOM Allocations to Master Routes

    I just acquired Query Building permissions and the involved transactions in SAP-PP.  I have access to the sandbox (QAS) to build them before they go into production.  I have a good technical background but never built a query in SAP.  I should be abl

  • Apple network vs wifi

    Seems like I am able to use a wifi network other than my own to connect to the internet. When I try to connect using my apple network with password using ethernet cable broadband the system does not connect. Yet when I chose a network like LINKSYS on

  • Sound Constantly Skipping

    Have a HPG60 laptop. No matter what program I use itunes/vlc/wmc/wmp/etc. the audio skips.  MP3, AVI, DVD, doesn't matter the format.  No problems for a year, and all of the sudden this problem happens.   Pretty sure I didn't download anything new. T