Script that resize a document of 50% to match the two resolutions of the iPad

Hi guys,.

My first issue of Appliness (www.appliness.com) is a folio of 768 x 1024. For the next issue, I'll output two renditions: 1536 x 2048 and 768 x 1024.

I'm not an InDesign expert, so I tried to find the best workflow with my friend Stephane barrel. The best way I found is to start by creating my folio with pages of high resolution (2048 x 1536) and in the end, all reduce by 50% to obtain the return of the iPad1/iPad2. Manually, it is not easy collapse all. So I ended up writing a small JavaScript which:

  • Gets the paper orientation (portrait and landscape)
  • unlock all layers in the document
  • loop through all the pages
  • release items from master pages
  • create an empty rectangle which corresponds to the size of the page (to get a well defined page Center all in scaling)
  • includes all elements of the page
  • everything that the scale of 50%
  • resize pages to 768 × 1024
  • changes the properties of the document to define the new dimensions and correct orientation

DISCALIMER: It works well for my magazine. As I'm not an expert, I can't guarantee that it will work with your pages, but it's worth a try... InDesign there is no risk. It will produce the documents of 768 x 1024, but you will lose your layers. If consider just as an 'exit' or an 'export', a "flat copy" to quickly get a 768 x 1024 made of your work to 2536:2048.

I posted my JavaScript here code: http://appliness.com/automatic-rescale-with-indesign/

I will try to attach the script in this post. As this is the code, I don't know if it will be accepted.

I hope it helps.

Thanks for sharing this script. It is especially useful if you want to create different source files sets, although I find that the creation of source documents 1024 x 768 and adding them to 2048 x 1536 folios works very well for me.

Cookbooks of DPS is a good place for you to post your script. Mark has recently posted a video of scrollable frames. Please do not hesitate to add a recipe:

http://cookbooks.Adobe.com/digital_publishing_suite

Tags: Digital Publishing Suite

