XMP in a InDesign Compound document

Hi,
I'm working a solution to support XMP in my application and I
have a problem with a compound document.
I created a compound document with InDesign and my XMPExtractor was unable to retreive the XML blocs from it. In my extractor,
I use the PacketScanner and the ToolKit (MetaXAP object) from adobe's SDK.
So I tried the XAPDumper example and it can't get the XML either. I get
Caught runtime error XAP_ERR_BAD_XML
*** ParseSubstring failed
My file doesn't seem to be corrupted but to be sure I tried
the same steps with another simple compound document file and got the
same error message.
I think that the MetaXAP should be able to parse these files. Any additional
information that will help me resolve these issues will be greatly
appreciated.
I couldn't find a way to attach my files with this post... You can email me at [email protected] and I will reply you with the files attached.
Best Regards,
Jeff.

Jeff,
The XMP forum is not an official support site. The forum is provided as an avenue for users of XMP to talk to each other to share their thoughts, tips, questions, and techniques. Adobe Solutions Network (ASN) is the official developer support program for a more organized technical support situation.
You can join ASN at http://partners.adobe.com/asn/main.html if you are inetersted.
Regards,
Shulin

Similar Messages

  • Pipe xmp data into indesign document

    Hi there!
    My situation is: My InDes plugin calls a server-script which returns XMP-Data as text format.
    What I want to do is: To append the XMP-Data without any local file operations to the XMP section of my InDes. document.
    My problem is: Class MetadataPreference only provides a append method, which needs a local XMP file as an object.
    Is there any way to wrap the text data, which comes from the server, into a file object? The only way, as I understand it, is to get the data from the server as a file and use this one with the append method.
    Would be very nice if anyone has a good idea to get this working without local file operations.
    Thanks in advance

    This question might get more traction in the InDesign scripting forums. In general, if you can do it with ExtendScript, you should be able to do it with ActionScript. Also, you might want to look into the InDesign Host Adapters which allows you to get the XMP from a document, here's a recent question on the topic: http://forums.adobe.com/message/4008254.
    Does that help any?

  • CS5 InDesign cannot open files in the InDesign CS5 document format

    I'll be working in InDesign CS5 with no problems then at some point I'll double click on an InDesign file and a window comes up and says - InDesign cannot open files in the InDesign CS5 document format. Sometimes when this happens I have to completely reboot my whole system before I can get InDesign to function correctly. Is this a flaw with CS5? Did not happen with previous versions. It doesn't always happen but I can't figure out what causes it. Would appreciate anyones help. I'm getting to really HATE InDesign!!

    I have not uninstalled and reinstalled, but I did just switch over to another workstation using Time Machine. The previous system was Leopard. This one is running Snow Leopard.
    I'm not sure how to parse this. When you say "switch over to another workstaiton using Time Machine" do you mean, "started using another machine that happens to be using Time Machine for backups and is also running 10.6 instead of 10.5"?
    Or do you mean, "Used the Time Machine program to upgrade from 10.5 to 10.6?" If you mean the second one, well, I can't say I am surprised that things are messed up. And that would make your problem rather different than the other posters, which is good reason for you to have started your own thread (and thus your own solution)....
    I'm a little bit leary of getting in and changing things in Terminal, without understanding what I am changing. Plus this is a workstation at work, so if I screw something up, that is not a good things, and I don't have time to spend a day fixing things back up again, with the way our workload is.
    Well, you can find a lot of marginal documentation about lsregister and Launch Services, but I wonder whether your understood the ramifications of messing with Time Machine (or maybe I have misinterpretted you!). I'd be surprised if you found another way to fix this, other than uninstall/reinstall.
    Good luck.

  • How do I change caps of an OpenType font to small caps in my InDesign cc document?

    Greetings, Community. It would be great if I could discover how to change caps of an OpenType font to small caps in my InDesign cc document. That's the simple question.
    To be more exact, I have an 18-page play that contains stage directions in caps in parentheses, which I would like to change to small caps. The font I'm using is an OpenType, Minion Pro, with small caps.
    Another thing is, I'd ideally like to be able to do that without changing all caps in the document, and also, to not have to convert the caps to lower case in order to do it.
    My source document (which I Placed in my InDesign document) is Microsoft Word 2011 for Mac.
    I did go to Microsoft to find out how to do it in Word, but could only find a solution for Word for Windows.
    I did try their solution anyhow (a macro) but it didn't work.
         Thanks a lot. It's great being in InDesign even though I had my good years with QuarkXpress, which eventually became impossible for me.
         Morty Sklar

    Is this what you're talking about, Michael? Where do I paste it? (The whole thing?)
         Morty
    // Change case interactively. Find/change options should be set in InDesign's Find/Change window.
    // Peter Kahrel -- www.kahrel.plus.com
    #targetengine "change_case";
    create_palette().show();
    function create_palette ()
        var w = Window.find ("palette", "Change case");
        if (w === null)
            return create_palette_sub ();
        return w;
    function create_palette_sub ()
        var changetype;
        var w = new Window ("palette", "Change case", undefined, {resizeable: true});
            w.alignChildren = "fill";
            var options = [ChangecaseMode.lowercase, ChangecaseMode.uppercase];
            var rb = w.add ("panel");
                var upper_to_lower = rb.add ("radiobutton", undefined, "A > a");
                var lower_to_upper = rb.add ("radiobutton", undefined, "a > A");
            var smallcaps = w.add ("checkbox", undefined, " Apply SC");
            var b = w.add ("group {orientation: 'column', alignChildren: 'fill'}");
            var find = b.add ("button", undefined, "Find");
                var change = b.add ("button", undefined, "Change");
                var change_all = b.add ("button", undefined, "Change all");
                var change_find = b.add ("button", undefined, "Change/find");
            if (app.findGrepPreferences.findWhat.indexOf ("\\u") > -1)
                upper_to_lower.value = true;
                changetype = ChangecaseMode.lowercase;
            else
                lower_to_upper.value = true;
                changetype = ChangecaseMode.uppercase;
            upper_to_lower.onClick = function () {changetype = ChangecaseMode.lowercase};
            lower_to_upper.onClick = function () {changetype = ChangecaseMode.uppercase};
            var found, found_counter;
            find.onClick = function () {
                if (this.text === 'Find') {
                    found = app.documents[0].findGrep();
                    if (found.length > 0){
                        found_counter = 0;
                        find.text = 'Find next';
                        show_found (found[found_counter]);
                    } else {
                        alert ("No (more) matches found.");
                } else {
                    found_counter++;
                    if (found_counter < found.length){
                        show_found (found[found_counter]);
                    } else {
                        find.text = 'Find';
                        alert ("No (more) matches found.");
            change.onClick = function () {
                found[found_counter].changecase(changetype);
                if (smallcaps.value == true) {
                    found[found_counter].capitalization = Capitalization.smallCaps;
            change_find.onClick = function (){
                if (found_counter < found.length){
                    found[found_counter].changecase(changetype);
                    if (smallcaps.value == true) {
                        found[found_counter].capitalization = Capitalization.smallCaps;
                    found_counter++;
                    if (found_counter < found.length){
                        show_found (found[found_counter]);
                    } else {
                        alert ("No (more) matches found.");
            change_all.onClick = function () {
                for (var i = found_counter; i < found.length; i++) {
                    found[i].changecase(changetype);
                    if (smallcaps.value == true) {
                        found[i].capitalization = Capitalization.smallCaps;
            w.onDeactivate = w.onActivate = function () {find.text = 'Find'}
        return w;
        } // create_palette_sub
    function show_found (f)
        if (f.parentTextFrames.length === 0)  // If in overset text
            app.activeWindow.activePage = find_page(f.parentStory.textContainers[0].endTextFrame);
        else
            f.select();
            app.activeWindow.activePage = find_page (f.parentTextFrames[0]);
    function find_page(o)
        if (o.hasOwnProperty ("parentPage"))  // CS5 and later
            return o.parentPage;
        else
            return find_page_classic(o)
    function find_page_classic (o)
        try
            if (o.constructor.name == "Page")
                return o;
            switch (o.parent.constructor.name)
                case "Character": return find_page_classic (o.parent);
                case "Cell": return find_page_classic (o.parent.texts[0].parentTextFrames[0]);
                case "Table" : return find_page_classic (o.parent);
                case "TextFrame" : return find_page_classic (o.parent);
                case "Group" : return find_page_classic (o.parent);
                case "Story": return find_page_classic (o.parentTextFrames[0]);
                case "Footnote": return find_page_classic (o.parent.storyOffset);
                case "Page" : return o.parent;
            catch (_) {return ""}

  • How to create a smallest file size pdf from indesign CS4 document

    How to create a smallest file size pdf (suitable for upload to a website) from indesign CS4 document which contains multiple illustrator CS4 illustrations.
    I have chosen the "smallest file size option" but the pdf file is over 30MB, can anyone help please.
    Thank you

    One trick is to
    Set the placed graphics to have a transparency of 99.9% (you can do this with Find/Change and select Objects)
    This is enough to force the graphics throught the Transparency Flattener
    Next set the Transparency Blend Space to RGB (Edit>Transparency Blend Space)
    Next set a custom Transparency Flattner Preset Edit>Transparency Flattner
    Next
    Use File>Export and choose
    Smallest file size
    PDF Compatibility Acrobat 4 (PDF 1.3)
    In Advanced Section - go to transparency and selec the new Flattener Preset you created.
    *this will convert your vectors to raster, but it should reduce your file size

  • AppleScript to check all pages within one Indesign (CS6) document have same size.

    I have bunch of InDesign (CS6) documents containing different page sizes (some are designed for a particular device and some are designed for multiple devices using alternate layouts). I need to assure all page sizes are same before I run a particular script.
    So I need a Applescript which can request a folder location of closed files and then open and run through the InDesigns in that folder (ignoring any other files) and then open a text file report saying all page sizes are same or not. (Sorry! for my English)
    Any help is much appreciated!

    sure,
    still no error-handling included, so use on own risk ;-) ...
    #target Indesign
    var selFolder = Folder.selectDialog();
    if(!selFolder) {exit();};
    var allFiles = selFolder.getFiles('*.*');
    var currDate = getDate();
    var currLogFile = File(selFolder.toString() + '/' + currDate + 'pagesSizeLogFile.txt');
    doStuff(allFiles);
    currLogFile.execute();
    function doStuff(filesFoldersArray){
    var l = filesFoldersArray.length;
    app.scriptPreferences.userInteractionLevel = UserInteractionLevels.NEVER_INTERACT;
    while(l--)
      var   currItem = filesFoldersArray[l];
    if(currItem instanceof(Folder)){
        nextItems = currItem.getFiles('*.*');
        doStuff(nextItems);
        else if (    currItem.displayName.indexOf('indd') != -1){
        currDoc = app.open(currItem, false);
    allPagesBounds = currDoc.pages.everyItem().bounds;
    currDocPagesWidthHeight = [currDoc.fullName.toString() + ':\n'];
    for(var b = 0; b < allPagesBounds.length; b++) {
        h = allPagesBounds[b][2];
        w = allPagesBounds[b][3] - allPagesBounds[b][1];
        resString = '' + currDoc.pages[b].name + ': ' + w + ' x ' + h + '\n';
        currDocPagesWidthHeight.push(resString)
        var samePageSizesOrNot = checkUnique(currDocPagesWidthHeight);
        switch(samePageSizesOrNot)
            case false :
    toFile(currDocPagesWidthHeight.join(''));
    currDoc.close(SaveOptions.NO);
    break;
    default : currDoc.close(SaveOptions.NO); break; }
    app.scriptPreferences.userInteractionLevel = UserInteractionLevels.INTERACT_WITH_ALL;
    function toFile(pwh)
            currLogFile.open('a');
        currLogFile.write(pwh);
        currLogFile.close()
    function checkUnique(someArray) {
               var tmpArray = []  ; 
        var tmpString = '';
             for (var i = 1; i < someArray.length; i++) {
                 currItem = someArray[i];
                 if (tmpString.indexOf(currItem.slice(2,-1)) === -1){
                    tmpString = tmpString + ' ' + currItem;
                                         tmpArray.push(currItem); 
        if (tmpArray.length === 1)
            return true;
            }else{
                return false;}
            function getDate(){
        var d = new Date();
    var day = d.getDate();
    if(day < 10){day = '0' + day;};
    var month = d.getMonth() +1;
    if(month < 10){month = '0' + month;};
    var year = '' + d.getFullYear();
    var hours = d.getHours();
    var minutes = d.getMinutes();
    var seconds = d.getSeconds();
    var dateString = month + day  + year.substring(2) + '_'  + hours + minutes + seconds + '_';
    return dateString;

  • InDesign cross-document Text Anchor Hyperlinks

    I’m combining several InDesign files into one PDF, with several hundred text links across the different sections, as well as within each. The cross-document (section) Text Anchor Hyperlinks work fine in my workspace - but when I change the file location, they are no longer active (other links, bookmarks remain intact).
    How do I set up InDesign cross-document Text Anchor Hyperlinks so that when the files are moved, they remain active?  

    ASk in the ID forum.
    Mylenium

  • Color issue in an InDesign CS4 document

    Something strange is happening in an InDesign CS4 document: All of my my objects that use RGB color swatches appear darker (or grayer) in the document than the RGB swatches themselves. It might be that all of the objects are converting to CMYK and I'm not getting the true RGB colors within this document. Oddly, when I copy an object from this document – say, a simple shape with 100% color fill – into a new document, the object renders correctly with RGB in the new document. That makes me think I've got a universal setting within the original document that is converting my colors strangely. (Potential clue: In the new document, when I click on an RGB swatch, the Swatch Options box shows the Color Mode as RGB, making the color correct. In the original document, when I click on the same swatch color, the Color Mode says System (Macintosh). But when I switch it to RGB, I see a warning icon referring to Out of Gamut color, and when I click on the Gamut correction, it renders the RGB swatch as the off-color I'm trying to avoid.) Is there a universal setting change I should make in the original document so my colors render correctly on screen (I'm trying to use the Web Color Mode)? Thanks!

    Brilliant, Peter, thank you. I wouldn't have figured that out on my own. Oddly, the Edit Menu settings had been modified and I had to search to even find the Transparency Blend Space menu. Once I did and reset the Menus, I could switch the CMYK to RGB (no idea how that got switched), and the colors are as they should be. Thanks so much!

  • Opening InDesign CS3 documents in CS4

    I am hoping someone from Adobe can help me with this question. Here is the scenario:
    I work on the support team in a prepress environment where we get hundreds of client supplied InDesign files weekly. Some clients supply their files in InDesign CS3 and some supply the files in InDesign CS4. We have both applications.
    From our experience, we have found that if we open a InDesign CS3 document using InDesign CS4, there is a potential for items to disappear in the document. I don't know what changed from 3 to 4 to cause this problem. This has happened to us more than one time and we have experienced money losses due to on press errors.
    One would say, as we have, if the document is supplied in InDesign CS3, work on it in InDesign CS3. Easy enough, right?
    Well, not really. If you have CS3 and CS4 both installed on your mac at the same time, simply double-clicking on the file will default to CS4 (since it is newer).
    We have told our operators that they need to identify what version the file was created in; which is not the easiest thing either.
    If you "get info" on the file, you do not get accurate information. It may say "CS4", even if it is "CS3", I think this is because your system is reading what the newest application that you have install is.
    I have found that by dragging the file over the CS3 icon in the doc, it will attempt to open the file in CS3 and if it truly is a CS4 document, you will get plugin errors and the file won't open. This works, but my 38 mac operators are so used to just double-clicking a file to open it, they sometimes forget to do it my way, and thats when we get errors.
    Is there a plugin available that would prompt you, when double -clicking on a file as to what version it is, or what version InDesign that you would like to open the file in?
    What did Adobe change in InDesign CS4 that would cause items to disappear or change when working on CS3 documents in CS4?
    Thank you in advance.

    First, this is a user forum, not an official Adobe support site, so you aren't talking to Adobe employees for the most part.
    Second, though it is subtle, there is a visible difference between the icons for file created in CS3 and CS4, but you do need to look.
    There is (or perhaps it's now "was") a known issue with master items disappearing when placing one ID file into another in CS4. Be sure your copies are updated to the latest patch. Another reason to avoid opening CS3 files in CS4 is potential differences in text flow due to text engine differences which will affect how lines break.
    If you want to train your people in a hurry, tell them the next time you have to re-run a job because they opened it in the wrong version you'll deduct the cost from their pay.
    Peter

  • Export a Indesign(CS3)  Document as PDF(Windows)

    Hi,
    I am beginner in Indesign Plugin development.
    I want to export a Indesign CS3 document as PDF programmatically. I
    know that we need to use IPDFExportPrefs and set the various
    attributes.I dont know proper code.
    Can anybody give the code to implement it.
    Or any reference to find it.
    Thanks,
    Ravi sharma

    Arthur,
    You can't export the document directly to HTML, but you can use the Cross-Media Export to make and XHTML file for Dreamweaver (or other editor). It will generate an HTML page and a blank CSS style sheet, as well as gathering the images, but web and print are entirely different formats so you won't have anything resembling your ID doc when you get through, as far as layout is concerned. If you want people to see your layout as is, you need to use PDF. Try changing the compression settings for the export to bring the size down, but it will be a compromise somewhere most likely.
    Peter

  • How do I set up InDesign cross-document Text Anchor Hyperlinks so that when the files are moved, they remain active?

    I’m combining several InDesign files into one PDF, with several hundred text links across the different sections, as well as within each. The cross-document (section) Text Anchor Hyperlinks work fine in my workspace - but when I change the file location, they are no longer active (other links, bookmarks remain intact).
    How do I set up InDesign cross-document Text Anchor Hyperlinks so that when the files are moved, they remain active? 

    They seem to be a lot of extra work, and I don't see what the additional benefit is. I have several hundred links to do. I would appreciate learning what the benefit is, as I don't mind the extra effort if it will deliver the desired results.

  • InDesign CS4 documents won't stay minimized

    My newspaper just went to InDesign as our pagination software, switching over from Quark, and we love it. However, there is one nagging issue with it that we cannot seem to figure out, so I thought I'd toss it out here.
    There are times, of course, when you want to minimize your page into the dock to tend to business in other application windows on your desktop. However, when you minimize an InDesign page/document, after a certain period of time, the window will spontaneously maximize back up onto the desktop.
    Basically, we'd like to know how to keep an InDesign page/document minimized until we want it to be maximized. We don't want it to bounce back up of its own volition, we want it to maximize when we decide it should be maximized.
    We are running Mac OS X 10.6.4.
    Thanks in advance for any help.

    This happens to us, too. Drives me nuts.
    In my case, it doesn't happen spontaneously or randomly, but when I have one or more pages minimized in the dock and open a NEW page to work on, the last page I was working on opens first. I don't want that one! If I did, I'd open it. I want to work on the NEW one.
    Why does InDesign do this?
    Does anyone have an answer?
    Roshana

  • Virtual Documents or Compound Documents in Oracle UCM

    Hi,
    Is there any concept called "Virtual Documents" or "Compound Documents" available in Oracle UCM?
    This is a concpet where a documents contains one or more documnets in it or multiple documents are there in a document. This concept is called "Virtual Document" in Documentum and "Compound Document" in Filenet.
    Is anybody know if this sort of concept is available in Oracle UCM? If so, how to achieve this?

    There is feature called content folios. you can group together various documents. This can go through work flows. One can control permissions on this. This can be a alternative for your requirement.
    regards,
    deepak

  • XMP files shown as FCE documents

    I am running CS5 on Snow Leopard.  All my XMP files are shown as Final Cut Express documents.  I have reinstalled CS5, deleted the plists and repaired permissions.
    I would welcome advice on how to correct this.
    Thank you.

    Unfortunately it appears that my email address has been harvested from this site and obtained by a spammer.  This morning I received two different spam emails purporting to be from this site.  Here is one (my address deleted to avoid making my spam problem worse):
    "From: "www.shoesubay.com" <[email protected]>
    Date: 23 November 2010 01:30:28 GMT
    To:[             ]
    Subject: [Photoshop Macintosh] XMP files shown as FCE documents
    Reply-To: [email protected]
    The
    *http://www.shoesubay.com/nike-air-max-95-mens-shoes-p-376.html*  Current Moire is not really new since
    http://www.shoesubay.com/nike-air-max-2010-mens-shoes-p-504.html has been seen early this year.http://www.shoesubay.com/index.php are making a comeback http://www.shoesubay.com/nike-air-max-90-mens-shoes-p-174.html beginning later this year in an electric green  http://www.shoesubay.com/nike-air-classic-bw-c-45.html colorway which you have seen earlier. There is another color http://www.shoesubay.com/nike-air-max-skyline-c-46.html which will fill your http://www.shoesubay.com/nike-air-max-tailwind-c-44.html eyes with lots of hope http://www.shoesubay.com/nike-air-max-1-mens-shoes-p-39.html for Spring and it will be released *http://www.shoesubay.com/nike-air-max-1-womens-shoes-p-57.html*  next year.We are talking about the *http://www.shoesubay.com/nike-air-max-90-mens-shoes-p-174.html* Current Moire / Spring 2010 *http://www.shoesubay.com/index.php* which comes in a seamless laser cut grey http://www.shoesubay.com/nike-air-max-ltd-mens-shoes-p-317.html. Brand bag including:*http://www.shoesubay.com/handbags-louis-vuitton-handbags-c-74_76.html*,*http://www.shoesub ay.com/handbags-chanel-handbags-c-74_75.html* ,http://www.shoesubay.com/handbags-burberry-handbags-c-74_92.html,http://www.shoesubay.com/ handbags-chloe-handbags-c-74_81.html,http://www.shoesubay.com/handbags-dg-handbags-c-74_77 .html,http://www.shoesubay.com/handbags-fendi-handbags-c-74_94.html,http://www.shoesubay.c om/handbags-gucci-handbags-c-74_95.html,*http://www.shoesubay.com/handbags-wallets-c-74_79 .html*,And some of the *http://www.tradetang.com/store/114577/index.html*.Welcome to my shop:*http://www.shoesubay.com/*,Email:http://www.shoesubay.com/index.php?main_page=login.
    This message was sent to: xmpproblem
    Replies to this message go to everyone subscribed to this thread, not directly to the person who posted the message. To post a reply, either reply to this email or visit the message page: http://forums.adobe.com/message/3294062#3294062
    To unsubscribe from this thread, please visit the message page at http://forums.adobe.com/message/3294062#3294062. In the Actions box on the right, click the Stop Email Notifications link. For more information about unsubscribing from the Adobe Forums, please visit http://kb2.adobe.com/cps/522/cpsid_52211.html
    --end-- "

  • How do I place a multiple page .pdf file into a new InDesign CC document?

    How do I place a multiple page .pdf file into a new InDesign CC document???

    You will likely get better program help in a program forum InDesign
    The Cloud forum is not about using individual programs
    The Cloud forum is about the Cloud as a delivery & install process
    If you will start at the Forums Index https://forums.adobe.com/welcome
    You will be able to select a forum for the specific Adobe product(s) you use
    Click the "down arrow" symbol on the right (where it says All communities) to open the drop down list and scroll

Maybe you are looking for