Script to add empty pages

MacOS 10.6.8, InDesign CS6, javascript
Hi - I'm often supplied with pdfs as spreads. From these files I have to create single page pdfs for imposition. I create a new, non facing page document and run 'Mulitpageimporter 2.5' to bring the spread into a page at x+3, y=-3, giving me a correct sequence of odd number pages. I then adjust the 'allow pages to shuffle' option allowing me to drag a new page into position to face the existing page containing the imported pdf spread and export to pdf.
This is okay for small documents, but I would like help with a script that would add the correct number of pages to the document (total document page number -2) and place them effectively as 'even' numbered pages eg every other page starting at page 2. If it could sort the shuffle option at start it would be good!
MTIA Steve
btw: I've now discovered the 'map to pages' option in the 'Mulitpageimporter 2.5' which improves efficiency of above, but again only practical for documents with small number of pages.

MacOS 10.6.8, InDesign CS6, javascript
Hi - I'm often supplied with pdfs as spreads. From these files I have to create single page pdfs for imposition. I create a new, non facing page document and run 'Mulitpageimporter 2.5' to bring the spread into a page at x+3, y=-3, giving me a correct sequence of odd number pages. I then adjust the 'allow pages to shuffle' option allowing me to drag a new page into position to face the existing page containing the imported pdf spread and export to pdf.
This is okay for small documents, but I would like help with a script that would add the correct number of pages to the document (total document page number -2) and place them effectively as 'even' numbered pages eg every other page starting at page 2. If it could sort the shuffle option at start it would be good!
MTIA Steve
btw: I've now discovered the 'map to pages' option in the 'Mulitpageimporter 2.5' which improves efficiency of above, but again only practical for documents with small number of pages.

