contact information to the page

Hello everyone, I am working in CS 5.5 and need to get the coordinates of a box with regard to his page. I have a problem with the case of two pages side by side like this:

Capture.PNG

I understand that pageItem.geometricBounds works in its own coordinate space, but how do I set it is compared to the page. In this case I am hoping to get to the left anchor - x 1, y1 and the anchor of the righ low x 2, y2. Same I expect this:

Capture.PNG

Here is the quick code that I wrote for the limits of the geomtric of the selected item. Any explanation would be great!

var myItem = app.selection[0]; //just a rectangle that I am moving to different parts of the page


var temp = app.activeDocument.viewPreferences.rulerOrigin;
app.activeDocument.viewPreferences.rulerOrigin = RulerOrigin.PAGE_ORIGIN;

var currentBounds = myItem.geometricBounds;

//alert(myItem.resolve(AnchorPoint.TOP_LEFT_ANCHOR,CoordinateSpaces.SPREAD_COORDINATES) +"  "+myItem.resolve(AnchorPoint.BOTTOM_RIGHT_ANCHOR,CoordinateSpaces.SPREAD_COORDINATES))
alert(currentBounds[1]+","+currentBounds[0] + " " + currentBounds[3] +","+currentBounds[2])


app.activeDocument.viewPreferences.rulerOrigin = temp;

Hello

After setting rulerOrigin use of the Page:

app.activeDocument.zeroPoint = [0,0];

This should ensure that your left/top corner of page is [0,0]

Note that affecting rulerOrigin Page_Origin no means related to coordination of article page. GeoBound point are related to the sovereign that zeroPoint (document property) can be linked to the page left/up corner... or not.

However, you can set up a prototype of the object, that is to say:

Object.prototype.myGeoBounds = function () {}

If (this.) ParentPage == null) return false;

var f = this.parentPage.bounds;

var GB = this.geometricBounds;

var my = GB [0] - [0];

var mx = GB [1] - [1];

var my = GB [2] - [0];

var mX = GB [3] - f [1];

return [my, mx, mY, mX]

}

for example, pageItem.myGeoBounds () should return page_relative (top left) coorinates regardless of the position of the point. (it is set to false if the element is placed on the pasteboard).

are you a closer?

Jarek

Tags: InDesign