Similar Questions

  • Can I disable the F1 key for help from Adobe? I want to use the F1 key to open a script that I wrote. I don't want the F1 key to open the Adobe help.

    Can I disable the F1 key for help from Adobe? I want to use the F1 key to open a script that I wrote. I don't want the F1 key to open the Adobe help.

    Edition > keyboard shortcuts

  • I need a javascript script that would allow an image to import into the drive. I have a Mac so LiveC

    I need a javascript script that would allow an image to import into the drive. Only, I have a Mac so LiveCycle is not an option.

    Screen shot 2010-07-17 at 12.42.41 AM copy.jpg

    OrangeWhip area is where a user would click to download an image.

    Screen shot 2010-07-17 at 12.43.12 AM.jpg

    I found this form and unable to crack how to proceed. Any suggestions?

    For forms created with Adobe Acrobat read this:

    http://www.PlanetPDF.com/Enterprise/article.asp?contentid=import_images_into_field_with _

  • How reset you the default so that saving a document is automatically set on the computer.

    We want than ever she set to the cloud.  We want the cloud to be available when we choose it.

    Where is this setting located?

    WPC

    Charm right > settings > change pc settings >

  • Recommend an app for mac that can convert several videos at once for the iPad 3

    Recommend an app for mac that can convert several videos at once (or better yet create a queue) for iPad 3, preferably free, if not yet ok.

    I can't say enough good things about the hand brake. Visit the Web site and see if it's what you're after. And Yes, it's free!

  • Script that can delete objects by coordinates

    I have a long document and I need to delete some text blocks that appear on each page. These executives share the same y coordinate and others who share the same x coordinate. Is there a script that can locate text blocks and remove throughout the document?

    I am running Windows so no applescript

    Now to the second part:

    If you have your current text block, you can read the geometric boundaries. Since you want to find only managers with specific or coordinated x, you only y1 and x 1. Values that may have a large number of decimal places, it's a good idea to round the values, as Peter mentioned.

    var curDoc = app.activeDocument;
    var allTextFrames = curDoc.textFrames;
    
    var yValue = 11.5;
    var xValue = 20;
    
    var nTextFrames = allTextFrames.length-1;
    
    for (var i = nTextFrames; i >= 0; i--) {
      var curTextFrame = allTextFrames[i];
      var gB = curTextFrame.geometricBounds;
      var y1 = gB[0].toFixed(2);
      var x1 = gB[1].toFixed(2);
    
      if (y1 == yValue) {
        curTextFrame.remove();
      }
      if (x1 == xValue) {
        curTextFrame.remove();
      }
    }
    
  • Need help! Will pay! Need a script that will change the size of the art on several files.

    I'll PayPal someone MONEY right now for this script. I have more than 400 files to process.

    System/software: Adobe Illustrator CS6 on PC
    Filetype (s): .ai

    I have more than 400 .ai files that contain work in all different sizes. I need a script that resizes the work at certain height or width specifications below.

    Some of the height of the work is greater than the width, some of the width of the work is greater than the height.

    If the overall of the art vertical height selected is greater than the width, I need the new height to be 166,6 pt
    If the horizontal art width selected is greater than the height, I need the new width to 166,6 pt

    The value of the width/height unchanged at 166,6 pt must be limited to the new values.

    If possible, I also need to change the size of the artboard to 216px x 216px. He is currently in 512px x 512px.

    Help, please! I'll pay!

    EmojiStickers wrote:

    I'll PayPal someone MONEY right now for this script. I have more than 400 files to process.

    Help, please! I'll pay!

    What is your budget?

    Check this thread and see if it helps, I have a script to resize work plans

    http://forums.Adobe.com/message/4853547#4853547

  • Cs6 Dreamweaver, is there an alternative to mysql scripts that have become obsolete

    Hello community, is there a free alternative to mysql scripts that are obsolete in dreamweaver cs6?

    CNFDI143046 wrote:

    Hello community, is there a free alternative to mysql scripts that are obsolete in dreamweaver cs6?

    The only free extension, I must learn it yourself and it is not so difficult. If you are willing to give up a few hours of your time, you'll wonder why you ever needed to rely on an extension in the first place. More extensions can do everything (very limited) - once you have a better idea of what's going on you will be able to manipulate the code to do exactly what you want - not what the name extension wants you to do.

    Look at this simple step by step (part 9) mysqli introduction:

    PHP and MySQL with MySQLi: Introduction (part 1/9) - YouTube

  • I created a Javascript script that adds a watermark on the document action "paper print".  This works in Acrobat Pro, but does not work in the drive.

    I created a Javascript script that adds a watermark on the document action "paper print".  This works in Acrobat Pro, but does not work in the drive.  I am a novice using Javascript, so what am I doing wrong?

    Cannot use either addWatermarkFromFile or addWatermarkFromText methods of document with player as shown in the documentation. You can hide/display the form fields and the existing layers, so consider this approach.

  • The script that creates the default tabs in the margin of the document.

    I need a script that creates marks (1 cm margins: top, left, right, down and two others in the Center, a vertical and a horizontal) independent of the document size. Would look like this: whenever I create a new document, execute an action which rodadoria the script to create a document with the enclosed area, similar to the figure below: thank you!

    http://zip.NET/brsW9j

    #target photoshop;
    if(documents.length) main();
    
    function main(){
    var strtRulerUnits = app.preferences.rulerUnits;
    var strtTypeUnits = app.preferences.typeUnits;
    app.preferences.rulerUnits = Units.PIXELS;
    app.preferences.typeUnits = TypeUnits.PIXELS;
    var cm = activeDocument.resolution/2.54;
    var W =activeDocument.width;
    var H =activeDocument.height;
    guideLine(cm,"Vrtc");
    guideLine(cm,"Hrzn");
    guideLine(W-cm,"Vrtc");
    guideLine(H-cm,"Hrzn");
    guideLine(W/2,"Vrtc");
    guideLine(H/2,"Hrzn");
    app.preferences.rulerUnits = strtRulerUnits;
    app.preferences.typeUnits = strtTypeUnits;
    }
    function guideLine(position, type){
        var desc27 = new ActionDescriptor();
            var desc28 = new ActionDescriptor();
            desc28.putUnitDouble( app.charIDToTypeID('Pstn'), app.charIDToTypeID('#Pxl'), position );
            desc28.putEnumerated( app.charIDToTypeID('Ornt'), app.charIDToTypeID('Ornt'), app.charIDToTypeID(type) );
        desc27.putObject( app.charIDToTypeID('Nw  '), app.charIDToTypeID('Gd  '), desc28 );
        executeAction( app.charIDToTypeID('Mk  '), desc27, DialogModes.NO );
    };
    
  • Need a script for resizing images of Portrait and landscape without having to first sort

    OK I downloaded this great script: Image Processor Pro to create multiple batches in a single shot.

    http://blogs.Adobe.com/jkost/2015/06/image-processor-Pro-for-Photoshop-CC-2015.html

    It's great, but I still have to run a tiny drop to resize the files exactly 374 x 498 and 276 x 385, after I cut them it will be "worthy", but this was not accurate.

    Here is my method:

    I have original TIFF that I have edited, original images is usually square. (sometimes they are not, and I wish I had a solution for that as well, but one thing at a time)

    Since these TIFF I execute the script to save to 4 different folders:

    Resize to 2000 x 2000 and rename to add sizing file name

    Resize to 500 x 500 and rename to add sizing file name

    Trim & resize to 374 x 498 and rename to add sizing file name

    Trim & resize to 276 x 385 and rename to add sizing file name

    Here's what it looks like:

    Screenshot2000x2000Script.JPG

    ScreenshotTrimScript.JPG

    Here's what it looks like once I launch my image processor:

    FinalResult.JPG

    and here is an example of the files in the folder XS with dimensions:

    XS.JPG

    Which is great! But now I have to go to sort my pictures SM and XS of landscape & Portrait and THEN run another drop on them to get them to fit exactly 374 x 498 and 276 x 385.

    SO please tell me there is a better way! I'm almost there!

    If the version of Photoshop supports done condition and the condition is a conditional action as you can get without learing scripting. The problem, actions must be in the same action game and the game cannot be renamed.  Here action must be used after Image processor makes pro then the image resizing made tho conditional actions can add the canvas so that the document of the exact size.

  • Resize the document to match the content

    Hello

    I would like to resize a document to match its content. This should be done by script. For example, I had only 3 items at the center of the document. In this case, these objects must be moved that all together (as a group) to the upper left corner of the document, then the document must be resized correctly, so no 'free' unused margin of space will be left. How can I do? I use InDesign Server for this task, he commands by JavaScript.

    Thank you for all the comments!

    This script follows the recipe:

    doc = app.documents [0];

    g = doc.pages [0].groups.add (doc.pages [0] .allPageItems);
    Bounds = g.geometricBounds;
    doc.documentPreferences.pageHeight = [2] limits - limits [0];
    doc.documentPreferences.pageWidth = limits [3] - limits [1];
    g.Move ([0,0]);

    Peter

  • Please help create a button detach that detaches a document that I have attached with a button join

    Let me apologize in advance for what is somewhat a complicated question. I found a thread on this forum that I was allowed to attach a file with a click of a button - now I want to remove this file.  Here's how I'm away.

    I created a form in Adobe Acrobat DC that allows you to attach a document in the form of a click of a button.  The way in which it is programmed, it's that the button itself with an action of mouse upward, the following Javascript code is executed:

    If (app.viewerVersion < 11) {}

    import_pre_11();

    } else {}

    import_11();

    }

    Then, there's a document level javascript to attach the file that is scheduled as follows:

    Initialize the attachment number

    attachment_num = 1;

    Original location of file attachment icon

    The value of x is incremented below

    FOPI var = {x_init:-72, 72 - x:, y: - 72};  In the lower left corner of the page

    function import_pre_11() {}

    If (app.viewerType = 'Reader') {}

    App.Alert ({}

    CMSG: "you must user Reader version 11 or later to attach files to this form."

    CTitre: "attach file error"

    nIcon: 3,.

    nType: 0

    });

    return;

    }

    Invite the user to import a file

    App.Alert ({}

    CMSG: "click the OK button to select a file on your system.',

    CTitre: "attach a file",

    nIcon: 3,.

    nType: 0

    });

    try {}

    var rc = this.importDataObject ("Attachment" + attachment_num);

    If {(rc)

    attachment_num += 1;

    App.Alert ({}

    CMSG: "attachment successful.\r\rOpen Panel attachments to access attached files.",

    CTitre: "attachment Successful."

    nIcon: 3,.

    nType: 0

    });

    } else {}

    App.Alert ({}

    CMSG: "attachment canceled.",

    CTitre: 'attachment cancelled. "

    nIcon: 3,.

    nType: 0

    });

    }

    } catch (e) {}

    App.Alert ({}

    CMSG: 'could not attach file.',

    CTitre: 'could not attach the file.

    nIcon: 3,.

    nType: 0

    });

    }

    }

    function import_11() {}

    try {}

    var annot = addAnnot({)

    page: event.target.page;

    type: "FileAttachment,"

    Author: the form "user."

    name: "attachment".

    point: [oFAP.x, oFAP.y].

    content: "the folder entry on:" + util.printd ("yyyy/mm/dd hh: mm:", Date()) new, "."

    attachIcon: "Trombone".

    });

    annot.cAttachmentPath; Prompt the user to select a file to attach

    oFAP.x += 18;  Increment the x for the icon location

    } catch (e) {}

    App.Alert ({}

    CMSG: "could not reach file.\r\rPlease report this error."

    CTitre: 'file attachment error. "

    nIcon: 3,.

    nType: 0

    });

    }

    }

    This process works perfectly.  What I want to do now, is to detach from the same document with the click of a button.  I understand very basic javascript, but using the forum create the script above.  Can someone give me a solution (if it exists), to help me to detach the file attached by the user with the script above? Thank you so much in advance!

    Sorry, it's my bad... It must be:

    this.syncAnnotScan ();

  • How to make a script to resize the image to fit the exact framework?

    Good afternoon

    My friend works on a task to do several images to adapt to the size of the image 500 x 700 px.

    We are working on this script, if she sometimes makes the height above 700 px.

    Can anyone help to change?

    ___

    doc = app.activeDocument;

    doc.changeMode (ChangeMode.RGB);

    var fWidth = 500;

    var fHeight = 700;

    If (doc.width > fWidth, 'px') {}

    doc.resizeImage (UnitValue(fWidth,"px"), null, null, null, ResampleMethod.BICUBIC);

    }

    else {}

    doc.resizeImage (null, UnitValue(fHeight,"px"), null, null, ResampleMethod.BICUBIC);

    }

    ___

    The thing is the need of the image to have a ratio of 5:7 to fit 500px 700px area.  An image can have a width and height of any number of pixels. All a camera will have a width and a height greater than the 700px. If your script above would create a very distorted portraits bouquet close

    Download the package of my action craft he has a script that I wrote for use in actions that make it very easy to do what you want.

    Scripts can be used in actions and actions can be used in scripts.  Photoshop scripts can also be programmed as a Photoshop plug-in.  When a plug-in is saved in action the plug-in saves the setting you used in its dialog box in the action stage. When the Action is played.  The plug-in does not display the dialog instead, it will use the setting saved in step of the action.  No user interaction is required action may be batched.

    Most Photoshop users cannot write scripts, but it have no problem using scripts to write than others.  As Adobe Photomerge, Image Processor, image Fit etc...

    I wrote a plugin script using Adobe adapt design Image that will make the selection of image format while maintaining the orientation of the document.  So if you have a 4:3 camera and a collection of pictures of her you landscape of 4:3 and 3:4 Portraits.  If you use my plugin aspectratioselection script in action and a followed centered 3:2 aspect ration of a culture of image and batch as the action on your images you would be left with landscapes of 3:2 and 2:3 Portraits.  The three step action, that's all you need registration.

    menu stage 1 file > automation > AspectRatioSelection...  In his dialogue game 5 7 central rectangle replace feather selection 0

    menu step 2 Image > Crop

    menu step 3 file > Automate > Fit Image in its width and height 700 px value dialog box

    You wind upward with 700x500px landscapes and portraits of 500x700px.

    I have created at least six of the lately. I use to do slideshows for my various devices.   I put the images I want to use in a folder of image source on my desk and play action creates six slide shows is a slide in a slide show on my desktop folder. In six of the subfolders. The Action is all two steps. The first step is running a script that deletes the folder slide shows.  The second step is a step in Image Processor Pro plugin.  This process, the image source in the slide shows folder file, save six series of jpeg images, it's six subfolders. Galaxy tab display 16:10 sideshow 2560 x 1600 and also as a 3:2 slideshow 2400 x 1600.  Surface Pro 3 sideshow 3.2 2160 x 1440, iPo4 4: slide show of 3:2 960 x 640, HDTV 1920 x 1080 and 4kTV 3840 x 2160. I take a coffee break... While the action runs.

    Package of shares of crafts UPDATE August 10, 2014 added conditional measures Action Palette tips.
    Contains

    Example of
    Download

  • All automation script that extends PDF to create bleeding?

    Hello world!

    I work for a mailing company and we receive constantly pdf of clients which have the color and work up to the edge, but the work is not any bleeding. "" When this happens, I usually place the pdf file (usually 8.5 "x 11") in a new InDesign document, copy each page, paste it on the original, shrink the new layer glued to the 1/8 "wide then use the tool free to extend 1/4 transformation ' so it adds bleeds for a new pdf (which is 8.75"x 11.25"with crop and bleed marks). And then do this for each side. If there are a few pages, it is not a big deal, but lately, we get 20 + page pdf and it takes much more time to create. So is there a script that will automate this? Or one that will add crop marks and bleeds to an existing PDF? Unfortunately, some documents have text goes almost to the edge, so I could just take the pdf file, expand it and re-export it. Thanks for any help!

    Adam

    Thanks for the suggestion of Laubender! I consider the question more.

    After having thought about it a bit more, why not take the pdf file, split the pages and create an action in photoshop which does essentially all this? If that's what I did. I created an action that extends just borders to add bleed and re-recorded each page 8.5 "x 11" as an image. It is easy to import images into a new document and export to PDF with guides for crop and bleed. I am looking for an InDesign script for the weeks to do essentially the same thing. It works for the majority of the work that we print (except some who has specific PANTONE), so this will save a ton of time now. Here is a link to the action I created if anyone runs into this problem. You can disable the "Save as" on the end, in the case where something needs to be adjusted. Bleeds.atn - Google Drive letter Thanks for all the help!

