Wanted: a modified version of PlaceMultipagePDF -- to impose

SCRIPT TO IMPOSE AN INCOMING PDF
I need a script that uses a modified version of the sample script supplied with CS4 (called PlaceMultiPagePDF.jsx, or the Applescript equivalent). Instead of placing the pages sequentially:
1 –> 1
2 –> 2
3 –> 3...
the script would place the PDF pages in 2-Up Perfect Bound imposition order. The arrangement is outlined in the attached document. It would be very flexible to allow for any combination of signature lengths. As a simple example, for a 8-page booklet, the script would place the pages from the PDF in this order in InDesign:
1 –> 2
2 –> 3
3 –> 6
4 –> 7
5 –> 6
6 –> 5
7 –> 4
8 –> 1
I have written a Pidgin BASIC code that handles the page sequencing (see attached document), but I have to steer clear of actually scripting it -- my programming skills end at MS BASIC ca 1986 (which I still use occasionally on my 512k Fat Mac as I can't get anything out of modern BASIC). Why did they ever complicate things with Java and the like?
Anyway, I have manually stepped through my flowchart several times and haven't come across an error, so all that is required ("all" he says, in hope) is to interrupt the pages coming from the PDF, and instead of 1 -> 1, 2->2... the script steps in and says "Whoa there... you're not going to page 315, you're going to page 297. Would it be that simple? As simple as inserting a bit of renumbering code as per my flowchart?
I hope so.
If anyone is interested, please let me know.

Thanks for the script, Jongware, but it is not quite what I need.I think yours generates one huge saddle-stitch arrangement, whereas I want the ability to generate a group of smaller ones (effectively a variable-length perfect-bound arrangement), thus my listing of "numbers of sheets" in each signature as the input.
Someone has been kind enough to write an Applescript that does the job. I haven't fully tested it, but really, what is there to test? It seems to work for me. One problem: it can't handle InDesign page numbers other than plain numbers, but I can work around that if I need to. Imposition from InDesign here I come -- run the script, paste the output into Page Range of the Export dialog box, and stand back while the bytes fly.
If a script could be run from the open Export window (to allow setting up of the various options), this script (or a JS version) could be carried one step further, not that I'm wanting to at this stage. The start page and the various signature lengths could be entered; options set up in the Export window; then the script could:
1. Generate the imposed number sequence and place them into the Page Range field of the active document;
2. Export the PDF;
3. Call on PlaceMultipagePDF, set to automatically create a new InDesign document and place the PDF pages.
It would be a very flexible, simple way of obtaining variable-length, 2-Up imposition from InDesign.
SCRIPT TO IMPOSE VARIABLE-LENGTH 2-UP SIGNATURES
set start to 1 -- overwrite with your starting page number
set s to {8, 1, 0} -- overwrite with the number of pages in each signature; any number of signatures allowed; must have 0 at end to stop.
set n to 1
set begin to start
set _end to start - 1 + 4 * (item n of s)
set outputStr to ""
repeat
set a to _end
set b to begin
set c to begin + 1
set d to _end - 1
set halfway to (begin + _end) / 2
repeat while b < halfway
set outputStr to outputStr & a & ","
set outputStr to outputStr & b & ","
set outputStr to outputStr & c & ","
set outputStr to outputStr & d & ","
set a to a - 2
set b to b + 2
set c to c + 2
set d to d - 2
end repeat
set n to n + 1
if item n of s = 0 then exit repeat
set begin to _end + 1
set _end to _end + 4 * (item n of s)
end repeat
set the clipboard to outputStr
return outputStr

Similar Messages

  • Discard the Modified version of the data model

    Dear all,
    In BI 7.0, I have created a cube and activate it. Then, we modify the cube and save . The system now have 2 version(A & M) of the cube. If I decide that I don't want the modified version of the cube, is there any way we can delete the modifed vesion and do the enhance from activate version of the cube?
    Best Regards,
    Jeff

    In BW 3.5 there is a menu entry InfoCube -> Cancel Changes. This removes your changes and sets it back to the activated version. You should have the same entry in BI 7.0.
    Best regards
    Dirk
    Edited by: Dirk Herzog on Mar 11, 2008 1:51 PM

  • Adobe Acrobat Reader want to modify my pdf when closing it. Why?

    Hi,
    I'm working on a small and simple pdf generator (as said in my previous question).
    When opening my generated pdf with Adobe Acrobat Reader, all is OK.
    But when I'm closing it, Adobe Reader popup a message asking  if I want to save the modifications.
    Why Adobe Reader want to modifiy my pdf??
    Is there something wrong with it?
    Here is a realy tiny small sample of a one blank page generated pdf (all is pure ASCII because there is no compression, no data stream,... and it's a copy/paste from a text editor, so I've no translated typo into my message).
    I think I've followed the specification; but perhaps I've missed something?
    %PDF-1.7
    1 0 obj <</Type /Catalog /Pages 2 0 R>>
    endobj
    2 0 obj <</Type /Pages /Kids [4 0 R] /Count 1>>
    endobj
    3 0 obj
      <<
        /Producer (PdfLib)
        /CreationDate(D:20130710152728+02'00')
        /ModDate(D:20130710152728+02'00')
      >>
    endobj
    4 0 obj <</Type /Page /Parent 2 0 R /MediaBox [0 0 595 841] /Resources <<>> /Contents 5 0 R>>
    endobj
    5 0 obj
    <</Length 0>>
    stream
    endstream
    endobj
    xref
    0 6
    0000000000 65535 f
    0000000009 00000 n
    0000000056 00000 n
    0000000111 00000 n
    0000000240 00000 n
    0000000341 00000 n
    trailer <</Size 6 /Root 1 0 R /Info 3 0 R>>
    startxref
    387
    %%EOF
    Regards
    Alex

    And so.. what is invalid?
    I've uploaded the pdf files as example:
    My generated pdf
    http://compuhelp.free.fr/adobe/before.pdf
    The modified version by Adobe Acrobat Reader:
    http://compuhelp.free.fr/adobe/after.pdf
    (I can generate a more complexe pdf file with fonts, images,... it will be displayed correctly, but Adobe always want to modifiy it).
    So perhaps I missed somthing into the pdf file format specification ?

  • Saving original and modified versions

    Hey all,
    Can someone tell me how to stop iphoto from saving both an original and modified version of my photos? It's very confusing when I try to access the photos to upload onto flickr, or to burn dvds etc.
    I can't believe how much time I've wasted on this program--and now have had to start all over from scratch.
    LH

    Hello.
    You do have a choice. Use a file browser. There are many available. They let you simply store the photos on your hard drive, in your folders, how you want them. Easy.
    Why does iPhoto behave as it does? Because it offers much more complex features than any file browser. iPhoto is not a file browser. It is a database application with non-destructive editing. You import a photo. iPhoto creates a thumbnail version, linked to your original, for efficient presentation of your library on screen. You edit, and it creates a full-sized copy, which you then modify. It keeps track of the edited version, linked to your original. Your thumbnail is also located and updated to match the edited version. If you ever wish to go back, you can always Revert to Original. The edited version will be deleted, and your thumbnail will again reflect the change. All before you can blink your eyes.
    So, yes, the way to get your files for uploading or burning to DVD is to select from iPhoto, then export. Because iPhoto will be sure to export the full-sized, most recent version of your photos. You never need to root around its library folders to find them yourself. Exporting gives you the additional ability to rename the copies. And, even better, to resize the copies, since smaller files work better for viewing on most websites. After you finish with the upload you can trash the exported copies.
    Then consider the Albums and Folders in your Source Pane. With a file browser, you'd have to duplicate your files to display them in more than one album (because album = folder). With iPhoto's database, albums never create duplication; they are virtual arrangements which have no presence in your folder structure. The benefit - you can have a photo in 100 albums, with very little increase to the size of your library.
    Play with other search features, and iPhoto becomes very powerful indeed. Smart Albums can be created to compile photos based on many criteria, and they stay current with your library. With the calendar tool you can pull up photos from any year, month, and/or date with just a few clicks. Keywords can be used to include or eliminate (Option-click a keyword) groups of photos until you have just the grouping you want. [Ex: I can find all photos of my daughter, with my in laws, at a festival, NOT at Christmas, with animals....]
    It is a shift in thinking to leave the iPhoto Library alone and let iPhoto deal with the file management. As long as it works, why does it matter how it's done? You have all of its tools at your disposal.

  • More modified versions of one object in BW

    Hello,
    is it possible to save more modified versions of any object in BW(InfoObject, InfoCube,...) and then activate one of them? I know it is possible by ABAP programs, but in BW?
    Example: I want to try some settings. But if they are wrong, I have to change it back manually. If I could save the old version and restore later it would be very helpful.
    Thanks for your answer!
    Regards,
    Radek

    Ahoj Radek,
    BW has no such a sophisticated version-ing system as common ABAP/DDIC objects are having.
    This is still area for improvement. Hope people in SAP AG are aware of that.
    Also I'm not aware of any 3rd party custom tool that would allow that.
    Field RSOBJVERS used mostly in all BW tables for identifying version of objects can have only following values, so this is a limit as well:
    A     Active
    M     Revised
    N     New
    D     Content
    H     Historic
    T     Transport
    BR
    m./

  • Can I transfer data from my G4 to my IMac over a firewire without them syncing or messing either one up - do not want to modify either one...!

    Can I transfer data from my G4 to my IMac over a firewire without them syncing or messing either one up - do not want to modify either one...!

    Boot the G4 Mac into Target mode...
    http://support.apple.com/kb/HT1661
    That should make the G4 look like a big FW drive to the iMac.

  • Is it possible to change iWork files on your iMac without having to upload the modified version to iCloud and downloading it again for the next use ?

    Recently I am getting more and more familiar with Numbers, Pages, KeyNote and I have to acknowledge they look smart in many aspects compared to Office for Mac programs ( ..only a bit of time to learn some minor things..). But what really surprises me is that while shifting from MobileMe to ICloud, Apple is not providing a real , full-service, cloud-computing platform for those who , like me, makes use of it mostly for work or business purposes.. I mean, you can do whatever from your Ipad or Iphone ( besides clearly ignoring the necessity one may build up folders with any kind of file in it, not just one categoory..) and every file you manage from these mobile devices, get saved and stored in the new modified version.. But try doing the same form your Imac or McBook Air and you wil have to download from Icloud your file, work on it and having to re-upload onto Icloud back again ==> syncing is not authomatic as it used to be by Idisk in MobileMe  !!.. A real nightmare for those who work with Apple, in my opinion.
    One last thing.. I am having trouble at dragging and dropping PDF files onto Icloud, doesn't accept its format.. Although PDF files are mentioned as acceptable at Pages , for example...
    I can't see the reasons for all this.. At first I thought this was all being done in order to move more and more users from Windows office to IWork programs, if it were for this, I'd be keen on changing, also because I love Iworks programs.. But I found out it's not !.. Unless people at Apple think that all business driven users of former MobileMe should quit their Imac and start working 8-10 hrs a day with the Ipad   :-) !!
    No fear, I know there are plenty of cloud-computing services doing the same as IDisk, but I can't understand why Apple has given so little attention to such needs, that , I guess, are probably the same by many other Mac users..
    Thankful for any help-support-opinion on this,
    Maurizio

    m,
    You can submit Feedback to Apple from the Numbers menu. That's the official channel for comments about the app and suggestions for improvement. The Apple officials don't visit these discussions except to maintain the decorum.
    Jerry

  • I downloaded new version of itunes. Then itunes asked if i wanted the latest version for ipod. itunes said it was getting ipod ready for download, then there was an error message. Now ipod is locked up with a apple on the screen and a line under it

    I downloaded the latest version of itunes. Then itunes asked if i wanted the latest version on ipod. Itunes was getting ipod ready then a error happened. Now ipod is locked up with a apple on screen with a download line under it. Also itunes will not recognize ipod like it has before. If anyone can help it would be appreciated. Thanks

    Do a hard reset, put it in DFU Mode and do a manual install, as outlined in the link below.
    Basic troubleshooting steps  
    17" 2.2GHz i7 Quad-Core MacBook Pro  8G RAM  750G HD + OCZ Vertex 3 SSD Boot HD 
    Got problems with your Apple iDevice-like iPhone, iPad or iPod touch? Try Troubleshooting 101
     In Memory of Steve Jobs 

  • Did bug fix for add-ons after downloading new version. FB games do not work & add-ons still gone. I want the old version back. How can I do this?

    Downloaded version 7 today. All add-ons are gone, not disabled, but gone. The bug fix offered in this instance tells me to go look for updates. I have, and I'm totally up to date, so now I don't know what to do. The add-ons are still gone, and my games in FB are also malfunctioning. I click on a button in the game and nothing happens. I can't even play them like this. I have playing all morning, and this only happened AFTER I updated to the latest Firefox browser 7. I want the old version back, but cannot figure out a way to do this. I am mad right now and want the option to go back to the old version. If I can't get it, I guess I'll go back to IE. Thanks....

    Start Firefox in <u>[[Safe Mode]]</u> to check if one of the extensions or if hardware acceleration is causing the problem (switch to the DEFAULT theme: Firefox (Tools) > Add-ons > Appearance/Themes).
    *Don't make any changes on the Safe mode start window.
    *https://support.mozilla.com/kb/Safe+Mode
    *https://support.mozilla.com/kb/Troubleshooting+extensions+and+themes

  • THE PAGES WITH LINKS TO OLD FIREFOX DON'T WORK I DON'T WANT THE NEW VERSION

    I HAVE SPENT THE LAST WEEK TRYING TO FIX WHAT THE NEW IMPROVED VERSION OF FIREFOX DID TO MY COMPUTER. I WANT AN OLDER VERSION BUT NONE OF THE LINKS WORK NOTHING HAPPENS HOW DO I INSTALL AN OLDER VERSION THE NEW ONE TOTALLY SCREWED MY COMPUTER

    Any release is available from here:
    https://ftp.mozilla.org/pub/mozilla.org/firefox/releases/

  • Iphoto 08 won't export modified version

    Hi!
    I'm having some real trouble here. I modify my photos in iPhoto, but when I export the pics, it exports the ORIGINAL version, not the modified version.
    I've even gone into the iPhoto library package and found the 'Modified' folder for my photos, and they're the SAME as well! I have NO idea what is going on here. The only copy of the actually modified photos that I can find is the thumbnails in the 'Data' folder inside the iPhoto library package.
    Any ideas??
    Thanks so much!

    paxrasmussen:
    Welcome to the Apple Discussions. Are you able to get the modified version if you just drag from the thumbnail to the desktop? Or is it not working that way as well as the File->Export method?
    Try rebiulding the library as follow: launch iPhoto with the Command+Option keys depressed and follow the instructions to rebuild the library. Select the option to rebuild just the database.
    Happy New Year
    TIP: For insurance against the iPhoto database corruption that many users have experienced I recommend making a backup copy of the Library6.iPhoto database file and keep it current. If problems crop up where iPhoto suddenly can't see any photos or thinks there are no photos in the library, replacing the working Library6.iPhoto file with the backup will often get the library back. By keeping it current I mean backup after each import and/or any serious editing or work on books, slideshows, calendars, cards, etc. That insures that if a problem pops up and you do need to replace the database file, you'll retain all those efforts. It doesn't take long to make the backup and it's good insurance.
    I've created an Automator workflow application (requires Tiger), iPhoto dB File Backup, that will copy the selected Library6.iPhoto file from your iPhoto Library folder to the Pictures folder, replacing any previous version of it. It's compatible with iPhoto 08 libraries and Leopard. iPhoto does not have to be closed to run the application, just idle. You can download it at Toad's Cellar. Be sure to read the Read Me pdf file.

  • Really really really really want to modify objects in an iterator call

    Hey,
    I know you are not really allowed to do this, but I am iterating over some objects and I want to modify them while iterating over them without getting a ConcurrentModificationException.
    Collection collection = myHashMap.values();
    for (Iterator iter = collection .iterator(); iter.hasNext())
    MyObject obj = (MyObject) iter.next();
    modifySomethingWithinMyObject(obj);
    not only does modifySomethingWithinMyObject(obj) modify the object being passed in but it also may modify other values within the hashmap.
    This is really killing me. anyone know how to get around this?

    I know you are not really allowed to do this, but I am
    iterating over some objects and I want to modify them
    while iterating over them without getting a
    ConcurrentModificationException.If you're using HashMap in a concurrent situation you should synchronize it. That takes care of the ConcurrentModificationException.
    You're not allowed to modify the HashMap structure while iterating through it (other than by using the metods available in the Iterator itself). If you do you may get something like a BadStructureException or so.
    You can modify the objects stored in the HashMap as long as you don't modify anything used by the equals or hashCode methods (if you've overridden them), but in a concurrent situation you should synchronize all object methods that modifies the objects content.

  • Since downloading OSXMav 10.9.4, Safari quits. Have to keep restarting - want the downlevel version back; how?

    Even as I try and submit this question, I have to keep restarting the iMac. Wifi is not the problem, and all other applications such as iPhoto, WP, PS, etc work. It's only Safari that cannot hold the connection. I want the downlevel version back so I can work again. But, don't know how to uninstall and install previous version. Help me, I'm drowning in restarts!

    If you do not have a backup of your previous system, there is no easy way to revert back to the previous OS X version.
    Perhaps we can help with your Mac and Safari issues.
    It would help us to help you if we could have some more technical info about your iMac.
    If you like, please download, install and run Etrecheck.
    Etrecheck was developed as a simple Mac diagnostic reporting  tool by a regular Apple Support forum user and technical support contributor named Etresoft. Etrecheck is a small, unobstrusive app that compiles a static snapshot of your entire Mac hardware system and installed software.
    This is a free app that has been honestly created to provided help in diagnosing issues with Macs running the new OS X 10.9 Mavericks.
    It is not malware and can be safely downloaded and installed onto your Mac.
    http://www.etresoft.com/etrecheck
    Copy/paste and post its report here in another reply thread so that we have a complete profile of your Mac's hardware and installed software so we can all help with your Mac performance issues.
    Thank You.

  • Hello, I want to use version controlling software with Labwindows.

    Hello All.
    I want to use version controlling tool with Labwindows/CVI. Actually version controlling tools work for text files and by using the tool i can do version controlling of my .c and .h files in Labwindows/CVI project. But is there a way to do version controlling of .uir files also. Version control tool can detect the changes made in .uir file but is there any tool that can be used to compare and merge .uir files too just like text files operation for version controlling.
    Regards

    Hello Moshi,
    Personally I never understood how the integrated version control system of
    CVI works, but SVN (and TortoiseSVN) works fine with CVI projects.
    UIR files are treated as binary, as they should be, and that's about all.
    You could put the .tui file under version control instead, but I don't think
    it's worth the bother.
    Guillaume Dargaud
    http://www.gdargaud.net/

  • IPad 2 running unauthorized modified version. What does it mean, and how can I solve this problem?

    I get a message that my iPad is running an unauthorized modified version, even though I'm currently running 4.3.3. What does it mean, and how can I solve this problem? Please help, i ve tried everything. Thanks

    I bought my iPad 2 three months ago from apple, and all my updates re from apple through iTunes. Version 4.3.3 is the latest version I updated, have been trying hard to update 4.35 but I get error messages all the time when the update is almost complete. Everything was working beautifully since I bought it, but this update problem just cropped up last week. I need a way out pls.