Similar Questions

  • BlackBerry Smartphones do I have to type in all of my contact information in the Blackberry?

    Y at - it somewhere on my computer (application or software) that I can get all my contact information (names, phone numbers, e-mail) instead of typing in the little Blackberry Curve? I do not use Outlook.

    Thank you

    Chickieeeee

    Hi and welcome to the Forums!

    RIM does not provide a PIM. Rather, they provide their desktop software to integrate with several different PIMs, allowing the user to choose from among those that are compatible. Here is a link to the page that deals which of these work with the RIM desktop software.

    http://NA.BlackBerry.com/eng/services/desktop/#tab_tab_sysreq

    Hope that helps!

  • How can I insert a contact address in the pages

    I am new to the Mac world.  I want to insert a Contact address in a pages document and thought that it would be easy.

    I watched this and it seems that it is perhaps something to do with privacy between contacts and pages, but in the security and privacy, there is no no application next to the contacts

    Like everything, it's easy when you know how.

    I'm not a Mac to check, but have you tried dragging it in your document?

  • Contact information for the user

    Hi, I want to access the application to the personal data of the users. Name, phone, email, etc... How can I get this information?

    As far as I know, you will not be able to access "contact information" unless you embed a form in the application are users to fill in the details themselves (sharing of personal data and the extraction is illegal in some countries). You can create an HTML form and use in your folios where end-users can fill the data itself and create a 'Submit button' who sent you the details.

  • New Tundra may not see the contact information on the SIM card

    I followed the directions that came from at&t, copied all sim card info to old phone(RAZR), activated new sim card in new Tundra, put new sim card in old phone, copied phone memory to sim card ( shows 200#s in use) put sim card in new Tundra---NO CONTACT #S!!!!!!

    Hello Scottyk,

    copied all sim card info to old phone(RAZR)
    

    You will need to do the opposite of this. Instead, copy the information on the old phone--> to the old SIM card.

    If you use an old SIM card and a new SIM card, both the following steps:

    • Save or copy all Contacts from your old phone to your old SIM card.
    • Place the old SIM card to your new phone.
    • The Contacts will appear in your list of Contacts.
    • Save all the Contacts recently imported on your new phone to the--> new phone.
    • Remove the old SIM card.
    • Put in the new SIM card.
    • Save (or copy) the Contacts of your new SIM card and/or your new telephone.

    ~ Christina

  • I now have the message ID and other similar information on my Inbox page alongside my contact information of the sender and the recipient, how can I remove these?

    Obviously I have helped with this information to be detailed by clicking somehow a wrong button but I would now fix cela and removed these details, any suggestions?

    View (Alt - V) - headers - Normal

  • Transfer photos and contact information for the razr of motorola (V3) to my computer using the usb connection

    I need instructions step by step to transfer my info and contacts, photo, and waiting for a cell phone motorola razr V3 I dropped and now the screen is white. I am on an acer inspire laptop which uses windows 7.

    I need instructions step by step to transfer my info and contacts, photo, and waiting for a cell phone motorola razr V3 I dropped and now the screen is white. I am on an acer inspire laptop which uses windows 7.

    Hi Trey

    If the phone is damaged, it is something you will need to contact the Motorola Support for the information you are looking for. Here is the link.  Motorola support
    I hope this helps.

    Thank you for using Windows 7

    Ronnie Vernon MVP
  • How do I change my contact information at the end of the e-mail address

    After that the body of the e-mail message I have contact info - name phone etc., that is embedded in each message. How can I change this to add my site as well?

    To change your e-mail signature, you will need to do the following:

    1. Click on the menu button in the upper right (it looks like three stacked lines)
    2. Place the cursor on the 'Options '.
    3. Click on "account settings."

    From there, click on the account name you want to change the signature to the left side of the window "account settings." With that selected, you can change your signature to email on the right side.

    When you are finished, press 'OK' to save your changes. Hope that helps!

  • How can the information of the page

    Dear all,
    I have the original Version contain the values of emp_id, name, number,

    If I click on save button I will be able to get the values in the table by object Row iteration


    How can I able to get the values of the formulas currently appeared in the screen

    (String) (row.getAttribute ("EmployeeID"));

    Other ways to retrieve attributes, see documentation.

  • How to redirect a part of the page?

    I have a main line of screen contains a link. When I click on this link, I need display the corresponding article in the page. Results page contains numerous blocks for different articles. I want to show the corresponding section for which the user has clicked.

    For example, the results page contains following sections on the page.
    (1) contact information
    (2) educational details
    (3) contact information

    When the user clicks on the Details Update education form the home page link, the system must redirect the result with 2 page) educational Details as a highlighted section.

    It's like bookmarking page.

    How is it possible to redirect to a specific section of the result page in the ADF?

    Help, please.

    Published by: yannick October 13, 2011 09:27

    Yannick,

    If I understand you correctly, what you're talking about is an anchor.

    You create anchor points on the page where you want to scroll through the options (not redirect to). For example, in your scenario, you would have 3 anchors (personal, educational, contact). You create an anchor point by inserting an af:goLink with the 'id' property specified as the name of the link. For example:

    
    

    Then you would have a 'Personal data updated' link that are mentioned as destination anchor name:

    
    

    John

  • Open tabs which unused for a few minutes is no longer working and make me lose the page on what it is.

    I like to keep an eye open at all times, and Firefox has recently begun to spoil my tabs while I've never had a problem with this before. I think it started after the last update of Firefox.

    As mentioned above, if a tab remains open but unused for a few minutes while he was working in the other tabs, logo of the site next to the title of the page (for example Amazon 'a' logo with the arrow below "Your orders" for example) is replaced by the green rotation ring that usually indicates the loading, but it runs a lot faster that it did when it actually does something. When you click on the tab to open it again, it's just a blank tab and I have to manually track down the page that I was again. However, when I disconnect my computer or restart it so that the legs have the rings of green spinning on them, the next time I open Firefox once connected to my computer, it opens all tabs and the correct pages, but that if I did not click on / open one of the tabs so that they had the ring of green rotation thus making their return to blank tabs. If I click on a tab with green spinning ring (making it empty), then log start/stop and reopen Firefox on connection back to my computer, Firefox will have indeed lost the information on the page and he re - opens in a blank tab, as it was when the system is disconnected. On top of that, if the tabs are doing this fast spinning glitch green ring, he did everything I'm working on the slow race, such as making a video shift watching on Youtube. If I see that happen, I am obliged to go click on the tab (loss of his data in the process) and manually go back to the page, that I was still just once so that it stops make the green ring of fast rotation and I can watch my video smoothly, but it lasts only a few minutes before these pages start the glitch green ring once more and I have to repeat the process. Another oddity of the note is that this only happens to the tabs actually, I click on and open during each session. If I restart or disconnect my computer and connect again and restart Firefox, the green ring glitch does not reach one tabs I don't touch during my session. It happens to the tabs that I actually open this session, but it happens to every single tab that I do, I opened this session.

    It becomes very irritating and it's working in Firefox a huge concern, as happens constantly. Please fix this. Firefox has never done this to me before, so I don't understand why it's happening now. I have not downloaded or installed the new plug-ins or add-ons for Firefox, so I know I did nothing to the program to cause this.

    Thank you for picking me up in it. I look forward to hearing back as soon as POSSIBLE and to find a cure for this problem. This glitch is driving me crazy.

    The current versions of Firefox use the sessionstore-backups folder to store a few copies of the sessionstore file to make it possible to recover a few errors caused by a bad closing down.
    The 'upgrade.js with the attached version identifier are created when Firefox is updated.
    Previous versions of Firefox created the file sessionstore.bak with the attached version identifier.
    So that look OK.

    You can start Firefox in Safe Mode to check if one of the extensions (Firefox/tools > Modules > Extensions) or if hardware acceleration is the cause of the problem.

    • Put yourself in the DEFAULT theme: Firefox/tools > Modules > appearance
    • Do NOT click on the reset button on the startup window Mode safe

    Could you possibly post your troubleshooting data?

  • Why, only in firefox and no other browser are some of my facebook pages as if the contents is minimized in the center of the page to load?

    I tried other browsers and this problem does not occur. Pages other than the home, profile and account, as well as their associated, all pages load with the content of the homepage minimized in the top center of the page

    Try resetting the page zoom. With the problematic page on the display, you can reset the zoom of the page using the hotkey Control + 0 (zero)

    For more information on the page zoom, see https://support.mozilla.com/kb/Page+Zoom

  • BlackBerry Smartphones adding name and contact information to outgoing emails

    Currently, the default at the bottom of each email sent is "sent via Blackberry by AT & t." I would like to add my name and some contact information at the bottom of outgoing email, messages, at least the ones I have are created (as opposed to the answers), but can not find a way to do it... and at the AT & T store could not figure out how to do.  Any suggestions?

    dtomek1 wrote:

    ... and at the AT & T store could not figure out how to do.  Any suggestions?

    AT & T Silly people.

    1. connect to your carrier's website you BIS. Carrier BIS connection sites are listed here:

    http://BlackBerryFAQ.com/index.php/Where_can_I_log_into_my_BIS_account%3F

    OR you can connect from your BlackBerry to the icon "personal e-mail Configuration.

    2. click on 'Edit' next to the email to which account you want to change (or remove) the signature.

    3. where it says "signature", delete all the text if you don't want ANY signature, or change view you prefer instead of "sent from my BlackBerry... »

    4. click on SAVE.

  • Metadata not added to the page source

    I spent hours to update each dialog box page darned on my site, which has versions of phone, Tablet and desktop.  Each page has its own title (which added to the source code), keywords and description (or are added to the source code.  I found that the metadata did not appear in the source when I began to submit to search engines and was immediately informed that my site has no description of metadata or keywords.  I went to the http://truehdfitness.com/site and seen my source code.  Not a single keyword or an anywhere.on description

    What the devil I'm doing wrong?  I could have created the code of metadata in a Notepad file and made a copy page for versions of html on my site, but I don't want Muse clear every time I do a little change on the site... so, how in the world to get to add keywords and descriptions to the source for pages?

    Thanks for your help!

    Deltombe

    Okay, I don't know what happened, but some of my pages stored metadata and some did not.  Whatever it is, I saw that hand over the information in the page properties box, save the site, and do an ftp transfer (after each page is set) is loading the metadata about the site.  There may be a workaround, but it works.

  • Unable to get the name of the page in the portlet

    I have different XML generated dynamically rendered in the same Java portlet. To change the URLS for each of these XML screens, I created different pages, but all of them contain the same portlet. How can I get the information of the page inside the portlet I know what XML to render?

    Hello

    You can access the PageBackingContext / PagePresentationContext of objects through the PortletRequest request:

    HttpServletRequest hsr = (HttpServletRequest)request.getAttribute("javax.servlet.request");
    
    PageBackingContext pbc = PageBackingContext.getPageBackingContext(hsr); // Action or event phases only
    PagePresentationContext ppc = PagePresentationContext.getPagePresentationContext(hsr); // Render or resource phases only
    

    You can also generate URLS with all the desired parameters, by using the javax.portlet.RenderResponse object to create an action, or make the URL:
    http://docs.Oracle.com/CD/E15919_01/WLP.1032/e14255/javax/portlet/MimeResponse.html#createRenderURL _

    You can set parameters on this URL using the setParameter (name, value):
    http://docs.Oracle.com/CD/E15919_01/WLP.1032/e14255/javax/portlet/baseurl.html#setParameter_java_lang_String__java_lang_String _

    and then read the values of the parameters of your PortletRequest.getParameter () method:
    http://docs.Oracle.com/CD/E15919_01/WLP.1032/e14255/javax/portlet/PortletRequest.html#getParameter_java_lang_String _

    Kevin

    Published by: kfrender on February 16, 2012 16:39

Maybe you are looking for