Maybe you are looking for

  • Satellite U920T - 10G - touch screen without any function

    Hello together, I have been using the nice nice feature now for a few weeks and start to have trouble with him. I have the problem that randomly touch screen without any function, I can touch the screenbut I want to, but without any reaction. It star

  • Will be this wall charger FRY my ipod?

    I'm trying to start with apple and their products and I have a question. I ordered an ipod touch 32 GB, but he says that he will not come with a wall charger adapter. I have one, but I want to do that I do not fry the battery the day that I get it. I

  • How can I get a ref to a ring in a cluster that lie in an array of clusters?

    I have a cluster (typdef to) with controls. Two controls is rings. I place the latter in a table. I then fill in the chart of the clusters with data. Can I get the ref to the rings in each cluster? I have to load individually, with strings [].

  • Damaged by a new original drive replacement.

    I hope I chose the correct boad...  Our Pavilion dv6 - 2173cl hangs after the display of the: wallpaper with the fame of the taskbar and the Start button logo Hp and Date/time button. The cursor shows with the blue 'busy' ring for several minutes the

  • Wrong name of operating system: Microsoft * r * Windows Server * r *?

    I bought a Windows VPS. Computer properties page does not display the Windows version. I run systeminfo > output.txt and output.txt wrote Host Name: WIN-HSSEHB0RKBD OS Name: Microsoftr Windows Serverr 2008 Standard OS Version: 6.0.6002 Service Pack 2