4 Replies Latest reply on Oct 7, 2010 8:12 AM by CranberryPub

    Splitting Landscape page

    CranberryPub

      I've got a series of Indesign pages that are designed on a landscape A4 page (although InDesign shows in the Page palette that it is a spread, it is only a single page). I'm trying to write a script that keeps all the content in the same place, but cuts the page down the middle, so that I have a real spread with a left and right page, so that they can be exported separately.

       

      I've seen a script that reckons to cut pages for bleed, but it doesn't seem to work on this document (from this thread: http://forums.adobe.com/message/2802876#2802876).

       

      Is there a way to change the document properties in this manner through script? I'm scripting in JS but I'm very new to InDesign scripting, so I'm struggling a bit.

       

      Thanks in advance for any help.

        • 1. Re: Splitting Landscape page
          Harbs. Level 6

          I'd suggest:

           

          1) go through all the pages, and group all the objects to ensure they don't move around. (make a reactangle the size of the page and label it for later removal.

          2) change the page size to half of the current and portrait instead of landscape.

          3) Make sure your rulers are spread not page

          4) confirm that your group is aligned to the spread bounds.

          5) ungroup and remove bounding frame

           

          Harbs

          • 2. Re: Splitting Landscape page
            CranberryPub Level 1

            Thanks. I can figure out how to change the page size and orientation via script. What I'd also need the script to do then is add a new page and make sure that page is correctly appended to the first page to create a spread, rather than one page with a second page underneath in the Pages panel. I've looked through the CS3 scripting manual (which is the only one I could see - I'm using CS4), and it doesn't cover this at all as far as I can see.

             

            Anyone know the intricacies of document manipulation via script please?

             

            If I can do that then I can combine with Harbs' suggestion, I think, to create a script that splits the pages.

            • 3. Re: Splitting Landscape page
              Harbs. Level 6

              After adding the pages, make sure the doc documentPreferences.allowPageShuffle and spread.allowPageShuffle are both true.

               

              Harbs

              • 4. Re: Splitting Landscape page
                CranberryPub Level 1

                Again, thanks for the reply.

                 

                "spread" isn't showing as a valid object and I can't find it in the scripting guide either.

                 

                However, I think I've got some other, probably embarassingly simple problem. When I check in the Pages panel, Allow document pages to Shuffle and Allow Selected spread to shuffle are both checked. But... I can;t even manually seem to drag page 2 to be beside page 1 now, so they won't attach to create a spread even manuallu never mind in script.

                 

                I'm obviously doing something really simple wrong here.