Page size in Script

Hi folks,
  I have defined two pages in Script (i.e., FIRST and NEXT) with different layouts. The output has 9 pages. The alterations for the window size are being reflected only to the first page the other pages in the output are remaining constant. Please suggest how can i resize the layout for other pages in output.

Hi,
Try this.
Page Windows -> First (first page name ) -> Standard Attributes (Left margin,Upper,Right,Lower ).
For all windows in First page.
Page Windows ->Next(second page name) -> Sizes of the Windows.
Check also in Pages Tab u have assigned the Next Page Name.
Regards,
Nithya.

Similar Messages

  • [JS CS5]How to get Custom Page size

    I've been searching the answer of this simple question but looking no way around.
    I have an InDesign document with different page size e.g. left page width is 621 pt. and on the same document right page width is 837 pt.
    Now I need to get the width of pages using script but app.documentPreferences.pageWidth return standard document preset size(621 pt.) not the custom page size.
    Does any one have the Idea to get custom page size using script.
    Thanks in advance
    Mac

    Mac,
    as documentation is showing there are some new properties of "page" since InDesign CS5.
    Among those is:
    bounds    Array of Measurement Unit (Number or String)    readonly    The bounds of the Page, in the format [y1, x1, y2, x2].
    So:
    myPage.bounds
    and pageWidth of the documentPreferences might be:
    myPage.bounds[3]-myPage.bounds[1]
    unless  myPage is transformed (e.g. rotated and/or sheared and/or scaled) with:
    myPage.transform()
    void transform (in: CoordinateSpaces, from: varies, withMatrix: varies[, replacingCurrent: varies][, consideringRulerUnits: bool=false])
    Transform the page item.
    var d = app.activeDocument;
    var myPage = d.pages[0];
    var oldPB = myPage.bounds;
    var rAngle = -45;
    var sAngle = 40;
    var myTransformationMatrix1 = app.transformationMatrices.add({counterclockwiseRotationAngle:rAngle});
    myPage.transform(CoordinateSpaces.INNER_COORDINATES, AnchorPoint.CENTER_ANCHOR, myTransformationMatrix1);
    var myTransformationMatrix2 = app.transformationMatrices.add({clockwiseShearAngle:sAngle});
    myPage.transform(CoordinateSpaces.INNER_COORDINATES, AnchorPoint.CENTER_ANCHOR, myTransformationMatrix2);
    var newPB = myPage.bounds;
    $.writeln(oldPB);
    $.writeln(newPB);
    Now oldPB and newPB will differ a lot.
    So, the question remains: what is a reliable way to show if the myPage was or was not transformed against documentPreferences.pageWidth or if  myPage is of rectangular shape at all. See the possibility of adding a sheer angle to the transformation matrix. Also see screen shot:
    Transform_Page_CS5.png
    Uwe

  • Print to different printers by page size

    Hi, i have a problem,  i need to print documents that have inside a lot of  different size pages(a4,A3,a1,A2,A0, a4x3 e.t.c.). Is it possible automaticly somehow to redirect a4,A3 pages to one printer and a1,A2,A0, a4x3 e.t.c. to other while printing whole file. I think this function will be useful in next acrobat version.
    something like this,dewading A3 to two A4 not needed
    to acrobat team:
    Did you thought about function that can make templates to printer like it made in AUTOCAD ? (*.pc3 files). It will be usefull when printer driver is not possible to save alot of page size formats. Autodesk fix this problem by making templates(like virtual printers) through that is possible to print, and in that is possible to save alot of page size formats that don't have original printer driver. It will be great if acrobat could use AUTOCAD *.pc3 templates to print through.

    Hi,
    Normally Outlook rules only print via the default printer, selecting the printers is beyond the control of Outlook build-in rules.
    If you have a rule written via a script, I suggest you post the question and the script to MSDN forum, in which you can get script specific support:
    http://social.msdn.microsoft.com/Forums/office/en-US/home?category=officedev
    The reason why we recommend posting appropriately is you will get the most qualified pool of respondents, and other partners who read the forums regularly can either share their knowledge or learn from your interaction with us. Thank you for your understanding.
    Regards,
    Melon Chen
    TechNet Community Support

  • Problem with total page numbers in Scripts

    Hi,
    I have a problem with total number of pages in the Script.
    I have a script of 15 pages.
    On every page, I am using &PAGE& of &SAPSCRIPT-FORMPAGES(C)&.
    Problem is : I am getting only single digit for SAPSCRIPT-FORMPAGES as long as the page number remains in single digit - like -
    1 of 1
    2 of 1
    3 of 1... till 9 of 1.
    But from 10th page, it is printing :
    10 of 15
    11 of 15
    12 of 15... till 15 of 15.
    So, i think the symbol SAPSCRIPT-FORMPAGES(C) is filled with value 15 , but it is prinitng only the first digit '1' for pages 1 to 9 and then printing both the digits '15' for pages from 10 onwards.
    So, please help me out in this problem.
    Thank you.

    Hi Ven,
    The CONDENSE option cannot be used on the program icon SAPSCRIPT-FORMPAGES
    (C) without an explicit length specification: This symbol is
    only replaced with a value after the form has been completely edited, as the
    total number of pages of a form is first known in the program function
    END_FORM or CLOSE_FORM. However, the size of the symbol (number of
    characters) is reserved correctly when the symbol first occurs, with the
    current page number. Therefore, only one character is reserved for option C
    (CONDENSE) on pages 1-9, two characters on pages 10-99, and so on.
    If you are sure that the total number of pages doesn't cross 99(i.e 2-digit number), then use the FORM pages as SAPSCRIPT-FORMPAGES(2CZ).
    Here Z will suppress the leading zeros, for the total number of pages.
    Hope this information would be useful for you.
    Reward points if this is useful.
    Pavan.

  • Change Page Size of a Form

    I created a form in Adobe Acrobat Pro from a spreadsheet that I had printed to PDF. However, the PDF was in a landspace orientation rather than a portrait orientation. Does anyone know how I can change the page size and orientation of the form. I tried opening it importing it into LifeCycle Designer, but it messes up my java script calculations. If I print it to another PDF it no longer remains a fillable form.

    You really need to go back to your spreadsheet program and properly orient it there. Consider a PDF only a piece of paper that you created. You might be able to create the new PDF and then use replaces pages in the old PDF to keep the form fields. This last step is the typical process to keep the form fields. You will probably still have to move the fields. I am just not sure if the orientation and such will be kept with the replace pages, but that is where I would start. You could also copy the fields from one PDF to the other.

  • Getting the page size in PDF file

    i want know how do get the page size in PDF file befor placing every page in document
    for example height=297 mm And width=210mm

    This script:
    http://indesignsecrets.com/zanelli-releases-multipageimporter-for-importing-both -pdf-and-indd-files.php
    answers all your questions.
    Peter

  • Change page size in Acrobat

    I'm working on a newsletter in Acrobat that is 8.5x11, and I need to change the page size to 8.5x14 to fit all of the content and print the larger page. Is there any way to do this in Acrobat? Thanks.

    If you just select that paper size and choose Fit in the print dialog the application will do it for you.
    If you want to actually scale the page to the new size, including all the content in it, you would need to use an imposition plugin or script.

  • Acrobat 9 "Choose paper Source by PDF page size" prints as thumbnail

    I have a customer who is trying to print a document that has different page sizes, eg. p.1 is 8 x 11, p.2 is 11 x 17. He can select the page size manually and everything works as expected. If you put a check mark in "Choose paper Source by PDF page size" it prints as backward thumbnails on 8 x 11. Selecting "print as image" makes it fill the page, but only prints on 8 x 11. Changing the printer driver to PCL did not fix, nor did installing an updated PS driver. All updates have been installed. I called tech support and they basically just gave me link to the script they use during troubleshooting. I also did a google search, but haven't come up with a valid answer. It is Acrobat 9 Standard on Win XP. Any advice is good advice.

    It's a Windows only feature: http://kb2.adobe.com/cps/332/332720.html#main_Mixed_sizes

  • Getting the page size and knowing how many pages they are in PDF file

    Hi There,
    when i do this script (
    var myPDFFile = File.openDialog(["Choose a PDF File"]); ) 
    with JS via Windows it is used for opening a new PDF file when i import this file i need to
    get the page size and how many pages they are in PDF file. but i dont know how to do it.
    please help me.

    Ask here: http://forums.adobe.com/community/indesign/indesign_scripting

  • Batch change page size of InDesign documents

    I have about 300 one-page InDesign (cc 2014, Mavericks) documents of varying page sizes. Each page is 4 inches wider and 4 inches taller that the content of the page. The content is in the middle of the page—effectively making a 2-inch margin (but with no margin guides) around the content. What I need to do is get the page of all documents to be one specific page size, 7.125” x 9.75”.
    I was able to accomplish this by putting all the docs in a book, making a master page 7.125” x 9.75” on one doc, synching the other docs, and then opening each doc and applying the master page. The last bit was a little labor intensive and I would like to avoid it going forward.
    Could a script be written that opens selected InDesign docs (in or not in a book) and changes the various page sizes to the one size needed? I’ve never written scripts before so have no idea if it is possible or how to do it.
    I put the following on another forum and got help but it required that I have control over the creation of the original docs. And I don’t. “Is there a way to globally apply a master page to all pages of all docs in a book?”
    Any help is greatly appreciated.

    Hi,
    Is this your requirement,
    var myFolder = Folder.selectDialog("Select the Folder contains Indesign Files")
    var myFiles = myFolder.getFiles("*.indd")
    alert("Total Indesign Files: " + myFiles.length)
    for(i=0; i<myFiles.length; i++)
        app.open(myFiles[i])
        app.scriptPreferences.userInteractionLevel = UserInteractionLevels.NEVER_INTERACT;
        var myDoc = app.activeDocument;
        myDoc.viewPreferences.horizontalMeasurementUnits = MeasurementUnits.inches;
        myDoc.viewPreferences.verticalMeasurementUnits = MeasurementUnits.inches;
        with(myDoc.documentPreferences){
        pageHeight = "7.125";
        pageWidth = "9.75";
    app.activeDocument.save();
    app.activeDocument.close();
    Regards
    Siraj

  • Book Module - how to change page size?

    I'd like to design book pages for my existing hard covers - A4 landscape and portrait. Also for specific 12x12 cover which takes 11.69" x 12" paper.
    Have watched various YouTubes, search within support - but haven't found a reference to add preferred sizes. Yet.
    Can anyone help on this one please?

    Yep, that's how I am doing it. I just wanted to make sure that I was doing it correctly. I need to keep debugging then and figure out what the real problem is. I am new to all of this (obviously) and I just needed to make sure I had the idea correct. I didn't mean to use document and page interchangeably, I understand that you can't have different size pages in the same document.
    Thank you for your help.
    [FYI]I created a class that creates a document with most of the document settings that I use (e.g. a standard number of pages, non-facing pages, units in inches, etc.) but I don't specify a page size, that's something that varies between documents, so I figured I could just apply that after I have created the page. The problem is, when I try to create multiple documents it doesn't work. The script will create the first document using the default page size settings and I can't get it to change the page size, but then the next document will be created using the page size I tried to apply from the previous document that the script created. I am sure this is totally a coding error somewhere else. I will try to track it down. Just when I think I have this stuff figured out . . .

  • HOW TO: Change page size after page is created?

    Is there a way to change the size of a page after the page has been created? In the documentation, the only way I have seen to set the page size is in a "with" statement right after creating the document. I have need to change the size of the document after a document has already been created. Any ideas?

    Yep, that's how I am doing it. I just wanted to make sure that I was doing it correctly. I need to keep debugging then and figure out what the real problem is. I am new to all of this (obviously) and I just needed to make sure I had the idea correct. I didn't mean to use document and page interchangeably, I understand that you can't have different size pages in the same document.
    Thank you for your help.
    [FYI]I created a class that creates a document with most of the document settings that I use (e.g. a standard number of pages, non-facing pages, units in inches, etc.) but I don't specify a page size, that's something that varies between documents, so I figured I could just apply that after I have created the page. The problem is, when I try to create multiple documents it doesn't work. The script will create the first document using the default page size settings and I can't get it to change the page size, but then the next document will be created using the page size I tried to apply from the previous document that the script created. I am sure this is totally a coding error somewhere else. I will try to track it down. Just when I think I have this stuff figured out . . .

  • Altering page-size in SaveDocsAsPDF.jsx

    I've been reading this forum and can't seem to find a way to get the SaveDocsAsPDF script to create a .pdf other than 8.5x11.
    If I Print or SaveAs to .pdf, the picture (whether .psd or .jpg) resolution is horrible. If I use the script, I get an 8.5x11 Landscape .pdf that contains the middle of an 11x17 Portrait file but with great resolution.
    Is there a way to explicitly force an 11x17 size?
    Thanks,
    David
    =-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=
    Desired outcome: 11x17 .pdf of an Illustrator file that contains a .psd, a .pdf, and some text. Trying to create a fold-in-half calendar with a picture on the top (.psd), the calendar (.pdf), and a title (text)

    For what it's worth, I no longer have a need for this option in the SaveDocsAsPDF script in that I, finally, figured out how that Save As... PDF using PDF/X-4:2007 Standard gives me the full, tabloid size.
    Although I'd still be VERY interested in help altering the page size in the SaveDocsAsPDF script.
    David

  • PHYSICAL PAGE SIZE IN REPORT DESIGNER 2.5

    I have designed a report in character mode and it prints on a page size of 15" * 5.5". Only one record is printed on one page. I have set the page size at design time and looks fine. I have also defined page as 130 * 33 characters. But when you run the report and send it to printer, and the end of each record page feed skips one page. i.e. printer feeds 11" paper or 66 line paper. Now how can I make the printer to set page size 5.5" or 33 lines.
    Thank you.

    Check on your printer defintion file and modify it to match with your page size or print area. Hard work to modify from standard
    HP files to legal (242x66) and letter (88(?)x134) since nobody or vendor or Oracle
    provide (max)many columns and rows on letter and legal. I had to modify two special printer define files. I am glad to print exact layout to the HP printer without contact any vendor or Oracle. Also I dropped my special files to Window NT shared disk area and Later I am only person to run Oracle Report 2.5 output at my personal computer. Therefore you must work very hard to test, test, test and understand PCL language script for your need or this page size than standard letter or legal. Sam

  • How to change/crop to larger page size?

    Hi,
    I have the following script to loop through each page in a document, check if each page is A4 Portrait size, and if it is, change it to US Letter paper size:
    //Change Portrait A4 Page Size to US Letter Size
    //Values are in points and there are 72 points per inch
    //Check if page is Portrait A4 size (if Yes, then crop to US Letter otherwise ignore)
    for (var i=0; i<this.numPages;i++){
    var rCrop = this.getPageBox("Crop",i);
    if (this.getPageBox("Crop",i)[1]<842 && getPageBox("Crop",i)[1]>841 && getPageBox("Crop",i)[2]<596 &&
    getPageBox("Crop",i)[2]>595){
    rCrop[0] -= 8.28; // Adjust Left Side
    rCrop[1] -= 24.84; // Adjust Top Side
    rCrop[2] += 8.28; // Adjust Right Side
    rCrop[3] += 24.84; // Adjust Bottom Side
    this.setPageBoxes("Crop",i,i,rCrop);
    The script crops the top and bottom of each page correctly, but only expands the width of the left and right sides on the first page. After doing some experiments it seems the script will crop pages to a smaller size but struggles to expand pages to a larger size (in converting from A4 to US Letter I need to crop top and bottom to smaller size, but expand left and right sides to larger size). I tried changing "Crop" to "Media" but this didn't help.
    Any ideas?
    Many thanks. HJ

    The page size options are limited, but are in the crop tool. If there are no tags or other markup, you can also print to a new PDF and adjust the size in the printer interface -- sometimes the simplest method, but not normally recommended. The rotation can be done in the document menu and then saved. The rotation that is typically on the toolbar are only for the current view and does not save with the PDF. Many of these you can use a batch process to resolve (in AA8 that is under the Advanced>Document Processing). The better method is to setup your Adobe PDF printer to create the correct page size and orientation in the future. You can setup to typically expand to fit, select a paper size, and have the settings set to auto-rotate. The later is based on the text that is found on the page. The margin elimination is also part of the crop tool. Hopefully this at least gives you some things to look at. Unfortunately, the tools get moved around with every version, so you may have to search for the tools.

Maybe you are looking for

  • Is there anyway to lock a Shared-List

    Background to this: I am deploying an Apex Reports Application. I have set up two lists. The first List is a list of all the reports that the company delivers. The second list is a list of reports that the client delivers. These lists are on separate

  • Can i make a video and use an external mixer for the sound?

    can i make a video and use an external mixer for the sound with my ipod touch?

  • How to escape XML in BPEL?

    I have a part of a outputmessage in an element HTML of xsd:any. This element contains HTML which i have to transform to escaped XML. Therefore i created the following embedded java code. String htmlContent = ((oracle.xml.parser.v2.XMLElement)getVaria

  • USPS  Click-N-Ship

    Hello, I am trying to figure out how to use the Post Office's Click-N-Ship to print labels for mailing packages. I have dowloaded Adobe Reader Ver 8.0.0. When I attemtp to print a label, I get a print dialogue box. Hit the print button and nothing ha

  • Table hierarchy

    I have user which consists of 150 tables. I want to hierarchical list of tables in such as way that referential tables will be displayed first then base tables display. e.g. Dept and Emp table. Emp(dept_id) references to Dept(dept_id) So I should dis