[JS CS5] Bad placement of the file on the front page

I'm wondring the way around, but does not seem to resolve the correct file placement is a recto page.

I have a document with several pages where I need to put some files (eps, idms, etc.). So that X and there contact information are data but incase of front position of the placed files page are not correct.

origin of the page rule should work for the place or add any similer point page elsewhere but here to place any file it gives me bad investment.

 var theDoc = app.activeDocument, curPage, leftMargin, topMargin, pageBounds, pageWidth, theYpos, theXpos, theHeight, theWidth, snippetFile, theBag;
 theDoc.viewPreferences.rulerOrigin = RulerOrigin.pageOrigin;
 curPage = theDoc.pages[1];
 leftMargin = curPage.marginPreferences.left;  
 topMargin = curPage.marginPreferences.top;  
 pageBounds = curPage.bounds; 
 pageWidth = pageBounds[3]-pageBounds[1];                   
 theYpos = topMargin+  240;
 theXpos = leftMargin + 0 ;
 theHeight = theYpos + 60 ;
 theWidth = theXpos+100;
 snippetFile = File("/C/Image/Lorem.idms")
 theBag= curPage.place(snippetFile, {geometricBounds:[theYpos,  theXpos, theHeight,  theWidth]});
            

I don't know if this a bug or what am I missing here.

Thank you

Mac

Hey Mac,

I suggest that you download the png file format or just the InDesign Document to create the snapshot and the live page on the post.

OK Mac you try this its working for me good.

Please check and come back.

var theDoc is app.activeDocument curPage, leftMargin, topMargin, pageBounds, pageWidth, theYpos, PosX, theHeight, theWidth, snippetFile, theBag.;
theDoc.viewPreferences.rulerOrigin = RulerOrigin.pageOrigin;
curPage = theDoc.pages [2];
leftMargin = curPage.marginPreferences.left;
topMargin = curPage.marginPreferences.top;
pageBounds = curPage.bounds;
pageWidth = pageBounds [3] - pageBounds [1];
theYpos = topMargin + 240;
PosX is leftMargin + 0.;
theHeight = theYpos + 60;
theWidth = PosX + 100;
snippetFile = File("~/Desktop/1.inds");

var myActivePage = app.layoutWindows [0] .activePage = curPage;
if(myActivePage.Side == PageSideOptions.rightHand) {}
Alert ("front");
theBag = curPage.place (snippetFile, [leftMargin, topMargin]);
}
else {}
Alert ("back");
theBag = curPage.place (snippetFile, [leftMargin, topMargin]);
}

THX

csm_phil

Tags: InDesign