Maybe you are looking for

  • Why can't I play purchased movies on my Apple TV? And why does iTunes match not work on my Apple TV?

    I have an Apple TV (early 2012) and bought some movies in the iTunes store. Now, Apple TV doesn't let me watch my purchased content. I very well can listen to music I have bought in the iTunes store and watch the purchased movies on my iphone 6 (runn

  • Using Dreamweaver and Contribute at the same time

    Hello! I just installed the Adobe Creative Suite 3 Master collection and when I am using Contribute and try to edit the pages in dreamweaver by using the edit in external application an unknown error occurred in the contribute state manager. Could so

  • Date format problem in BI Publisher

    Halo All, I have data like this: 2011-05-18T15:15:07.000+08:00 so in sql i convert it using:to_char(bla,'dd-mon-yyyy') and work fine in toad. but when i applied it in data template bi publisher then previewed, the data dissapear. please help me on th

  • Reg:  Amount in Local currency in MIGO

    Hi  Experts, While after posting GR against PO we have observed that system has calculated wrong amount and posted wrong amount in amount in LC ( Local Currency) filed DMBTR. How can the value be corrected can anybody help me out.

  • PE 4 crashes when I try to edit a title

    I was able to fix the crashes from adding transitions but now I can't edit a title at the very end of my project. I just defrag'd, cleaned up registry and uninstalled and re installed PE 4 and still it crashes....I tried restarting and opening up PE