Resizing document from upper left proxy

Ask a Question related to Adobe Indesign Macintosh, Design and Development.

  1. #1

    Default Resizing document from upper left proxy

    IDCS - Is there a way to resize a page (document setup) and have it resize from upper left of current dimensions?

    If I have an ad layout, 3" x 4" on a letter size page (set up this way to add notes for customer below the ad) and ad it's not perfectly centered. After ad is approved I remove notes and want to make document 3" x 4" for pdf output, so I place the ad at 0X 0Y coordinates, reduce document size but it reduces from the center, not upper left... so I have to reposition it--any tips? Thanks
    Yoli_Thompson@adobeforums.com Guest

  2. Similar Questions and Discussions

    1. All text appear in upper case HELP!
      I don't know why but everything I enter appears in upper case. My caps are off and I checked everywhere I could think off to find how to turn off...
    2. Loc Upper Model
      How to find the referenced 2D point within the rect of a sprite (using the active camera) upper a specified model? It seems an inverce calculation...
    3. How to create a proxy class without a WSDL document?
      Hello, I'm new to web services, so please forgive my ignorance. I need to create an interface with a third party Web Service. From what I...
    4. Movie refuses to load in Upper Left instead of centered
      I'm using director 6.5 (old i know) and when I go to: Modify->Movie->Properties I see a setting called "Stage Location". I change this to...
    5. Resizing Layers without affecting the Entire Document
      I have a document template and I've created a new layer with an image. How do I resize only that image or that layer without affecting the rest of...
  3. #2

    Default Re: Resizing document from upper left proxy

    You could try this script.




    tell application "Adobe InDesign CS2"
    set aDoc to active document
    set crntXSize to page width of document preferences of aDoc
    set crntYSize to page height of document preferences of aDoc
    set myDialog to make dialog with properties {name:"Seitengröße ändern"}
    tell myDialog
    make dialog column
    tell the result
    make static text with properties {static label:"Pagewidth:"}
    make static text with properties {static label:"Pageheight:"}
    end tell
    make dialog column
    tell the result
    set nuXSizeField to make real editbox with properties {edit value:crntXSize}
    set nuYSizeField to make real editbox with properties {edit value:crntYSize}
    end tell
    end tell
    set nu to show myDialog
    if nu is true then
    set nuXSize to edit value of nuXSizeField
    set nuYSize to edit value of nuYSizeField
    set moveByX to (crntXSize - nuXSize) / 2
    set moveByY to (crntYSize - nuYSize) / 2
    -- destroy dialog
    else
    destroy myDialog
    return
    end if
    set enable layout adjustment of layout adjustment preferences of aDoc to false
    set page width of document preferences of aDoc to nuXSize
    set page height of document preferences of aDoc to nuYSize

    set allPage to every page of aDoc
    repeat with aPage in allPage
    if side of aPage is right hand then
    move every page item of aPage by {0, moveByY}
    else if side of aPage is left hand then
    move every page item of aPage by {2 * moveByX, moveByY}
    else if side of aPage is single sided then
    move every page item of aPage by {moveByX, moveByY}
    end if
    set allGuides to every guide of aPage
    repeat with aGuide in allGuides
    if orientation of aGuide is horizontal then
    set location of aGuide to ((location of aGuide) + moveByY)
    else
    if side of aPage is right hand then
    else if side of aPage is left hand then
    set location of aGuide to ((location of aGuide) + (2 * moveByX))
    else if side of aPage is single sided then
    set location of aGuide to ((location of aGuide) + moveByX)
    end if
    end if
    end repeat
    end repeat

    set allMSpreads to every master spread of aDoc
    repeat with aMSpread in allMSpreads
    set allMPages to every page of aMSpread
    repeat with aPage in allMPages
    if side of aPage is right hand then
    move every page item of aPage by {0, moveByY}
    else if side of aPage is left hand then
    move every page item of aPage by {2 * moveByX, moveByY}
    else if side of aPage is single sided then
    move every page item of aPage by {moveByX, moveByY}
    end if
    set allGuides to every guide of aPage
    repeat with aGuide in allGuides
    if orientation of aGuide is horizontal then
    set location of aGuide to ((location of aGuide) + moveByY)
    else
    if side of aPage is right hand then
    else if side of aPage is left hand then
    set location of aGuide to ((location of aGuide) + (2 * moveByX))
    else if side of aPage is single sided then
    set location of aGuide to ((location of aGuide) + moveByX)
    end if
    end if
    end repeat
    end repeat
    end repeat
    end tell




    As usual I cannot guarantee that it covers all eventualities, so be sure to save before running it.

    Gerald
    Gerald_Singelmann@adobeforums.com Guest

Posting Permissions

  • You may not post new threads
  • You may post replies
  • You may not post attachments
  • You may not edit your posts

1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24 25 26 27 28 29 30 31 32 33 34 35 36 37 38 39 40 41 42 43 44 45 46 47 48 49 50 51 52 53 54 55 56 57 58 59 60 61 62 63 64 65 66 67 68 69 70 71 72 73 74 75 76 77 78 79 80 81 82 83 84 85 86 87 88 89 90 91 92 93 94 95 96 97 98 99 100 101 102 103 104 105 106 107 108 109 110 111 112 113 114 115 116 117 118 119 120 121 122 123 124 125 126 127 128 129 130 131 132 133 134 135 136 137 138 139