Similar Questions

  • Back to the same place of the web page

    When I click on the arrow to the left happens to me on web page, I was ahead, but there also go to the top of the page, but not to the task, I was working, so I have to scroll down to this place. How can I get back to this place on the web page?

    Three ways:
    1. click the link
    2 {Ctrl + click} link
    3. right click on the link and use open link in a new tab

  • Culture in two different places in the same page

    What on Earth, I want to crop in two different places in the same page. For example, I want to keep something in the upper part and something in the lower part, but skip the other parts. What happens on Earth, I can do that, gentlemen?

    There is a rectangle of cropping by page.  What the parties 'ignored' would look like? Flat white?

  • That the buttons refer to other places on the same page

    Hello

    I was wondering if I could make my buttons link to other places on the same page, so you will automaticcaly scroll down the right-hand side of the site.

    I know how to link to other pages, but not like it.

    If my explanation is still some of you doubt in what I tell a link here.
    http://www.boomverzorgingleuridan.be/

    If you click on the buttons in the menu, you will notice that what I am looking for.

    THX!

    These are just the anchor links. Here is a video tutorial on how to go about doing that in Muse - http://tv.adobe.com/watch/muse-feature-tour/muse-create-anchor-links/.

    Thank you

    Vinayak

  • Can we get rid of the eye on the front page? Me slide out!

    Filled with the sign the petition for INTERNET security. Now I can't get rid of the eye on the front page. I want to get rid of because I've already signed. The eye slips out, can it be done away now?

    I am in the United Kingdom and do not see it, but I doubt that Mozilla put there. However I see you are using a theme, then in the case which is originally he Try Firefox Safe Mode see if the problem goes away. Firefox Safe mode is a troubleshooting mode that temporarily disables hardware acceleration, restores some settings and disables add-ons (extensions and themes).

    If Firefox is open, you can restart Firefox Safe mode in the Help menu:

    • Click the menu button

      click Help

      then select restart with disabled modules.

    If Firefox does not work, you can start Firefox in Mode safe as follows:

    • On Windows: Hold down the SHIFT key when you open the desktop Firefox or shortcut in the start menu.
    • On Mac: Hold the option key during the startup of Firefox.
    • On Linux: Exit Firefox, go to your Terminal and run firefox-safe-mode
      (you may need to specify the installation path of Firefox for example/usr/lib/firefox)

    When the Firefox Safe Mode window appears, select "Start mode safe" - does NOT REFRESH!

    If the problem is not present in Firefox Safe Mode, your problem is probably caused by an extension, theme or hardware acceleration. Please follow the steps described in the section Troubleshooting extensions, themes and problems of hardware acceleration to resolve common Firefox problems to find the cause.

    To exit safe mode of Firefox, simply close Firefox and wait a few seconds before you open Firefox for normal use again.

    If it goes further, remove the theme and if you need to reset the homepage, please see my initial response.

    By the way, you should be able to see the homepage at any time by typing on: House in the address bar and pressing ENTER.

  • Jump the numbering on the front pages

    I'm working on a several page brochure in InDesign CC2014 and I want to start numbering pages on what is basically page 6, jumping the lid of the numbering and the next four pages after, but I see no way to do it. I played with the numbering and section options, but nothing seems to work. Any help would be greatly appreciated.

    All the pages in your document must have a number assigned to them, but you don't need to show this number on the page.

    As says Willi, create a new section where you want your page numbering to start at 1 (this is called the 'logic' page number or section numbering). ID complain when you exit the dialog box that you already have a page with this number, so it's also a good idea to change the style of numbering for the front pages. Preliminary pages is traditionally numbered with lower case Roman numerals (i, ii, iii...), and I usually use A, B, c... cover and inside cover, with no marker page number on which pages should be numbered in the final doc.

  • Get a box of the caption text is displayed in 2 places on the same page?

    Hello

    Is there anyway to get the live legend on a page, appears in another area of the page and the update, if the information changes?

    For example... we have images we would like to use the functionality of live of legend, in the version number and the name of this particular, when image its places in the Description field of the Photoshop file.

    Is also on the bottom of my page layout, which this information needs to live. Still, thanks to a variable or something that could be archived, so that the text field of legends may live far from the image as a copy and update if the image information changes?

    I know it's a long shot, but I wanted to put out there?

    Thank you

    Babs

    Hey, if you group the live legend with the image then they do not have to touch.

    I just tried with a picture and he grouped with 2 boxes various legend direct (and placed the other far from the image).

    It works!  They both have the legend.  They must stay together, but I guess you can understand a way of doing that is simple (maybe another layer?).  I hope that's what you hear.

    Thank you, Phyllis

  • The back button brings back me to the top of the previous page instead of the place in the previous page, where I was before. How does it evolve?

    On a list as Craiglists which has 100s of lists on a page, you click on the link to access the item description page, after the ad, I then click on the back button & instead of back to where I was on the previous page, I went back to the top of the page. It's a lot of time, because I then locate the list I was before so I can continue my review of the list of others.

    Maybe it's a problem of compatibility add-on or extension.
    I had the same problem and I seem to have solved by uninstalling APTURE HIGHLIGHTS 1.6. following the standard diagnostic test not more white flashes and now my scroll position is known.
    It also cleared up a bad freeze/hang up, I had after waking from sleep/hibernate.

  • Photoshop button added to the page master does not apply to the right place on the attached pages

    When working on the master page on the tutorial for Muse, after adding photoshop button, it is not aligned properly to the pages that are attached with the master file? It ends under the footer and expanding the page more time that I set it to? How can I fix?

    Try to optimize the image you use, this can occur if you use the original file size is big enough to expand.

    http://helpx.Adobe.com/Muse/topics/graphics.html

    http://TV.Adobe.com/watch/learn-Adobe-Muse-CC/optimizing-graphics-assets-in-Muse/

    Thank you

    Sanjit

  • How can I fix this place from the front?

    Hi all


    How can I fix this task of white color of the front?

    (white_patch_RedStroke.jpg)
    white_patch_mark.jpg

    (white_patch.jpg)
    white_patch.jpg
    , I know "Clone Stamp" tool. But alas, it's the fuzzy search and disorder....


    (white_patch_CloneStampTool.jpg)

    white_patch_CloneStampTool.jpg
    Please suggest...

    Thank you!

    You have a pretty bad image to work with. However, you can try the following approach:

    * Make a rough selection with the lasso around the white spot tool and put a feather to the selection in the options bar.

    * Skip the selection of a separate layer (Ctrl + J)

    Add a solid color fill adjustment layer and hang it on the selection layer that you just created. Use a color near the outer edge of the area of selection.

    * Change the blending mode to darken

    * Adjust the opacity to match. You can then adjust the color and adjust the opacity for a better match.

    You can get something like this:

    Paulo

  • How to link a Word to a particular place on the same page?

    Can someone tell me how to link a Word to a particular point on this page? I have a fairly long page that I want to make it more user-friendly, I want to give visitors the possibility to choose a subtitle to a list that will lead them directly to this point on the page so that they do not have to scroll.

    Use the names of ID:

    ID = "first">

    Insert content here...

    ID 'second' =>

    Insert content here...

    ID = "third">

    Insert content here...

    LINKS ON THE SAME PAGE:

    LINKS ON OTHER PAGES:

    Nancy O.

  • The links that I send to my album opens the front page of Revel on other computers.

    If I copy the link form my browser as indicated on the FAQ page (FAQ: How do I share files at Revel?) It opens only the cover page of Revel on other computers. Also in the Mac app, the sharing option is not active. What's wrong?

    And another question: if I shared an album in this way, by sharing the link, is it possible to cancel the share?

    Hi GG,.

    It is possible that you share the incorrect URL. It would not surprise me that the FAQ is terribly confused. I will reiterate how to share an album with friends.

    To share an album of adoberevel.com:

    1. go to your library and create an album with some pictures that you want.

    2. While in the selection of the album. A dialog box displays - Select this option to start sharing

    3. after that another dialog box appears with a short URL. Copy this URL and send e-mail or use one of the icons which appear on this screen. You can also select this screen, if you want people to be able to upload images.

    You can choose to stop sharing the album at any time by returning to this same dialog box and select this option to stop sharing.

    If you want to share an album through desktop Revel:

    1. go to your library and select the Album icon (or go to file > New Album empty)

    2. enter a name for the album you. Select the adoberevel.com CheckBox part. You can also decide if you want to allow the downloads here.

    3. a short URL will be generated. You can copy that now, if you want or go back. Select the button create.

    4 Add photos to the album.

    5. click on the album in the list and a little 'I' appears next to the name of the album. Click it and the URL is displayed. This is the URL that you share.

    Again, you can choose to stop sharing the album at any time by returning to this same dialog box and select this option to stop sharing.

    Glenyse

  • Image on the back and the front pages in the brochure printing

    Hello.

    I have a riddle.

    I want to have an image that extends over the back and the first page of a document, which will be finally printed booklet style.

    I am struggling to get this just so if I put in place with gaps, i.e., I'll have to place the image twice and try and guess the marriage of the central point.

    Or I can allow pages Shuffle which allows then to me the last page in the front of the first page to allow me to place the images on the area, but then it live to the printing of the brochure.

    Any advice?

    Or you caan place once and place them correctly on the page or the police back, then copy and paste them in place on the other and they will be perfectly matched.

  • No place on the web page "anytime upgrade" to enter a code to upgrade windows 7! ___

    I bought a Windows anytime upgrade to Windows 7 key code on Amazon.com, but I tried to use the my vista upgrade anytime but the page provide more information but no place to enter a key to start my upgrade to Windows7. Can you please show me where to go so I can enter my key code and start my upgrade?

    I bought a Windows anytime upgrade to Windows 7 key code on Amazon.com, but I tried to use the my vista upgrade anytime but the page provide more information but no place to enter a key to start my upgrade to Windows7. Can you please show me where to go so I can enter my key code and start my upgrade?

    The "anytime upgrade" is Vista to another Vista or Win 7 product to a superior product of Win 7.  You cannot switch from Vista to Windows 7 with a upgrade anytime.
     
    What is Windows Anytime Upgrade?

    Upward to a more powerful edition
    Want to customize your desktop with photos? Save your work with automatic network backups? You can move to a more powerful edition of windows 7 in 10 minutes without touching your files and settings.

    You would have to buy the version of Win 7 Upgrade of your choice to activate Win 7 you want.  A place to start learning about the upgrade of the computer:http :// www.microsoft.com/windows/windows-7/get/default.aspx

  • Flash applet (scrollview.swf) disappeared from the front page

    Hi, thanks for taking the time to read this. I have a serious problem with a flash applet that is front and Center (actually a little to the right) on our homepage. I'm paid to refresh our Church Web site and have been using flash 8 with success so far. We never had no problem download and we used this same file in flash for a while (2 years?) and I've never experienced this problem.

    Anyway, if you go to www.livepraylove.com you will see that on the side right of the page, the flash file is not loading. It is as if it is not yet on the server. However, when I connect to my ftp server, I see him there. I even downloaded the server off and ran while offline, and it worked fine in all browsers on my pc. It just does not work online.

    Is there something wrong with the code in my index.html page? Or could I have saved the file flash in a way that causes this problem? Any advice would be greatly appreciated, since the longer, it goes on, the I'm going to be more difficult.

    Thank you!

    Nevermind - I solved the problem! It is a corrupted index file. What was disconcerting in this regard, that he would play well at a distance, but when I went to download, it had many problems. I'll repost if that I meet again the problem. Thank you!

    Tim

Maybe you are looking for