Align all pages to center

I'm trying to edit hundreds of product images in fireworks with the least amount of repetition.
I have loads of variations of ratios that break the nice look on the website so I created a master page at the correct dimensions then mass import all images as pages, but then I have to align the images up to the center of the document. Its at this stage I'm repeating myself a lot. At the moment I'm going through each page selecting the image then aligining it up to the center of the canvas. I want to align all the images on each page to the center of the canvas without repating the steps like above.
Any ideas?

Hi Kricket;
try below code i check in cs6 version
var myDoc = app.activeDocument;
var myLayer = myDoc.layers;
var mycolor = myDoc.swatches
var myPage = myDoc.pages;
var flag=false;
var color=false;
myDoc.viewPreferences.rulerOrigin = RulerOrigin.pageOrigin;
var myY2 = myDoc.documentPreferences.pageHeight;
var myX2 = myDoc.documentPreferences.pageWidth;
var myPagesTotal = myDoc.pages.length;
checkLayer();
checkcolor();
placeFrame();
function checkLayer(){
for (var l=0; myLayer.length>l; l++){
    if (myLayer[l].name =="dieline"){
        flag=true;
    if (flag==false){
    var myNewLayer = myDoc.layers.add();
myNewLayer.move(LocationOptions.atBeginning, undefined);
myNewLayer.name = "dieline";
function checkcolor(){
for(var c=0;c<mycolor.length;c++) {
      if(mycolor[c].name=="dieline"){
          color=true;
// add dieline swatch and set parameters
if (color==false){
    var spotDie = new Array(0, 100, 0, 0)
    myDoc.colors.add({model:ColorModel.SPOT, space:ColorSpace.CMYK, colorValue:spotDie, name:"dieline"});
function placeFrame(){
for (var p=0; myPage.length>p; p++){
    var myBorder = myPage[p].rectangles.add();
   myBorder.move (myDoc.layers.item ("dieline"));
    myBorder.geometricBounds = ["0p0", "0p0", myY2, myX2];
    myBorder.strokeColor = "dieline";
    myBorder.overprintStroke=true;
    myBorder.fillColor = "None";
    myBorder.strokeWeight = "1pt";
    myBorder.strokeAlignment = StrokeAlignment.centerAlignment;
Mi_D

Similar Messages

  • Center nav bars on all pages (was: nav bars)

    How can I get my nav bars to center on all pages and platforms

    dreamerswebdesign wrote:
    How can I get my nav bars to center on all pages and platforms
    It depends on how you have set up your Nav bar. Assuming it is something like this:
    <div id="nav">
    <ul>
        <li><a href="#">About Us</a></li>
        <li><a href="#" class="active">Products</a></li>
        <li><a href="#">Support</a></li>
        <li><a href="#">Press</a></li>
    </ul>
    </div>
    Then a css like this might do the trick:
    #nav {
        text-align: center;
         width: 100%;
    Without seeing your code it is almost impossible to give all the various scenarios.  Anyway, this should give you a start.

  • In ALV I want to align Top-Of-Page in Center which contains some TEXT

    Hi Abap Gurus',
                          In ALV's i want to align TOP-OF-PAGE in center.
    Which contains some TEXT.
    Can you please help me out.
    Points will be Given.
    Many thanks
    Anil Roy.

    hi anil
    The header line is always left-justified .
    We basically have three options for formatting :
    S , A and H.
    every line in Alv top-of-page is of 60 char length(slis_listheader-info).so i think the only option we have is to add required spaces to the left and display the required string
    regards
    navjot
    reward if helpfull

  • How to center align preview page

    When I preview my webpage (which I am creating in fireworks) in the browser it is to the left of the page, How do I center align it?? Thank you in advance for your help

    You shouldn't be creating your total web page in Fireworks, only the graphics  :-)
    You should slice up the images you need and then export those and use them in your HTML or via the stylesheet as background images.  A web page that is full of images will only slow down the loading plus not be indexed by search engines...
    To then center the page, you need to use CSS to to align the page in the center of the browser window regardless of window size.  This again, is done when you move over to the HTML editor, not in FWs.
    A good tutorial that may help the transition from taking a FWs comp to HTML
    http://www.adobe.com/devnet/dreamweaver/articles/dw_fw_css_pt1.html
    Nadia
    Adobe® Community Expert : Dreamweaver
    Unique CSS Templates |Tutorials |SEO Articles
    http://www.DreamweaverResources.com
    Book: Ultimate CSS Reference
    http://www.sitepoint.com/launch/005dfd4/3/133
    http://twitter.com/nadiap

  • Align By Page in 11.5

    I have noticed in 11.5 that the option to align a group of objects by the page margins while keeping the objects relative to each other is gone. Please tell me this option is just hidden somewhere and is still available!
    Blanchard

    Sorry for the delay in my reply. What I am seeing is a loss in functionality from 11.3 to 11.5 (we do not use 11.4 in our office so can't say how it works) If I select multiple objects on a Section and want to align that group by the page and keep the relative spacing between the objects, I can't.
    For example, I have a set of three objects that are not the same size or evening aligned by a side or center - but they are where I need them in relation to each other:
    .....Policy Number:......................Effective Date:.......Expiration Date:
    ..........XXXXXXXXXXXXXXX................MM/DD/YYYY........MM/DD/YYYY
    If I resize the section these objects are on, or change the margins, I will want to realign these objects as a group to a new position. In 11.3 and earlier I could select all objects and do an Align By Page. All the objects would move to the margin in question but stay in relative position to each other. Now, in 11.5 I do not have an Align by Page option, only a Center on Page option. This option will move off of the objects to the new position and change their relative positions to each other. For example, if I chose Center in Page --> Vertical then the two lines become one line with the objects on top of each other.
    I realized this lack of previous functionality when I found that 11.5 Selection Area for Section resizes the area selected and repositions all of the objects into the newly sized section (see previous post from me on this forum). When I resized the section back to the correct size, the objects were in the wrong positions. I have not been able to determine a way to move all of the objects quickly and as a group because I can only align by a single master object of center every object within the page. I can't align to page left, right, top or bottom. I think these features should be brought back, especially given the Select Area for Section issue in 11.5.

  • Method to lock alignment guides (pages 5.5)

    Is there a method to lock "alignment guides" in Pages?     I seem to be constantly grabbing them accidentally.  Probably just moving too fast.  But was hoping there would be a method to lock them in position once they are set-up. 
    Thank-you,  John L.

    You have 2 versions of Pages on your Mac and are alternately opening the wrong one.
    Pages 5 is in your Applications folder.
    Pages '09 is in your Applications/iWork folder.
    Pages '09 can not open Pages 5, iOS 7 Pages, Pages for iCloud beta or iCloud files.
    Pages 5 only runs on Mavericks and can not open Pages '08 or earlier files at all and alters/damages Pages '09 files, which once saved can not be opened by anything other than Pages 5.
    Pages 5 files are in an odd compressed bundle, impossible to parse, which won't transfer via non-Apple servers. DropBox may have patched theirs, I haven't checked lately.
    All Pages files, no matter what version or compatibility, have the same file extension: .pages.
    Apple has removed over 110 features from Pages and many of the rest are buggy. They have confused their users and apparently themselves with the installations, upgrades and cross-transfers of files. Effectively Pages 5 files are only compatible with themselves in a very narrow range of hardware and software.
    http://www.freeforum101.com/iworktipsntrick/viewforum.php?f=22&mforum=iworktipsn trick
    We are recommending users "upgrade" back to Pages '09 and trash/archive Pages 5 after Exporting their Pages 5 files back to Pages '09 or Word .docx files.
    You should give Apple and other users feedback by rating/reviewing Pages 5 in the App Store.
    Peter

  • Centre Align Web Page Content

    Hi,
    Need some help center aligning web page content when it maximizes or is resized. I have grids, panels, etc and want these to center on page.
    Is there a property of the page/body/head/form/div that can be set for this or is javascript required to achieve this.
    Any help mcuh appreciated.
    SNI

    Hi,
    I tried what the thread did and still cannot my layout panel to center align.
    This is my jsp line:
    <ui:panelLayout binding="#{Login.pnlLogin}" id="pnlLogin" style="height: 306px; left: 382px; top: 216px; text-align: left; vertical-align: middle; width: 100%; -rave-layout: grid; horizontal-align: left;">

  • Ok so I have OS X Lion now and this is what I get:  "You can't open the application Lexmark All In One Center because PowerPC applications are no longer supported."

    ok so I have OS X Lion now and this is what I get:
    "You can't open the application Lexmark All In One Center because PowerPC applications are no longer supported."

    look for the latest drivers on the maker's website.
    check it in your list. this is a lexmark issue not a lion issue.
    http://support.lexmark.com/index?page=content&id=OS22&locale=EN&userlocale=EN_US

  • How could I align all divs at once in dreamweaver?

    Hi,
    How could I align all divs at once in dreamweaver? I have more than 50 divs, and I want to change the alignments for them all at once, let we say "center" how could I do that especially I'm using the fluid grids layout.
    Thanks.

    Well, I'm doing something like this now, so I'll take a shot at it, and then we can wait for expert comments.
    <head>
    <style>
    .manydivs {
        background-color:black;
        margin-top:10px;
        margin-left:auto;
        margin-right:auto;
        margin-bottom:10px;
        border:1px solid black;}
    </style>
    </head>
    <body>
    <div class="manydivs">Yoyoyo</div>
    <div class="manydivs">Yoyoyo</div>
    <div class="manydivs">Yoyoyo</div>
    <div class="manydivs">Yoyoyo</div>
    <div class="manydivs">Yoyoyo</div>
    </body>
    Just by changing the style section, all of them will change.
    You can assign other sub-behaviors with other methods.

  • Open all pages from last session

    Occasionally, safari will die. When I restart safari:
    is there a function to open all pages from last session?
    does firefox have this function? I thought I saw it within firefox, but I can't find it now. If this function is in firefox, where is it?

    In Safari... History > Open all pages from last session
    Firefox should do it automatically.
    Dave

  • Footer display without space in all page (in footer place)

    Hi  All
    wish  you merry cristmas.
    in my layout my customer wants  all pages contains the record upto last  .
    if i will dispaly upto last  in main window , then where i will make the footer .
    when i am making the footer in first page all the pages footer space is comming blank
    which my custmer does'n't want.
    By....

    Hi  Sai ,
    Thanks , for reply .
    sorry , i not using the table
    i am selecting the data and displaying on all pages
    and use the templage for table .
    but what is happening , all the pages  displaying data upto footer  but last 100 cm comming blank  due to  footer place.
    and the last page comming footer
    But my customer doesn't want  to blank  in place of footer.
    by....

  • Page numbers on ALL pages

    I'm trying to insert page numbers on ALL pages in a document in InDesign CS4. But I can only get page numbers to the page 74? This is so annoying, and it's due on monday, and I'm running out of time. Can anybody tell me, short and easy, how I can get page numbers on every page in my document? (Besides the front page - but I know how to not get the page number there.)
    Thanks!
    Ingvild

    Huh? Simply put, you place the page number marker in a text frame on your master page(s), and you ensure that one of those master pages is applied to all pages where you want a page number.
    Is that what you've done? What is not working? Is it page 74 and higher that is a problem? Just page 74?
    Does page 74 use a different master page that doesn't have the page number marker?
    Or is your document corrupt? [Did you try exporting to IDML or INX and re-opening the export?]

  • How to make the common control button for all pages in TABCONTROL​?

    Dear all,
               I'm using TABCONTROL for my application. I'm having STOP and SAVE control. I have to show this button to all pages  in TABCONTROL.. How do i make it?
    Kindly help me?..
    Regards,
    Srinivasan.P
    Solved!
    Go to Solution.

    Hi srinivasan,
    If you want to keep "Save" and "Stop" common, Why do you want to keep them on Tab control? Is your tab control taking entire space on Front panel? If so, you can have SAVE and STOP on other vi, and you can call this vi (MODAL).
    Gaurav k
    CLD Certified !!!!!
    Do not forget to Mark solution and to give Kudo if problem is solved.

  • How can i print all pages instead of only the first page using firefox

    How can i set firefox to print off my mac to my lexmark printer all pages i want. It is only printing the first page as of about 4 days ago
    == This happened ==
    Every time Firefox opened
    == about 4 days ago. it works ok on safari!

    Then duplicate that button to pages 3-23.
    To do that effectively go to Form Edit mode, right-click the button and select Duplicate Across Pages.

  • Redirecting all pages from old URL to index page of new URL

    Hello everybody..
    I have an Apache configuration question, can't work out the procedure in Server Admin.
    Basically I have a website at "oldurl.com". In Server Admin, I have the site set to serve a PHP file which runs a 301 redirect to "newurl.com". Works nicely.
    Trouble is, if somebody requests "oldurl.com/somepage", the 301 redirect does not function.
    I need all pages on "oldurl.com" to forward to the homepage of "newurl.com".
    I suspect I need to type something into the "URL Aliases and Redirects" pane in Server admin, and some sort of wildcard, but I'm stumped. I have read about fiddling with the .htaccess file, but surely this is not necessary?
    Hope you can help. Thank you!

    To give a more detailed (and just possibly relevant) example of what koncept's talking about, suppose you wanted to redirect browsers from any page on the old domain to a corresponding page on the new domain (e.g. http://oldurl.com/this/that/theother.html would redirect to http://newurl.com/this/that/theother.html, rather than just http://newurl.com/). You'd make a rule in the oldurl.com site like this:
    Type: RedirectMatch
    Pattern: (.*)$
    Path: http://newurl.com$1
    The .* matches zero or more anythings, the $ matches the end of the url (to make sure we get the whole thing, not just part of it), and the parentheses capture the match so we can use it in the redirect path as $1. Note that the pattern is matched against the path part of the original url (i.e. "/this/that/theother.html" in the example I gave earlier), so we can just tack it onto the new domain name and we're set.

Maybe you are looking for

  • How to avoid blank page in the report?

    adding a field in the grouping and checking the page break option means then we are getting blank page as the first page of the report? How to avoid this blank page?

  • Inserting button in table

    I need insert buttons in html table to display them well aligned. I have a idea : I created html in region. The html contain <tab ...></tab> Is possible insert button in the table?

  • RAID is not an option/not available/​missing in BIOS Storage Options?? HP Envy 700-047c

    Hello - I have an HP Envy 700-047c. It came with a 2 TB HD. I put in another 2 TB HD same model/type. The system in the BIOS and Windows 8 sees the new drive. However, when I boot and go into F10 BIOS/HP Setup utility, go to Storage menu, select Stor

  • Insert file in db column

    Hi all i'm not very experienced in p-sql so i have an answer. Scenario: Open VMS System with Oracle 9 Problem : i want to insert a text file in the db by calling a procedure from Pro Cobol I see that is possible to pass the url and read the file with

  • Sales order reles process

    hello guru's i need sales order relese process. how can i map in sap. if know any one please help me? regards dharma