Adding Pages?

Viewing 15 reply threads
  • Author
    Posts
    • #93101
      Mal Latham
      Participant

      Hi, I have a document that has 55 pages, I need to add a new page inserted after each one. It is a data merged document, with consecutive serial numbers. The client has now asked for the back of each to be printed. So I need to insert a page after each, with the new copy? Is there a script that can do this? A bit of a long shot but I have 6 of these to do.

    • #93104

      Hi Malcom,

      the task is not clear! Insert a page after each is no problem. What do you mean with “new copy”? > Example!

      Kai

      • #93143

        There is no need for exclamation points or being a pompous ass.

    • #93106
      David Blatner
      Keymaster

      I don’t think there is any easy way to add more pages after you’ve created the data merge document. But you could create a new PDF and then “collate” them:
      https://forums.adobe.com/thread/286654

    • #93107

      “new copy” = “new text” (I guess).
      “Copy” is designer-ese for text, as used in “copywriter”, someone whose job is to write for publications/adverts etc.
      Chris.

    • #93110

      It seems, that Malcolm has no interest anymore and like to do his job by hand. Since this: “So I need to insert a page after each, with the new copy?” is not clear to me, even if this means insert text (which kind of text? by hand? automatically?)

      Anyway: If someone wants to add pages between pages:

      (function () {
      var curDoc = app.activeDocument,
        allPages = curDoc.pages,
        nPages = allPages.length,
        curPage,
        i,p;
      
      for (i = nPages-1; i >= 0; i--) {
        curPage = allPages[i];
        p = curDoc.pages.add();
        p.move(LocationOptions.AFTER, curPage);
      }
      }) ();
      
    • #93122
      Mal Latham
      Participant

      Hi Kai, thanks for the assistance but I don’t think it gives you the right to assume I have lost interest in the matter? To try and simplify it for you, assume I have a 55 page document with a massive number on each page i.e 1-55. I need to insert a page after each one with a massive X on it making a 110 page document with each alternate page having an X on it. It doesn’t have to be “copy” (Text) It could be a PDF or an image. I would create this as a Master Page “B” and then have it alternate pages. Regards, Mal

    • #93123
      Mal Latham
      Participant

      Thank you David Blatner for an alternative method, I will try that one for sure.

    • #93124

      Malcom, if you write in an prof. forum, chances are good, that you get an answer within few hours. So if someone has a question, cause he don’t understand the problem, it is good practice to answer this question within few hours too ;-)

      Did you test the script? Seems that it would solve your problem. And yes, the script could also apply a Master B.

      Kai

      • #93127

        Kai–many times topics here can go days without an answer or a reply. I don’t think Malcolm returning 24 hours later means he isn’t interested.

      • #93141
        Mal Latham
        Participant

        Hi Dwayne, thanks for that but it wasn’t even 24 hours! Forum Software was playing up!, Never mind hopefully I’ll get the issue sorted when I get back to work on Monday, Cheers!

      • #93142

        No need to apologize, Malcolm. I realize it was less than 24 hours. I was just going by the times that show up.

        In any event-whether it was 2 hours or 24 hours, no member here should accuse someone (i.e., you) of not giving a crap about their post.

        I ticks me off that you were treated that way.

    • #93126
      Mal Latham
      Participant

      Hi Kai, I did try and reply several times but every time I hit submit the post disappeared. I haven’t tried the script yet, finish work at 3pm on a Friday, not back till 8am Monday morning, will try it again. Thanks

    • #93105
      Mal Latham
      Participant

      Hi Kai, thanks for responding so promptly, i’ll try and explain it a little better! The current document contains 55 spreads of A5 (2 to view) each is individually numbered. The client now wants these backed up with further information. So after page 1 I need to add a new page to print on the back and so on for all 55 pages. Currently I can do it manually by creating a master page B and dragging it in the page view palette so that it inserts it below page 1 and so on for the 55 pages, making a total of 110 pages. this is so that when I send it to our laser as a duplex document it prints the original front and he new info on the back. I hope this helps?

    • #93139
      David Blatner
      Keymaster

      Very sorry, Malcom! Our forum software was holding your post (above) since yesterday. I don’t know why it held it. But yes, you did reply yesterday… our software did not let it through.

      –david b.

    • #93144

      Dwayne, your stupid comments are not helpful for anybody and do especially not solve the problem! I would strongly advise you not to say anything if you have nothing to say.

      Malcom, thanks for a detailed explanation of the problem. It wasn’t my intention to yelling with you, sorry.
      If you want to apply the master B while creating new pages, you could do it in this way:

      (function () {
      var curDoc = app.activeDocument,
        allPages = curDoc.pages,
        nPages = allPages.length,
        curPage,
        i,p,
        newMaster = curDoc.masterSpreads.itemByName("B-Masterpage");
      
      for (i = nPages-1; i >= 0; i--) {
        curPage = allPages[i];
        p = curDoc.pages.add({appliedMaster: newMaster});
        p.move(LocationOptions.AFTER, curPage);
      }
      }) ();
      

      Kai

      • #93146

        Stupid comments? And you expect me to take your advice of whether I should post or not?
        You know you were clearly wrong as you even apologized for yelling at Malcolm.
        With that being said, thank you for your latest post helping Malcom. I’m sure it will be helpful and others may find it helpful as well.
        I have no intention of getting into a pissing match with you, or trading insults.

      • #93147
        David Blatner
        Keymaster

        OK, everyone please take a deep breath. Dwayne and Kai, I know you are both trying to be helpful…

        (Dwayne, I think Kai may be referring to something you posted earlier and which you may have deleted.)

        We all get frustrated and write things we don’t need to say sometimes. I know I do! But let’s just let this go for now, okay?

        Thanks.

      • #93189

        David, I’m calmed down. And I should not have taken it personally.

        But I don’t recall deleting any of my posts.

    • #93148
      Mal Latham
      Participant

      Hi Guys, sorry to have caused such a kafuffle! In the end I’ve gone with the Collated PDF route, suggested by David, thanks for all your input though. Cheers, Mal

    • #14323734
      Henry King
      Member

      Hi Kai, I used your script. It worked perfectly, thank you!

    • #14323627
      Elias Gadisa
      Member

      hi everyone, I am new to the scripting & stuff. but I need the exact thing just like Henry King. how can I change the given script code to jsx?

    • #14323625
      Elias Gadisa
      Member

      nevermind, I figured it out & it works perfectly. thank you very much Kai Rübsamen! you are a life savior.

Viewing 15 reply threads
  • You must be logged in to reply to this topic.
>
Notice: We use cookies on our websites to give you a great online experience. If you keep browsing, we'll assume you're ok with this. For more information, see our privacy policy. By closing this banner, you agree to the use of cookies.I AGREENo