Duplicating several pages many times

Hello all.
Does anyone know of a script that will take, say a two-page PDF and duplicate it many times? The end result would be a PDF that has the pages in a 1-2-1-2-1-2-1-2-1-2.... format.
I've seen a similar script but that will take a two-page PDF for example and turn it into 1-1-1-1-1-1-1-2-2-2-2-2-2-2.... : http://www.evermap.com/JavaScript/CarbonCopy.txt
Many thanks
Colly

This code should do it... You need to execute it from the JS console and adjust the temp file path and number of copies to create, if required:
var numCopies = 4; // This is the number of copies that will be added
var tempFilePath = "/c/temp/copy.pdf"; // Enter a temporary file path here
this.saveAs({cPath: tempFilePath, bCopy: true});
for (var i=0; i<numCopies; i++)
    this.insertPages(this.numPages-1, tempFilePath);

Similar Messages

  • HT1414 It has some problem about my iphone. When I turn off the phone and then turn on, it shows the screen of apple page and then show the loading page many times. What happen with my iphone?

    I have iphone5s and there is some problem about my iphone. I turn off the phone and then I turn on. After I turned on, It showed the page of apple signal and then the page of loading. It used long time to show the loading page. Then it was back to page of apple and then loading page again many times. What happen with it? And what should I do?

    Did you already try to reset the phone again by holding the sleep and home button for about 10sec, until the Apple logo comes back again?
    If this does not work, try to set it up as new device, explained here:
    How to back up your data and set up as a new device
    You may have to connect in recovery mode, if the phone is not recognized in iTunes:
    iOS: Unable to update or restore

  • "Press esc to exit full screen mode" stays on screen, wont disappear, I have to refresh page many times

    Windows 7
    using firefox
    adobe flash player 16.0.0.305
    I have tried many things and with this new computer build I did not want to try any of the 3rd party fixes for this issue. I see a ton of posts regarding this issue some referring to the problem as the creator of the game or video, some referring to Why is this still an issue why hasn't this been fixed its been years.....
    So I am starting a new discussion as I cant find any relevant in time fixes for my issue all I see is over two years old with no real fixes for the issue. So I hope I am just missing it.
    Anyways here is the issue I would love to just disable it make it go away entirely. I know I need to press esc to exit full screen mode. Most of the time it does disappear and that would be fine too but while I am watching hulu videos in my queue and escaping between full screen mode and normal mode to add next show to queue and then going to next show in queue sometimes I have to refresh the page to make the bubble disappear.
    Is there anything I can do? and I quote many users before me in stating "Why is this stilll an issue?"

    Hmmm lets see well in reply to your answer and comments. I only use firefox. I wrote an app about 6 months which without any user intervention could really mess up chrome. I could download passwords from chrome unencrypted so I do not use chrome I avoid it like the plaugue. Internet Explorer kind of the same issue but in reverse seems to be pretty secure but huge and klunky. So I only use firefox. I just refreshed it which fixed an issue I was having with a sign on issue with swagbucks ext add on not remembering who I am and so on. I will see if this has any effect.
    To continue on this issue though if you know hulu at all. If I pick the next show I want to watch manually, which would technically load a new web page as a "refresh" It always disappears, However if I use the queue option or auto watch mode I really don't know how to properly discribe this. If I just let it finish a show and it automatically picks the next show. Then I assume that flash player programming is causing the web page change and so somehow yes the webpage changes but the "refresh" does not occur or inother words the flash player keeps running doesn't get refreshed and over time several things occure. If i watch about 5 shows in this automated matter flash starts to really eat up my memory and then the esc message starts to not disappear.
    Also randomly I can not tell which ads cause this of course, I would love to be able to give you or hulu more info but There is an add that gets ready to play during a show. This add causes my antivirus to throw a fit and blocks it, then flash player crashes I would assume because of the failure to load the add and play it.
    I understand your description of why it is the way it is and that makes since. But for us wire cutters or cable cancelers, I watch tv through online use and for whatever reason flash is the only option. and having to get off my couch and go over to my computer to refresh the webpage and or reload cause of crashes is getting old.

  • I tried setting my home page many times and it does not carry at restart. I followed the intructions. My home page keeps going back to some old setting.

    I set my home page on multiple (5 or 6) web sites. As long as I do not close the session I do not lose it. But if I close the session and start over, my settings are gone and my home page is set to some bad URL I acquired during installation.

    Do you have the FastStart extension?
    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

  • Suddenly, I can't get the plugin scan page to open. I keep getting "Plugin Finding Service Error", no matter how many times I try, or wait. When I first opened it yesterday, it was scanning, then it disappeared and I got the error message.

    I have opened the plugin scanning page many times before, and have done some updating of plugins recently, but yesterday I couldn't bring up the scan, I keep getting "Plugin Finding Service Error", which says to "try again later". I believe what I updated most recently was Flash (I think). No matter how many times I push the "try again", or shut down Firefox and the webpage, I still get the error, and get nowhere!

    This problem has been occurring for the past two months. I have updated Firefox to version 3.6.16...including Flash Player to version 10.2.153.1 as instructed. I am able to click on the "Add-ons" tab and "find updates" for "Get Add-ons" and "Extensions." However, the "find updates" tab is not working for "Plugins."
    I followed one of your suggestions in your "troubleshooting plugins" topic (disabling the plugins...then enabling them after a check). That didn't work either. In fact, a message box would appear saying that Firefox has "disabled Flash" instead, which of course it did not, since I was able to confirm that the Flash Player update version was still intact. Unfortunately, it appears that updating the Flash Player through Firefox is not a standalone operation. Apparently it will not work properly unless a separate update is subsequently processed through Internet Explorer as well.

  • HT2534 I followed the instructions on how to set up an Apple ID without using a creditcard or iTunes card many times on several devices, but I still do not get the NONE option on the billing page. Please help??

    I followed the instructions on how to set up an Apple ID without using a creditcard or iTunes card many times on several devices, but I still do not get the NONE option on the billing page. Please help??

    Follow the steps on this page when creating a new account http://support.apple.com/kb/HT2534
    e.g. if using a computer's iTunes : https://discussions.apple.com/message/24321860
    If you've already created an account and are being prompted to review it when trying to see it then you could see if this post by mountaingoatgirl lets you do so without needing to enter credit card details : https://discussions.apple.com/message/24303054

  • Trying to figure out why is there a keystroke delay many times in Pages and Numbers? I'm on a 2010 macPro running Lion

    Trying to figure out why is there a keystroke delay many times in Pages and Numbers? I'm on a 2010 macPro running Lion

    I had a similar problem when working on a long Pages doc (40,000 words).The glitch only occurred on this one Pages file and affected no other applications. I fixed it by duplicating the file, trashing the original and working on the new document. I have no idea of the cause of the problem.

  • On my macbook pro when opening a page i can not save it as a pdf only give me the option of saving it as a web page can any body help me on this I have tryed so many times without success

    on my macbook pro when opening a page on safaryi can not save it as a pdf only give me the option of saving it as a web page can any body help me on this I have tryed so many times without success?

    Just select Print in Safari and then, in the bottom left-hand corner, select PDF and you can save it to whichever flavor pdf file you like.
    Clinton

  • All of a sudden, my settings have been changed, my homepage, and EVERYTHING. No matter how many times I go in and change them again, the SAME pages open up when I start FireFox and I am constantly being asked if I want Yahoo as my start page and default s

    I don't know what happened. All of a sudden, my settings have been changed, my homepage, and EVERYTHING. No matter how many times I go in and change them again, the SAME pages open up when I start FireFox and I am constantly being asked if I want Yahoo as my start page and default search engine. I click the box 'do not ask me again' and it comes up EVERY TIME. I change things like I don't want history remembered, and when I reload FireFox again, it's back to the way it was BEFORE. EVERY SINGLE TIME. I don't know why this is happening, or how to fix it. What do I do??

    I do not want to download another virus program.. I do not believe it is a virus. I am running the full version of Norton 360 and it is doing a daily scan. I have Windows 7, 64 bit OS.
    This is very irritating !! If I wanted Yahoo I would ask for it !

  • Pages on my iPad3 has become very slow to open documents after upgrading to ios7. I've clicked on a folder 5 minutes ago and am still waiting. The work-around seems to be to force-close it, but I've needed to do this many times in the last few days.

    Pages on my iPad3 has become very slow to open documents after upgrading to ios7.
    I posted on here about this a few weeks back and someone suggested force-closing Pages -- and that does indeed enable me to open things -- but I have had to force-close many times in the last 24 hours, which is worrying. Are there any other suggestions?
    I am sometimes also finding that, when I have been writing something and then click on "documents" the screen goes blank, there is a wait of around a minute and then the same document is re-displayed, before clicking "documents" again lets me look at other documents -- which is a pain if I am trying to move between documents repeatedly. Again, words of wisdom on this would be great.
    Pages under iOS6 opened quickly, and there was an immediate loss of performance when I upgraded. I am finding this very frustrating because I don't feel that the new Pages has added to the facilities I was using, but a slowness to open documents is frustrating.
    Thanks
    Mark

    Pages on my iPad3 has become very slow to open documents after upgrading to ios7.
    I posted on here about this a few weeks back and someone suggested force-closing Pages -- and that does indeed enable me to open things -- but I have had to force-close many times in the last 24 hours, which is worrying. Are there any other suggestions?
    I am sometimes also finding that, when I have been writing something and then click on "documents" the screen goes blank, there is a wait of around a minute and then the same document is re-displayed, before clicking "documents" again lets me look at other documents -- which is a pain if I am trying to move between documents repeatedly. Again, words of wisdom on this would be great.
    Pages under iOS6 opened quickly, and there was an immediate loss of performance when I upgraded. I am finding this very frustrating because I don't feel that the new Pages has added to the facilities I was using, but a slowness to open documents is frustrating.
    Thanks
    Mark

  • Iam trying to reinstall the OS X after erasing the hard disc but it can't be completed it says u need to visit the purchase page ??? I tried many time to download it any help

    Iam trying to reinstall the OS X after erasing the hard disc but it can't be completed it says u need to visit the purchase page ??? I tried many time to download it any help

    On the bottom of the MBP is the serial number.  Enter it here and post back the results:
    https://getsupport.apple.com/GetSASO?
    This will identify the exact MBP that you have.
    Ciao.
    The system is under maintenance now.  Try this link instead:
    http://www.chipmunk.nl/klantenservice/applemodel.html
    Message was edited by: OGELTHORPE

  • Many times I drop a photo into a book page box and it resizes it.  I want to scale it smaller but it only allows me to make it bigger.  Why can't I slide to make it smaller?

    many times I drop a photo into a book page box and it resizes it.  I want to scale it smaller but it only allows me to make it bigger.  Why can't I slide to make it smaller?

    Control (right) - click on the photo in the frame and select Fit to Frame Size in the contextual menu.
    Here's an extreme example of that:
    OT

  • Backgrounds on several pages keep changing in a different order every time the site is published.

    Hello Adobe Team, i'd like to know how can i fix this situation: I just added a couple of things (only text) more to my website, after i downloaded the update, and now everytime l upload it back to my host, some of the several pages it has changes the backgrounds (pictures) with other backgrounds, and its always in different ways, i've tried several times and im not sure what could the problem be, im using muse as i used to do it before the update and now the website is a mess, keeps changing things that on the preview mode were ok.
    Thank you very much
    Octavio

    Ok, if anybody is experiencing this problem, try to relink every picture, delete the "image" folder, and delete the images you had on the new "images" folder, make the adjustments you needed, save the site, then export it to HTML (this way all of the documentation on your site will be overwriten with the new adjustments you've made and previous data will not interfer with the new one), then upload it with your FTP, clean your browser cache, and enter to your site. This worked for me and now my website is running fine.

  • Classic: will not recharge; apple logo flashes every few seconds then fades away; have tried the 'reboot' advice i.e. move hold switch on and off, hold menu and center button, no success.  have tried this many times and kept connected for several hours.

    I have a classic, several years old.
    It will not recharge; the Apple logo flashes every few seconds then disappears. 
    I have tried the 'reboot' advice i.e. move the Hold switch on and off, hold the Menu and Center buttons, no success. 
    I have tried this many times and kept the ipod connected for several hours.  And I have tried two different cords, one connected to the desktop computer, one connected to electrical outlet.

    Hi enbridge4,
    If your iPod Classic won't charge or turn on, you may find the following articles helpful:
    Apple Support: iPod won't turn on
    http://support.apple.com/kb/ts1383
    Apple Support: iPod's battery doesn't charge
    http://support.apple.com/kb/ta44551
    Regards,
    - Brenden

  • Why does firefox many times opens last browsed page when started (I have set 'show a blank page' and 'about blank' in General settings)

    I have made the following settings in general tab of firefox in settings
    When firefox starts - Show a blank page
    Home page - About blank
    Inspite of the above settings, when I start firefox, it many times opens the page I was browsing before I had closed firefox previous time. Please help me with this.

    See [[Firefox makes unrequested connections]]

Maybe you are looking for

  • Bootcamp or VMWare Fusion 3

    From a MAC newbie running an iMac I7, 8GB, 1TB Can some of the experts out they give me a suggestion on using Bootcamp vs. VMWare to run Windows games and applications. I like the idea of running the Windows applications while SL is also running (VMW

  • CVI & Driver Instrument

    Hi guys. My problem is to see the Rigol DSA1030A as instrument in CVI. I have connected it via USB and following the guide I have downloaded the IVI driver where I haven't found any *.fp file. Yestarday talking with a NI engineer he suggest me to use

  • Copy Crossreferences

    Hello guys, I do wonder, is it possible  to copy/move crossreferences from one indd document to another indd document ? If first question is possible, does it works copy cross references from adobe indesign CC to Adobe indesign cs6/ save to cs6 thank

  • Searching using the Library Filter

    I have two questions: 1: When I did a search for "lark", I found meadow lark, horned lark, and lark sparrow images. But, it also brought up a thousand "Clarks" nutcrackers. What is the command to bring up only images that exactly match the keyword (l

  • BI Content 3.53 Questions

    Gurus: I have a doubt, it is had installed MDM 5,5 with SP 3, in a document, mentions that it is necessary to have installed the BI Content 3,53 with SP 6, to be able to activate objects 0MDME_PRODUCT, 0mdme_product_text, 0MDME_VENDOR and 0MDME_VENDO