Indesign Object Coordinates

Hi
I want to know about indesign object coordinates.
In .indd file coordinates take 32 byte for any coordinate for top, left, bottom, right or (x, y, width, height).
How calculate x and y value from these 8-8 byte.It contain floting value but not follow IEEE standered.
What format use to store coordinate in indesign .indd file.
When I create a text frame in indesign on first page using Facing option whose value are
X=0, Y=0, Width=50,Height=50 and ruler is set on (0,0).I am not using any rotation.
Then I find the 32 byte for this in .indd file
00 00 00 00 00 00 22 C0
67 BD 78 7C 6C 91 7A C0
EE 76 BB DD 6E D7 62 40
F0 01 9B CD 66 63 71 C0
How calculate x , y width, height value from these hex byte.
What standered use by indesign to store coordinate.
Is there is any function in sdk that take these hex value and return coordinate.
Thanks

Hi Bill joy,
Check this out....
//COORDINATES
test();
function test(){
//alert(myDocument.rectangles.item(0).resolve(AnchorPoint.TOP_LEFT_ANCHOR,CoordinateSpaces .INNER_COORDINATES)[0]);
var rectangleCount=myPage.rectangles.count();
var i = 0;
var coordinates=[];
var multi=[];
var multi1=[];
for(var j=0;j<=rectangleCount-1;j++){
    var coordinatesValue = myDocument.rectangles[j].paths[0].pathPoints;
    for (; i < coordinatesValue.length; i++) {
     coordinates[i]=(coordinatesValue[i].anchor);
//alert(coordinates);
var i=0;
multi[j]=coordinates[i][i];
multi1[j]=coordinates[i][i+1];
alert(multi[j]);
alert(multi1[j]);

Similar Messages

  • Object coordinates

    Hi
    I want to know about indesign object coordinates.
    In .indd file coordinates take 32 byte for any coordinate for top, left, bottom, right or (x, y, width, height).
    How calculate x and y value from these 8-8 byte.It contain floting value but not follow IEEE standered.
    What format use to store coordinate in indesign .indd file.
    When I create a text frame in indesign on first page using Facing option whose value are
    X=0, Y=0, Width=50,Height=50 and ruler is set on (0,0).I am not using any rotation.
    Then I find the 32 byte for this in .indd file
    00 00 00 00 00 00 22 C0
    67 BD 78 7C 6C 91 7A C0
    EE 76 BB DD 6E D7 62 40
    F0 01 9B CD 66 63 71 C0
    How calculate x , y width, height value from these hex byte.
    What standered use by indesign to store coordinate.
    Is there is any function in sdk that take these hex value and return coordinate.
    Thanks

    Hi  Jongware
    Thanks for Reply
    According you i try to convert these byte using double-precision binary floating point format but i am not getting my answer.
    I am sending some screen shot of these byte. Plz help me  to get  x and y coordinate.
    I am creating textframe in indesign using Facing with default setting and set x=0 mm , y=0 mm,w=50 mm, h=50 mm for textframe.
    and get hex value
    x = 00000000000022c0 // (after converting in double-precision binary floating point i get  -8)
    y =67bd787c6c917ac0   //(after converting in double-precision binary floating point i get  -425.088985892906)
    w =(EE76BBDD6ED76240 - 00000000000022C0) //(after converting EE76BBDD6ED76240  in double-precision binary floating point i get  150.732283464567)
    H= (F0019BCD666371C0 - 67bd787c6c917ac0) //(after converting F0019BCD666371C0  in double-precision binary floating point i get  -278.212598424433)
    According my information
    InDesign  coordinates are measured relative to the current location of the ruler’s zero point; the vertical (Y-axis) coordinates below the zero point are positive numbers; coordinates above the zero point are negative numbers.
    When you get or set  the location of a path point, the coordinates are passed and returned in the typical (x, y) order. InDesign returns some coordinates in a different order, however, and it expects you to supply them in that order. Geometric bounds and visible bounds are arrays containing four coordinates, which define (in order) the top, left, bottom, and right edges of the object’s bounding box,  (y1, x1, y2, x2).
    I am not understand that i follow the right approch Plz help me  as soon as possible.
    I am waiting for your reply.
    Thanks

  • InDesign Object Libraries and DPS

    Hello,
    I'm familiar with InDesign object libraries' capability to make easily reusable objects and elements. What I'm wondering: if I create objects and elements in a Library to be reused across various pages and across multiple articles in my portfolio, will DPS read these multiple instances as ONE object when it comes time to publish?
    What I am trying to achieve is ultimately a lower file download size of my app. For example, if I create a multistate object, is it possible, through Object Libraries, to use this object in several places within my folio and have it count as just one object in terms of file size?
    Thanks in advance.

    No. Good ways to manage file size is to use PDF as your folio file format, to avoid embedding videos, and to avoid full-page multi-state objects.
    Neil

  • Object coordinates relative to selected artboard.

    What controls origon (x,y = 0,0) of a objects coordinates? I'm not refering to which the "Reference Point".
    I use a bunch of artboards and sometimes origon originates from the newest artboard i have created, which is great for my workflow. I place a lot of objects using the top coordination tool.
    But often the origon fixes it's position to the first artboard. Is there a way to control the origon?
    Specs: Win7, 64bit, Illustrator CS6 16.0.3.
    Best regards
    Kristian Bendsen
    Game artist

    Click in the top left square of the rulers to reset
    If you are having trouble with items pasting on the wrong artboard, keep your artboards palette visible, and highlight the artboard you want to paste into.

  • InDesign Object Model Not in OM Viewer

    I have the trial of InDesign CS4 installed, along with the scripting componetns and Adobe bridge.
    In the ES Toolkit object model viewer I have four options in the dropdown:
    Core JavaScript Classes
    ScriptUI Classes
    Adobe Bridge CS4 Object Model
    Adobe InDesign CS4 Object Model
    The first three options work fine. The crucial fourth option (the InDesign model) does nothing. I open it and the drop down just closes, then snaps back to whatever the previous selection was.
    What is causing this and how do I fix it? Hard to script without the object model reference!
    Many thanks in advance for any help.
    Jude Fisher
    http://www.jcfx.eu

    Try selecting InDesign from the drop down before starting InDesign.
    That's the only way I can get it to work on my installation...
    Harbs
    http://www.in-tools.com

  • Drawing InDesign objects on a extension panel

    hi all,
    I'm trying to develop an InDesign extension using the Extension Builder 2.1 – unfortunately I am almost completely new to the whole topic.
    I was wondering if it's possible to draw objects, lets say a rectangle or a vector shape from an opened InDesign document to the panel. Actually it doesn't sound like a difficult task but anyway I'm a lost. I would appreciate any hint where to look for that concern. 
    Thanks for helping!

    Hi,
    Since you're new to the topic, I would start here: http://labs.adobe.com/technologies/extensionbuilder3/ (use Extension Builder 3, not 2.1).
    Also, read this: http://www.adobe.com/devnet/creativesuite/articles/introducing-html5-extensions.html
    Best regards,
    Hallgrimur
    Hallgrimur Th. Bjornsson | Product Manager - SET | Adobe | Tel: +44 (0) 1314582787

  • Adobe needs to develop an api for communicating with HTML Overlays & Indesign Objects

    I'm a front-end developer who has been assigned the task of developing one of our client's DPS every month. While I praise Adobe for saving a dying a industry and giving non-developers simple GUI controls, they need to develop an api for communicating from HTML Overlays to Indesign MSOs and other objects.
    I've had to do some intense animations/pages; which I in turn simply developed all in HTML5 and did an overlay. The time put into those pages could have been greatly reduced if their was a proper API in place to trigger different MSO and events. Is anybody at Adobe working on this? As DPS matures, and more developers are tasked with making folios it's imperative we have a proper way way to develop.

    We had a page for embedded movies in a lightbox; the client said customers were complaining that the folios were too large and took too long to download. So we switched to youtube streaming page, but they wanted a poster and autoplay enabled. If you have ever programmed with mobile video, you'll know devices are extremely difficult to manipulate.
    I had to do an html overlay with a bunch of transparent divs for hotspots and buttons. If I could have told Indesign to move different objects layer orders or go to a different MSO it would have saved me hours.
    Doesn't DPS support localstorage? Couldn't you guys whip up a little api to trigger events via localstorage?
    Off topic, another request:
    - enable the safari webkit inspector for debugging connected ipads with folios that have html overlays; you guys don't fully support HTML5 or certain js events and it's extremely annoying and difficult to debug. 

  • Animateing InDesign Objects in After Effects

    Hay all,
    i got an little problem. I need to animate single Objects in InDesign and need to do this in After Effects.
    is there a way to import the InDesign File into After Effects so i can animate every single Object ? It is too much work to import every single Objekt out of the InDesign Project and assemble everything together.
    kind regards
    Dennis

    No. Your only option would be to export a PDF from ID, but you cannot access separate objects inside the PDf, so this is more or less useless....
    Mylenium

  • HELP! Where I can find the InDesign Object Model, Methods, and Properties?

    I've done a little VB scripting with InDesign, using some of the examples I've found here and there. But I can't for the life of me find a full listing of the Object Model, nor a listing of methods and properties. I'm limited in what I can do by stumbling upon objects here and there in others' scripts. Surely this must be documented somewhere.
    One thing that's particularly confusing to me (partly because I'm not well-versed in JS), is I'll see something the following
    app.selection[0].fit(FitOptions.frameToContent)
    where "FitOptions.frameToContent" seems to reference a constant, presumably in a structure. How do I determine the actual constant value, or supply an object reference (as I'm scripting from a stand-alone VB app) such that it can "find" that constant?

    I don't know how VB5 works, but when you add reference to InDesign and declare variable, for example:
    Dim myInDi as InDesign.Application
    then when you write somewhere "myInDi." - VB6 IDE give you context list with all methods and properties of InDesign application
    here is link to AS/JS/VB CS2 reference and AS CS3 reference
    http://www.indesignscriptingreference.com/
    here is link to CS2 ScriptingGuide - 20MB ;)
    http://www.adobe.com/products/indesign/pdfs/InDesign_Scripting_Reference.pdf
    I remember that was page with InDesign Scripting PDFs on adobe site - but now all links are broken ... somebody in Adobe - web admin - should check what is going on ...
    Photoshop and Illustrator pages works fine:
    http://www.adobe.com/devnet/photoshop/scripting/
    http://www.adobe.com/devnet/illustrator/scripting/
    somebody forgot to add links to scripting section in InDesign page:
    http://www.adobe.com/devnet/indesign/
    robin
    www.adobescripts.com

  • Export InDesign Objects and Layers To Photoshop

    Hi there,
    I am in a situation whereby I have designed several web pages with InDesign CS5.5  because it is easier and quicker to use paragraph styles and accurate positioning etc. The website was designed to be built entirely using CSS for colour blocks and typography with the photography being optimised and accurately sized via photoshop.
    However, the developer has now come back asking me for the original Photoshop files with everything on layers. I expained that I do not have the time or the will to reproduce the entire site in Photoshop. I did explain that he should only require the photography as everything else can be made using CSS but to we have not reached a compromise.
    I have tried running this script in InDesign to export the layers to Photoshop but all it does is export the flattened layers including all the layer's objects into a single layer in Photoshop, which is not what I want. I need all objects from the InDesign file on separate layers in photoshop.
    Unless I'm not using the script correctly, I am at a loss of how to quickly reproduce the site in Photoshop.
    I can't upload a screenshot of the site as it's for a large retailer in the UK and still under wraps so to speak.
    Any suggestions appreciated!
    PL_DD_

    If you are only getting one layer in PS after running ing the script, then there only one layer in ID. You have to create layers in ID's layer panel and move the objects to the desired layers.

  • How to connect to Indesign object model from VBA (Macintosh_Office)?

    In PC it was: find/load tlb-file and chek box to activate. In Mac i don't see any tlb-files, so can't add this lib to VBA reference. Can i do this at all?

    Hi,
    According to your description, you might want to connect SharePoint Online environment using Client Object Model.
    For the authentication, you can take a look at the link below with code demo provided:
    http://www.vrdmn.com/2013/01/authenticating-net-client-object-model.html
    Best regards,
    Patrick
    Patrick Liang
    TechNet Community Support

  • ESTK Indesign Object Model

    Hi All,
    How to deal with InDesing Object Model in ESTK? Is anybody have any manual or reference?
    I am having problem to understand classes (singular and plural) and method. I have not found any reference in Java script Tool Guide.
    Please guide me.
    Thanks,
    Mon

    Mon,
    The distinction between singular and plural is an artificial one. The plural refers to a class of objects, the singular to inividual objects. Take page, for instance. Under pages you see methods such as add(). Under page you see methods (move(), remove()) and properties (length, characters). But page doesn't exist as an object: instead you address an item in the class. Some examples:
    Relating to the whole class:
    myDoc.pages.add()  // add a page to the document's pages collection
    myDoc.pages.length  // the number of pages in the document
    Relating to individual pages:
    myDoc.pages.item(0).textFrames  // the text frames on the first page
    myDoc.pages.item(1).groups  // the groups on page 2
    As tomaxxi mentioned, Jongware files are very good. For some more explanation of the object model, see http://oreilly.com/catalog/9780596802523/
    Peter

  • InDesign Object Effects

    I have a grayscale image in InDesign. I placed a text frame on top it and try to apply an effect and it is tinting my image when I apply the effect. What is going on? I also want to "ghost" the text frame and when I apply "paper" color to it, I can't tint it, the "tint" option is grayed out so I can't choose it.

    sapsaj wrote:
    Transparency Flattener Presets is set to low, and won't switch off low.
    It only seems that way. In the same way that PDF presets don't affect the layout, Transparency Flattener presets are not used until output and have no effect on screen display in ID. You choose the correct preset in either the export or print dialog.
    That said, as Eugene points out, keeping the transparency live is usually a better option.

  • Indesign Scripting Object Model

    Hi,
    Is there some reference documentation that provides detailed information on the Indesign object model as exposed to the scripting interface (javascript)?
    I have done fair amount of scripting in Illustrator so I was looking for the Indesign equivalent of this document
    http://wwwimages.adobe.com/www.adobe.com/content/dam/Adobe/en/devnet/pdf/illustrator/scrip ting/illustrator_scripting_reference_javascript_cs5.pdf
    I looked at this document but it seems kind of sparse (compared to illustrator)
    http://wwwimages.adobe.com/www.adobe.com/content/dam/Adobe/en/products/indesign/pdfs/InDes ignCS5_ScriptingGuide_JS.pdf
    Obviously they are different applications but I was kind of hoping there would be more info for Indesign scripting.
    In particular I am looking for some insight on how to effectively walk or traverse the document structure of an indesign document using code.
    Finding specific things by type seems out of the picture becuase after doing object reflection on all the page items in an indesign document nothing seems to have a "type" property.
    In my illustrator scripts I was able to place stuff in illustrator layers, give arbitrary pageitems a name and then later go find and manipulate via script. Not as clear how to do this in an indesign context.
    The one advantage of this was that in illustrator I was able to use textframes to hold variable data and read later via scripts. The document becomes the database. And I could create any number of arbitrary "variables" inside the document outside the white board. WOndering how to do this kind of stuff with indesign so I can do template driven documents that are managed by scriptings and form UI that I create.

    commnet: Glad to hear you're clear on the new keyword. It's something that a lot of people are confused about.
    Also glad to hear you've read Crockford's book on this stuff. Honestly I think for most InDesign usage, it's a mistake to worry about any kind of inheritance...usually it's easier to ignore all that stuff.
    And to answer the question about number of properties, probably talking max 100 or so. Certainly not thousands. I just want to have my own datastructure embedded in the indesign document that I can easily talk to via scripts. And this data needs to persist between instances of the javascript script's lifecycle. So it seems having some XML to parse is the solution. If that makes sense.
    If there was a way to deal with JSON data "hidden" within an indesign document I would gladly work with that. But I still need to change certain common content snippets inside the flow of the indesign document in a consistent way.
    I think if you have max 100 properties, you should probably choose the methods that are clearest code, rather than most efficient. I suppose you might have noticable delay with 100, though, obviously try it and see. I'm confused but I thought you needed to have your data associated with text elements inside your document, such that it is visible to a user in the user interface. Hence the proposal of using XML tagged text inside a Text Frame. Did that requirement go away?
    If you just want to hide JSON in the document, then use document.insertLabel() of a string of JSON and be done with it.
    You can also use the JavaScript interpreter's E4X features, that give you much richer Javascript bindings for manipulating XML objects and files. Unfortunately the Javascript's XML bindings have nothing to do with the InDesign XML object model. So could, e.g., export the InDesign DOM XML into a file, read that into a Javascript XML object, manipulating with E4X functions, write it out to a file, and then re-import it into the DOM. Not really very convenient.
    I honestly don't know much about Javascript for browsers, so if you could be more concrete in your queries it would be easier to answer.
    Looking forward to your example snippet though.
    OK, so, in Jeff (absqua)'s example, you create a constructor for a changeNumber rule, you call the constructor to make a rule, add the rule to the ruleset, and change a value attribute of the rule, and then process the ruleset.
    This strikes me as...extremely goofy. For two reasons, first the ruleset creation function should be parametrized with the value you want to change, and second, that you go change the rule's attributes after you have added it to a ruleset. Also, while this works in this example, I don't think it's appropriate to have the xpath attribute hardcoded in the rule creation function -- it's much plausible that you want a function that constructs a rule that changes some arbitrary tag to some arbitrary value.
    So, anyhow, if you were going to stick with the constructor paradigm, then I would change from:
    var changeNumber = new ChangeDocumentNumber();
    var ruleSet = [changeNumber, changeDescription];
    changeNumber.value = "5678";
    __processRuleSet(doc.xmlElements[0], ruleSet);
    to:
    var changeNumber = new ChangeDocumentNumber();
    changeNumber.value = "5678";
    var ruleSet = [changeNumber, changeDescription];
    __processRuleSet(doc.xmlElements[0], ruleSet);
    But I don't like this, because it's not parametrized reasonably. I would want something like:
    var changeNumber = new ChangeValue("//DocumentNumber", "5678");
    var changeDescription = new ChangeValue("//DocumentDescription", "New descr.");
    var ruleSet = [ changeNumber, changeDescription ];
    But because of my disdain for classical inheritance in JavaScript, I would instead write it as:
    function changeValue(xpath, newValue){
      return {
        name: "ChangeValue",
        xpath: xpath,
        apply: function(Element, processor) {
          if (newValue) {
            element.contents = newValue;
          return true;
    var changeNumber = changeValue("//DocumentNumber", "5678");
    var changeDescription = changeValue("//DocumentDescription", "New descr.");
    Because I think that a lot clearer about what is going on without introducing confusion.
    Edit: removed "this.value" from the above and just used newValue directly.
    But if you're defining a lot of rules with different apply functions, this is a very cumbersome strategy. You have all this boilerplate for each function that is basically the same but the apply function is different. This is leads to a lot of wasted code duplications. Why would your apply function be different? Well, that would usually be if you are writing functions that move around XML elements within the document hierarchy, or other things that are not simply changing the value of an element.
    I would much prefer to write this as:
    var changeRule = makeRule("change",
      function(element, ruleProcessor, newValue) {
        element.contents = newValue;
    var changeNumber = changeRule("//DocumentNumber", "5678");
    var changeDescription = changeRule("//DocumentDescription", "New descr.");
    var ruleSet = [ changeNumber, changeDescription ];
    This kind of syntax makes it much more compact to create arbitrary rules with different apply functions. In retrospect, the makeRule() function is named wrong, because it returns a function that makes a rule. Perhaps it'd be more reasonable if it was called makeRuleMaker().
    Anyhow, the downside is that the makeRule() function is kind of heinous. I wrote this in March in Re: How to shift content with in cell in xml rules table. But:
    //// XML rule functions
    // Adobe's sample for how to define these is HORRIBLE.
    // Let's fix several of these problems.
    // First, a handy object to make clearer the return values
    // of XML rules:
    var XMLmm = { stopProcessing: true, continueProcessing: false};
    // Adobe suggest defining rules constructors like this:
    //   function RuleName() {
    //       this.name = "RuleNameAsString";
    //       this.xpath = "ValidXPathSpecifier";
    //       this.apply = function (element, ruleSet, ruleProcessor){
    //       //Do something here.
    //       //Return true to stop further processing of the XML element
    //       return true;
    //       }; // end of Apply function
    // And then creating a ruleset like this:
    //   var myRuleSet = new Array (new RuleName, new anotherRuleName);
    // That syntax is ugly and, and is especially bad if
    // you need to parametrize the rule parameters, which is the only
    // reasonable approach to writing reasonable rules. Such as:
    //   function addNode(xpath, parent, tag) {
    //       this.name = "addNode";
    //       this.xpath = xpath;
    //       this.apply = function (element, ruleProcessor) {
    //           parent.xmlElements.add(tag);
    //           return XMLmm.stopProcessing;
    // and then creating a ruleset like:
    //   rule = new Array (new addNode("//p", someTag));
    // So instead we introduce a makeRule function, that
    // allows us to leave behind all the crud. So then we can write:
    // addNode = makeRule("addNode",
    // function(element, ruleProcessor, parent, tag) {
    //     parent.xmlElements.add(tag);
    //     return XMLmm.stopProcessing;
    // and use:
    // rule = [ addNode("//p", someTag ];
    function makeRule(name, f) {
        return function(xpath) {
            var
                //xpath=arguments[0],
                   // "arguments" isn't a real array, but we can use
                   // Array.prototype.slice on it instead...
                   args=Array.prototype.slice.apply(arguments, [1]);
            return {
                name: name,
                xpath: xpath,
                apply: function(element, ruleProcessor) {
                        // Slice is necessary to make a copy so we don't
                        // affect future calls.
                    var moreargs = args.slice(0);
                    moreargs.splice(0, 0, element, ruleProcessor);
                    return f.apply(f,moreargs);

  • How do I add InDesign's Object model to ESTK Object model viewer?

    I am new to InDesign scripting, and was told that I could view InDesign's DOM in ESTK's object model viewer. The problem is that my ESTK does not show InDesign Object Model in ESTK's model selector drop down! InDesign DOM is not there in the drop down list.
    How do go about adding the ID DOM to the list?
    BTW, I am on CS6.

    this might help.
    Also, the best thing for the Object model is http://jongware.mit.edu/idcs6js/

Maybe you are looking for

  • System Monitoring in Solution Manager 4.0

    Hi all, I want to set up system monitoring for landscape BW, ECC and SCM systems using Solution Manager 4.0 and am new to Sol Man. So could anyone please help me with the steps. Thanks in advance, Sandeep.

  • I have a macbook 1,1 trying to install Lion or anything recent from leopard but says its doesnt meet the requirements; but it does; how do i install lion on to this macbook?

      Model Name:          MacBook   Model Identifier:          MacBook1,1   Processor Name:          Intel Core Duo   Processor Speed:          2 GHz   Number Of Processors:          1   Total Number Of Cores:          2   L2 Cache:          2 MB   Memo

  • How do I use Apple Backup with my new MacBook Pro?

    I've been using Apple's Backup app from the old days of Mobile Me (remember when we had to pay to use Apple's cloud?). I've just bought a MacBook Pro and I transferred everything from my old iMac (early 2008 running Mavericks). Everything works fine,

  • Lightroom 3.5 Annoyances

    I just upgraded to Lightroom 3.5 for Windows and immediately noticed that a few annoyances; some from earlier versions are still in the newest version. 1.  For some inexplicable reason, the file path for Lightroom 3.5 for Windows has an extra space b

  • Help with automation sequence

    Hello, I am having an odd problem with FCS. So I have a workflow and here are the steps: 1)Export m4v file from Screenflow to "Screenflows" folder 2)FCS recognizes the m4v file and moves it to "convert to ogv folder" 3)Here it is recognized by a fold