Similar Messages

  • Script to Add Reference Page Graphics from Frame

    OK, I am ready to pull my hair out. I have looked high and low on the internet to find a place where I can view the RJ Jacquez segment about the script that lets you add images from your Frame reference pages to the RH styles for tip/note/warning/whatever. The only thing I can find is a twitter link, and I can't access twitter from work. PLEASE HELP!!
    Thanks in advance.........Melissa

    Hi Melissa,
    The required javascript to  add images from your Frame reference pages to the RH styles has been shared @ https://acrobat.com/#d=ddHvZY7gelnzm8rqwlAIXQ it is public share and does not require a log in
    Hope this helps
    Ashish

  • How to add a page in the SAP Scripts

    Hi All,
    I want to know how to add a page in the sap scripts. there is already sap script developed by some other person.
    Now I have to add a page in front of that and have to add some more data.I added a page in page windows but thats not at all working.
    Please help me out in this.
    Thanks,
    Praveen

    new page will create in sap scripts using new page command.
    you have to set condition like after some number of records displayed in page new page has to be trigger.
    ex:YOU HAVE SO MANY RECORDS FOR PRINTING BUT YOU WANT TO DISPLAY 100 RECORDS IN FIRST PAGE REMAINING IN SECOND PAGE LIKE THAT.
    Here you can use NEW PAGE COMMAND .
    IT IS OPPOSITE PURPOSE OF PROTECT AND ENDPOTECT.
    Reward if useful.

  • How do I add PHP Script to an XHTML Page?

    I am tring to add a PHP script to my XTHML page in Dream
    Weaver. The tag starts <?php and ends ?>. I have uploaded the
    script on to another site which I use for testing and it shows the
    whole code not the intended presentation. I did read that the
    server should support PHP scripts..I have been trying to research
    it online however I have had no luck.
    I have also tried publishing it to a local folder and it
    still didn't work. I am really lost!!!
    I am very new to building websites in dreamweaver so laymens
    terms would be great!!
    Thanks so much!
    John

    1. are you adding the php script in design view or code view?
    2. is the file name a .php?
    3. does your server support php?
    Dan Mode
    --> Adobe Community Expert
    *Flash Helps*
    http://www.smithmediafusion.com/blog/?cat=11
    *THE online Radio*
    http://www.tornadostream.com
    <--check this
    *Must Read*
    http://www.smithmediafusion.com/blog
    "jbravo1224" <[email protected]> wrote in
    message
    news:f32956$fj7$[email protected]..
    >I am tring to add a PHP script to my XTHML page in Dream
    Weaver. The tag
    >starts
    > <?php and ends ?>. I have uploaded the script on
    to another site which I
    > use
    > for testing and it shows the whole code not the intended
    presentation. I
    > did
    > read that the server should support PHP scripts..I have
    been trying to
    > research
    > it online however I have had no luck.
    >
    > I have also tried publishing it to a local folder and it
    still didn't
    > work. I
    > am really lost!!!
    >
    > I am very new to building websites in dreamweaver so
    laymens terms would
    > be
    > great!!
    >
    > Thanks so much!
    >
    > John
    >

  • How to delete empty pages in in-design document?

    Hi All,
           How to delete empty page which may contains text frame with no contents, or may be no text frame...
    Plz provide me the script...
    Thanks in advance,
    Vel....

    Indesign CS5.
    My script is,
    doc=app.activeDocument;
    pageObj=doc.pages.item(0);
    txtObj=pageObj.textFrames.item(0);
    var temp=doc.pages.length;
    for(var i=0;i<temp;i++)
        if(doc.pages[i].textFrames.item(0)!=null)
                if(doc.pages[i].textFrames[0].contents!=null) // here, i used "contents" instead of "lines". but also not working well...
                    alert(doc.pages[i].textFrames[0].contents);
                    alert("True");
                else
                    doc.pages[i].remove();
                    i=i-1;
                    temp--;
        else
          alert("False");
          doc.pages[i].remove();
          i=i-1;
          temp--;
    I've a sample document which contains a empty page without a text frame and another empty page with text frame with no contents on it... but my script remove only the empty page and not the empty page with txt frame...
    pLZ HELP JONGWARE...

  • When I click a link only an empty page opens, now the link does not open anything at all

    when I click a link only an empty page opens, now the link does not open anything at all

    Start Firefox in <u>[[Safe Mode|Safe Mode]]</u> to check if one of the extensions (Firefox/Tools > Add-ons > Extensions) or if hardware acceleration is causing the problem.
    *Switch to the DEFAULT theme: Firefox/Tools > Add-ons > Appearance
    *Do NOT click the Reset button on the Safe Mode start window
    *https://support.mozilla.org/kb/Safe+Mode
    *https://support.mozilla.org/kb/Troubleshooting+extensions+and+themes

  • Add additional pages and remove pages in pdf form

    Hi all,
    I'm trying to achieve 2 things with my form:
    How can I remove the first blank page (its giving me a headache)
    How can I script the 'add page' button to automatically add unlimited additional pages (page 4 to be precise) to my form?
    My form is in the link below. I would appreciate your help.
    Thanks.
    http://www.4shared.com/document/ye12txZS/gavin.html

    Hi,
    If you select page1 and go to the Object > Pagination palette and change the Place from "Top of next page" to "Follow previous". The additional page will disappear.
    To add new instances of page3, you need to go to the Object > Binding palette and specify that that subform is to be repeated.
    Then in the click event of the add page button, you would have the following JavaScript (please note that "_" is shortand for instanceManager).
    _Page3.addInstance(true);
    Here is your form back.
    https://acrobat.com/#d=DIiQhLm9ERTV*PQjV-FH5Q
    Hope that helps,
    Niall

  • HT1338 hi, my firefox and safari are both having difficulty loading certain parts of web pages. previous to this my firefox would freeze and state that a script was not responding. i would stop the script and reload the page and everything would be fine.

    hi, my firefox and safari are both having difficulty loading certain parts of web pages. previous to this my firefox would freeze and state that a script was not responding. i would stop the script and reload the page and everything would be fine. now though the pages just load very very slowly or load leaving out certain pictures and video content. i've tried clearing my cache's and cookies, resetting my browser etc, but it seems like its a system issue as both safari and firefox are having issues. i've run Avast to screen for malware and it came up empty. any suggestions?

    10.4.8's been a pain for Networking... not sure of all the reasons though, or whether all the complaints might not be MS working around Bugs/Non-compliance, but at this point I think you should get Applejack...
    http://www.versiontracker.com/dyn/moreinfo/macosx/19596
    After installing, boot holding down CMD+s, then when the prompt shows, type in...
    applejack AUTO
    Then let it do all 5 of it's things.
    Fixes a lot of problems, and besides, if your Mac ever gets to the point it won't Boot... this is a life saver!
    After you run that... let's see where we are.
    BTW, several ISPs seem to have trouble with their DNS Servers lately, might try these insead...
    208.67.222.222
    208.67.220.220

  • Can't delete an empty page

    Hi,
    I have an empty page between my title page and the first page of my script.  I've tried the method suggesting in another post but it doesn't work.  Anyone got any ideas???
    Thanks
    Anna

    Hi,
    Could you please try the following-
    1) Press Ctrl+A with the cursor on blank page and see if any selection appears on it.
    2) If yes, modify your selection to include that page only and press delete.
    If this doesn't work, we would appreciate if you could share your script  at 'rjindal at adobe dot com' , so that we can look into the issue ASAP.
    Thanks
    Rashi - Story team.

  • Crystal generates empty pages for a datasource with a lot of data

    Hi, I hope someone have some hints to solve my problem with generating large reports.
    I have SAP Crystal Reports runtime engine for .NET Framework 4 32-bit installed on my Microsoft Windows 2008 R2 Enterprise Server.
    Since I update Crystal Reports to 13.0.2.469 large Reports have only empty pages. If I print those Reports the data are visible, the report is displayed correct.
    I solved the problem temporarily by setting SeparatePages to true for the CrystalReportViewer Control, but for the future I need the complete report displayed at once.
    I would be very pleased about your help / hints.
    Regards, Sabine

    Thank you for your answer.
    My report has only one cross table in it. I can generate it for a dataset with 26 rows. If there are 27 rows the report is empty.
    If I use a diffrent report without a crosstab only with repeatable sections and less data, I can make a select for 150 rows. That shows me 5 - 7 pages.
    It also makes a difference how the page settings are. If I configurate a smaller border for the top and bottom border I need to change my select to select less record rows and if I configurate a greater border there can be more record rows.
    Here an example how I can reproduce my problem:
    using System.Web;
    using System.Web.UI;
    using System.Web.UI.WebControls;
    using CrystalDecisions.CrystalReports.Engine;
    using System.Data;
    using System.Net;
    namespace EASWebOffice.Pages
        public partial class ReportTest : System.Web.UI.Page
            private HttpWebRequest request;
            protected void Page_Load(object sender, EventArgs e)
                if (!Page.IsPostBack)
                    request = (HttpWebRequest)WebRequest.Create(@"http://localhost:54332/Pages/ReportTest.aspx");
                    AddOnPreRenderCompleteAsync((BeginEventHandler)BeginAsyncOperation, (EndEventHandler)EndAsyncOperation);
                    if (Session["Report"] != null)
                        this.CrystalReportViewer1.ReportSource = Session["Report"];
            IAsyncResult BeginAsyncOperation(object sender, EventArgs e, AsyncCallback cb, object state)
                if (Session["InitialiseReport"] == null)
                    ProcessingReportData();
                return request.BeginGetResponse(cb, state);
            void EndAsyncOperation(IAsyncResult ar)
                if (Session["InitialiseReport"] == null)
                    Response.AddHeader("Refresh", "1");
                    Session["InitialiseReport"] = "performed";
            private void ProcessingReportData()
                CrystalReport2 report = new CrystalReport2();
                // 26 rows works, 27 shows an empty report
                string sql = "select top 26 Auftraggeber as Customer, Kostenträgername as Project, Beschreibung as Description, Stundenanzahl as Hours, UMusername as Ressource from V_MonthEvaluation";
                DataTable data = WebSQLTools.ExecuteToDataTable(sql, Global.Connection, Global.Logger, "");
                DataSet dataSet = new DataSet("DataSet1");
                data.TableName = "DataTable1";
                dataSet.Tables.Add(data);
                report.SetDataSource(dataSet);
                Session["Report"] = report;
    Do someone have a similar problem? Is there a solution?
    Edited by: wohlsobena on Jan 16, 2012 3:34 PM

  • Add additional page to Remittance Advice

    Hello Experts,
    I am working on Remittance Script.
    In Remittance Advice  , there are three pages, FIRST,NEXT and LAST.
    I need to add additional page to the existing Remittance layout.
    This page should show the additional data for all PO/SES related to the invoice and should be printed before the last page which just contains summary.
    I am able to add the additional page with CONTROL_FORM but am not sure how to print the data
    on it. I tried creating an additional main window but it says there can be only one main window (which already exists in the layout)
    there can be multiple pages with the PO/SES data.
    Requst you to please help me in this.
    Many thanks in advance,
    Priyanka Gaur

    Hi,
    Try to check for the Page name equal to your summary page in Main window and print the details which you want to present only in that page. You can use the symbol &ITCTG-TDPAGE& to get the current page.
    Regards,
    Vimala P

  • Script that adds objects every 2ft.

    Hi,
    So I need to make a script that adds an object every 2 feet around the perimeter of the page.
    I really just have no idea how to start. If anyone could point me in the right direction, or show me an example of something similar being done, that would be awesome!
    This is what I have so far:
    if (x2 >= 96 || y2 >= 96) { /* If x or y are longer than 8 Feet (96 inches) */   
        var x = x2/24;
        while (x > 36 && x < 24) { /* Objects need to be added every 2 to 3 feet */
            x /= 24;
        var y = y2/24;
        while (y > 36 && y < 24) { /* Objects need to be added every 2 to 3 feet */
            y /= 24;
    What I've been thinking (and what I have) is to get some fixed amount between 2 to 3 feet. Then I divide the total x or total y by that fixed amount, and that tells me how many objects I'll need to add.
    I feel like I'm heading on the right track, but making the elements seems to be the most challenging part. I have a function that makes the element I need, and the function is formatted like this: addCircle(page, top, left, bottom, right);
    Any help would be greatly appreciated! Thanks.
    EDIT:
    I have come up with a solution! (somewhat)
    So far it only does one side, but this works:
    var x = x2/24;
    while (x > 36 && x < 24) {
        x /= 24;
    x = Math.round(x);
    var stride = (x2/x);
    for (var i = 0; i <= x; i++) {
        if (i == 0) {
            addCircle (myPage, 0.25, stride*i + 0.25, 0.5, stride*i + 0.5);
        } else if (i == x) {
            addCircle (myPage, 0.25, stride*i - 0.25, 0.5, stride*i);
        } else {
            addCircle (myPage, 0.25, stride*i, 0.5, stride*i + 0.25);

    It seems you are on the right track, but I'm a really curious sort of person.
    How BIG are these 'pages' when you are going to have more than a single object on each side, spaced apart by 61cm!?

  • About:config shows an empty page

    When I enter about:config into the adress box I get only an empty page. The about:config works normally on safe mode.
    I have tried to check all boxes in the safe mode window, this did not help. I even manually disabled all add-ons and plugins, but this didn't help either.
    Any ideas what to do?

    Try to disable hardware acceleration in Firefox.
    *Tools > Options > Advanced > General > Browsing: "Use hardware acceleration when available"
    *https://support.mozilla.org/kb/Troubleshooting+extensions+and+themes
    In Firefox Safe mode these changes are effective:
    *all extensions are disabled
    *the default theme is used (no persona)
    *userChrome.css and userContent.css are ignored
    *the default toolbar layout is used (localstore-safe.rdf)
    *the Javascript JIT compiler is disabled
    *hardware acceleration is disabled
    *plugins are not affected
    *preferences are not affected

  • After I am compiling FlashHelp I get an empty page as start page

    Hi all,
    I just did some changes to one Japanese project, and I compiled it, however after I clicked the button to view the results I am getting an empty page.
    I already checked for longer names and there are no error messages.
    I am working under VMWare on a Japanese Windows XP Professional 32-bit machine.
    Thank you

    You can attach a screenshot if you add a new post to your thread. You can't attach a screenshot to the first post.

  • Cannot delete empty page without deleting others

    I have a page with headers and footers and two columns. When I try to add another page or paste a similar one from another document, it creates a new empty page in between them. So I have one section with one page of content and one empty one and another section with the new page with content. Whenever I try to delete the empty page, it deletes the one before it as well. I have switched on the invisibles and see that it has inserted a section break at the top of the empty page. However, if I delete this, my new page is gone. If I change it to a page break and try and get rid of the empty page, then the new (or pasted) page also gets deleted. I am at my wit's end. I am an Apple fan and recently changed my business to iMac and use iWorks, but did not expect silly issues like this.
    Please help!

    • I'm sure that you aren't using iWorks which doesn't exists.
    • Insert a section break in the pair of "grouped pages" this will cut the group in two separate pages.
    Yvan KOENIG (from FRANCE jeudi 3 juillet 2008 12:24:14)

Maybe you are looking for

  • Using Facetime between iDevices sharing the same Apple ID

    I want to set up my daughters' iPads using my own Apple ID so that we can all share the same apps, music, etc. but will we be able to have a conversation using Facetime?

  • DELETE QUERY FOR A TABLE WITH MILLION ROWS

    Hello, I have a requirement where I have to compare 2 tables - both having around million rows, and delete data based on a single column. DELETE FROM TABLE_A WHERE COLUMN_A NOT IN (SELECT COLUMN_A FROM TABLE_B) COLUMN_A had index defined on it in bot

  • New suite crashes with c++ error.

    Hello, i've installed the new version (slovenian) of pc suite 6.81.13. I have a nokia 6260 phone and a core duo laptop. Program itself installs perfectly, it recognize my phone. But when i push the button backup (or almost every program within) it go

  • Bindings Progmatically

    Is there a way to mess with a bound field (using bindings and an array controller) from your code? Currently I have an NSTableView getting its data and storing its data in a binding to an NSArrayController. This specific controller's entity is a subc

  • Validating Checkbox

    Hi all,        I need to add  two checkboxes as parameters , these two checkboxes refer to the fields in prps table . These fields in PRPS table  are as well checkboxes.   Therez  a Tcode CJ20n ,   i enter a project  number  and i go to  1st level WB