New document one page - do not spread

I'm sure that it's simple, but I still can't get my head around the DOM. InDesign, how do I create a new document without being a double pages?

Here's what I now

     function addDocument ( w, h ){
          var myDocument = app.documents.add();
          myDocument.viewPreferences.horizontalMeasurementUnits = MeasurementUnits.points;
          myDocument.viewPreferences.verticalMeasurementUnits = MeasurementUnits.points;
          myDocument.viewPreferences.rulerOrigin = RulerOrigin.pageOrigin;
          myDocument.documentPreferences.pageWidth = w;
          myDocument.documentPreferences.pageHeight = h;
          // want only one page 'spread' and set the margins
          var myMasterSpread = myDocument.masterSpreads.item(0);
          var myMarginPreferences = myMasterSpread.pages.item(0).marginPreferences;
          myMarginPreferences.left = 0;
          myMarginPreferences.top = 0;
          myMarginPreferences.right = 0;
          myMarginPreferences.bottom = 0;
          myMarginPreferences.columnCount = 1;
          myMarginPreferences.columnGutter = 0;
          myDocument.pages[0].appliedMaster = myMasterSpread;
          return myDocument;
     }

Michael,

> but I still can't get my head around the DOM InDesign

This is how I feel on the PhotoShop DOM. You would think that if you know how this one works, you should be able to tackle another, but this isn't my experience. PS is always a struggle.

But anyway, the problem you describe is known. You would think that facing false setting pages would do the trick:

myDocument.documentPreferences.facingPages = false;

but it doesn't work. I've seen a solution developed in Switzerland forum but I do not remember who. When I need a double a master page I just delete a page. After your line

var myMasterSpread = myDocument.masterSpreads.item (0);

Insert this:

myMasterSpread.pages.item (0) .remove ();

Must be 0, not 1, page because that page 1 is applied to page 1 of the document. One might think that

Then you end up with a master its inelegant spread with side active pages, so you can always disable that.

Peter

Tags: InDesign

Similar Questions

  • Some documents on Pages do not appear on the iPad

    A few months I used Pages.  I created a couple of new documents on my MBP in Pages saved to my iCloud drive and they do not appear on my iPad2.  When I watched my iCloud drive in Safari, I noticed that the Pages were not put documents in iCloud root folder, in the contents of the folder 'Pages '.  So, I moved the Pages folder.  I went back to my iPad, closed and then reopened Pages, as well as the documents still do not appear.  I can see other documents I have in this file, but not the 2 new ones.  On my iPhone 6, new documents presented immediately.  So what the heck is wrong with Pages on my iPad?  Apple does something that makes these obsolete older iPads?

    Try the settings/iCloud and remove iCloud drive synchronization. Wait a few minutes and then resynchronize.

  • Able to add colspan with jQuery to table on one page, but not the other.

    I am able to use jQuery to add an attribute colspan to one of the rows in the table on a regular with products catalog page, but when I try to do a catalog that has instead of product catalogs, I see not the colspan attribute when I inspect the lines of the table.

    The catalog I'm talking about is http://www.thesanfordcenter.NET/suite-menu . The catalogue is secure. I have set up a temporary account and a password if you want to view the pages.

    ID: test

    Password: account 1

    I wonder if this is a problem with my jQuery or maybe what layout, I have jQuery on. Any help would be appreciated. Thank you.

    This page has some errors coming JavaScript on it.  If you press Ctrl-Shift-J or Cmd-Shift-J on a Mac in Google Chrome you will bring up the javascript console.  Anything in red is usually a javascript error or a 404 error for assets that are not found... you should always try to clean them.

    In this case, your "expstickybar.js" file is loaded on this page, and he introduces a "jQuery.noConflict (); statement that basically removes the possibility of using the variable ' $' as a quick trigger jQuery methods.  This is not the case on the pages of your catalogue main is because you only reference this script with a relative url: 'expstickybar.js', so when you are on your catalog at http://www.thesanfordcenter.net/suite-menu/appetizers page then it is looking for your javascript to http://www.thesanfordcenter.net/suite-menu/appetizers/expstickybar.js files so it is not find it is coming as a 404 error.

    A fast solution would probably be to try to remove or comment on this first line in expstickybar.js that says "jQuery.noConflict ();".  This might work, but it is also possible that it will break your expstickybar.js script. If this does not work, you should probably go into each of your statements of jQuery in your pages and wrap them up in a function that explicitly said to use the variable "$" for jQuery:

    (function ($) {}

    YOUR OLD JAVASCRIPT HERE

    (}) (jQuery);

    On a side note, also included two libraries jQuery in your site and that is never a good idea... you have jQuery 1.4.2 loading in the HEAD of your page or the page template and then you are also to load jQuery 1.6.2 in the BODY of your page or your page template.  You must use one or the other.  1.4.2 is old enough now, so if I was you, after you try to correct the mistake of jQuery.noConflict () you have got going, you need to move this jQuery 1.6.2 reference in your BODY element and replace it with jQuery 1.4.2 marked in your HEAD.

    Also - you should change your reference in your page templates to make the "expstickybar.js" a URL relative to the root instead of a relative URL of the file.  Change:

  • My new Inspiron one 2020 does not connect to the internet via ethernet.

    I have connected my a 2020 new victory 8 to our office via a network cable and the following occurs: Broadband connects to the router, but not internet access. I can reach our router and see the router configuration and status screens, but not the internet.  The rest of our office has perfect internet access. I tried two calls to support, and abroad, people insist that they go through their material problems even if the network adapter works obviously.  I suggested that it was probably a problem of windows security, and they said to reinstall windows.  Very frustrating.  Any help out there?

    I finally got internet connection ignoring suggestions from tech support and following my instinct that he was related to security.  First, I removed the McCaffy and turned off the windows firewall.  Then I crossed the ip configuration for the 6th time and ended up dhcp and my dns settings in tcp/ip to work and I had internet.  Firewall turned on him again and consider using Windows Defender.  I complete installation tomorrow after that updates Windows Update are downloaded while I'm resting.

  • fix for several projects of reactive animate on one page does not

    I am trying to include two different edge animated projects on a single html page but cannot get them to run. I contacted Adobe support on the phone and the representative sent me this link. http://blogs.adobe.com/edge/2014/10/16/using-responsive-edge-animate-compositions-in-dream weaver /. I tried to use the method described in the post on my page but nothing helps. If someone who would have tried this fix and had success or anyone who is simply interested I would appreciate any suggestions to make it work. Here is my code with the changes suggested by the fix.

    Sorry, I tried to enter my code but using 'insert raw html' in the editor, but it does not show. Can someone tell me how to include my code in my post?

  • Why the default format window opens in the new documents open in Pages 5.6.1?

    Someone else asked this before, but it is with an older version of Pages, and it's a few years, so I thought I'd make a new discussion.

    Everytime I open a new document in Pages (version 5.6.1 on OS 10.11.2, on a 13 "Macbook Pro of 2009), the formatting window is open. It's ugly and I do not want to use immediately. What is the default? Like other posters, I tried to create a model that does not do that, but even at the opening with the model, it opens but each time. As in the other poster said: this is not a terrible amount of work, but it is very annoying to do all the time. This has happened for years. A word about the recent patches?

    Not and unlikely he's going to change.

    Peter

  • After I converted the PDF to Word how to select some pages to save as a new document? Thank you

    After I converted the PDF to Word how to select some pages to save as a new document? Thank you

    You said you have a Word file and use certain pages in the file to create a new document.

    Use Word to create a new Word file that has the pages you want for the original Word file.

    You now have a "new document" desired pages.

    With Acrobat Standard or Pro installed, you can create a 'new document' PDF.

    If you don't have Acrobat Standard or Pro, or a subscription to an Adobe online service that can create PDFS from MS Word, you can use the Microsoft process to create PDF that comes with MS Word.

    Be well...

  • FM 11. New additional pages do not appear as I add content to an existing document.

    FM 11. New additional pages do not appear as I add to the content of the existing document. [Adobe Help] indicates additional pages appear automatically because the content is typed in. Is not the case, to light [Adobe online help], tried "linking text blocks" and by adding pages disconnected and other efforts. The ' add new disconnected pages "appeared, howerver content remained hidden at the bottom of page 18 vs now appear in the new pages 19-22. Also some formatting FM has not transferred on new pages 19-22. Existing topics [help] do not seem to resolve. May be simply not understand the correct solution. Is there a solution of (setting change?) of basic/simple FM 11? I have not modified the master pages, catalogs, etc. (learning FM). Any help is appreciated.

    Documents may have multiple streams of text. Each stream has a tag and an automatic connection property. When filling a stream on a page, a new page is created only if the automatic connection is enabled.

    To display these properties:

    1. CTRL-click the text frame to select it
    2. Choose the Graphics properties object
    3. If the text frame tab is not already displayed, display it.

    I would check not only your pages of body, but also on the associated master pages.

  • New Document Pages

    I'm new to InDesign. Whenever I start a new document it begines with a single Page of None. If I add a spread of facing pages (I guess that's what it's called, 2 page booklet model) they come after the single no page. If I delete the single that no pages face to face page becomes the new no page. I don't want that.

    What I want is double page spreads only. I'm creating a booklet and I don't want the individual sheets in there at all. The first 2 pages will be the cover and the back cover, the next 2 pages 1 and 2 of the book. And so on. It is ruin for me to have a blank page at the beginning and I can't get rid of it.

    Can someon help? I'll put a picture here to try to explain. I'm not sure I say that properly.

    Capture02.JPG

    Your life will be MUCH easier if you set the page size to the size of filling of the page is folded, add compensation to bleed, will work with the file that your readers will see and use booklet printing (or one of the other options such as a script or plugin) to impose the file print or export to PDF If you are planning to print yourself. If you turn it over to a commercial printer, they want a PDF of unique pages in consecutive order. Trying to put in place in the margins of the printer is an exercise in frustration and an invitation to the error.

  • New Sections in Pages - 'Starting on this page' not an option?

    Hello

    I am creating several sections on one page in the Pages so that I can create sections with different numbers of columns.

    I'm running on a problem that create a section break automatically starts a section on a new page. When I try to select "Start this page" on the "create a new Section" menu drop-down format of the Document, the option is grayed out.

    What should I do to "starting with this page", an option?

    It's easier to do in Pages ' 09, which took a Break from layout and a column break. V6 and v5 pages eliminated paused, so you have to improvise.

    There are two different approaches to a layout page in single column, two columns and return to single column. The two approaches are easier if you are available with showing invisible mode (click on the images to enlarge):

    1. Preferences pages: leadership: Alignment Guides: both are checked.
      1. Alignment of the areas corresponding text appear automatically
      2. Text boxes for positioning as appropriate. Several column in a text box mode do not display the column or gutter contours. It is the simplest to implement and tweak.
    2. Two sections
      1. Regular and one single column followed:
      2. Insert menu: column break
        1. Format text panel: tab page layout: 2 column
        2. Insert text in multiple columns and add additional yield at the end of the last sentence.
      3. Insert menu: column break
        1. Format text panel: tab layout: 1 column
        2. Resume entering the content of normal paragraph
  • HP ENVY 7640: new HP Envy 7640 will not feed documents in scan mode

    New HP ENVY 7640 will not feed for scanning documents.  It transmit documents in copy mode but not when you try to scan several pages.

    Hello

    Thank you for using the HP Forums.

    Have you installed the software features FULL?

    If this isn't the case, please download and install the FULL features software:

    http://support.HP.com/us-en/drivers/selfservice/HP-envy-7640-e-all-in-one-printer-series/6617267/model/6617268#Z7_3054ICK0K8UDA0AQC11TA930C7

    Once you have done this, launch the Scan software (via the HP printer Assistant) and make sure that the source is "heavy use document feeder.  (Example shown)

    For more tips scan, please reder to this resource:

    Scanning for Dummies

    Your printer uses the NEW interface of scanning.

    Hope that helps!

  • New Document: # pages and the start page?

    I start a new document, the beginning of what will be a 180-page ebook. With respect to the start page, should I use to allow the pages to my cover, table of contents, title page, etc. ?

    Or can I start with page one and insert pages later for OCD and everything?

    Yes (to the two questions, I think). Insert/move/delete pages are options in the Pages panel. Use them as you see fit.

    Using annotation: usually, for a book you would not include your coverage in the same document (since it takes another size - since CS5 allows this, I should mention that your printer complain). I think the term appropriate for an e-book would be "cover page".

  • Cannot save the new document Pages

    I created a new document Pages, but when I tried to save it I got the message "the file"Untitled 4"could not be opened."

    I'm on a iMac running El Capitan (10.11.6); the version of the Pages that I use is 5.6.2 (2573)

    Hello RichK,

    Thank you for using communities of Apple Support.

    I understand your message that you are not able to save your document Pages. I know how it is important to be able to save your Pages documents for later use. In the following discussion, a user named Kreklo suggests activating/deactivating the feature Documents & data in the iCloud settings. To do this, go to system preferences > iCloud > Documents and data. Then remove the check mark, and then check it in again. Then go towards Pages close it and reopen it.

    The file ' Untitled.pages - tef "could... | Communities

    Best regards

  • I want to open my new tab of my homepage, not not the tiles or white page

    I've upgraded to Firefox 41.01 and now when I open a new tab I have only the choice of tiles (which I don't want) or a completely blank page. I want the new tab to open my home page, not the tiles suggested or a blank page.

    41 of Firefox is no longer uses the browser.newtab.url setting in about: config because he was constantly attacked by malware. From 41 of Firefox, you need an add-on to change the new tab page.

    Here are a few options (I'm learning more all the time):

    • If you are already using the "Restorer of classic theme" or "Tab Mix Plus" extension: There is an option somewhere (!) in his dialogues of the parameters to select another page in the new tab.

    Use only one of these methods at the same time, otherwise there may be conflicts and dysfunctions.

    Setting up substitute new tab and new tab custom

    After installing one of these extensions, you must use the Options page to set the new desired tab page (instead of use subject: config).

    Open the page modules using either:

    • CTRL + SHIFT + a (Mac: Cmd + shift + a)
    • "3-bar" menu button (or tools) > Add-ons

    In the left column, click Extensions. Then on the side right, find the new tab replace or custom new tab and click on the Options button. (See first screenshot attached).

    New tab Override

    Depending on the size of your screen, you may need to scroll down to enter the address in the form. (See second screenshot attached). For example:

    • (Default) page thumbnails = > subject: newtab
    • Blank tab = > subject: empty
    • Built-in Firefox homepage = > topic: welcome
    • Any other page = > full URL of the page

    Then tab or click this form field and you can test using Ctrl + t.

    Custom new tab

    It is easy to enter your favourite homepage address. If you check either of the boxes, the expansion will set the focus in the page as well, for example, the cursor will be in the Google search box. (See third screenshot attached). I had to leave Firefox and start it up again before new custom tab started working, but this may have been due to tests so many extensions back to back.

    Success?

  • 5.6.2 pages will not open Documents

    Basic problem:

    I got iWork 5.6.2 for some time now without any problem, but, recently, I have reproduced a 233 KB word document and after it froze the application. I waited for about 10 minutes, but there is no determination to force the application to quit. Now, there are a handful of documents (all except one who were not open for quite force) which opens at all. The affected documents were those located on my desktop (not all of them only a select few). Any document on file or turn off my desktop are not affected (including the one that was opened during the strength to quit smoking). In addition, while pages runs the activity monitor reports that it uses 100% CPU even if no document is open.

    Detailed description of the problem:

    Double click on the relevant pages documents triggers the expansion fire effect and pages icon upward normally, but the document does not in fact. Repeated attempts to open the document give the same results (with pages already running, while now shift, or any combination of the two). No other application does seem to be affected.

    Troubleshooting of the measures taken:

    I deleted the cache pages com.apple, the problem persisted.

    I tried to remove the duplicate on which moved to the trash can without problem, but caused the progress bar to empty the trash to hang up. Pages to quit helped double should be deleted. This model of moving file is the case with all the files affected; they can be moved to other folders while pages is open or closed, but may not be carried over to the Office unless the page is closed.

    I started in safe mode and logged normally and the problem is exactly as described above, as was the case with the boot in safe mode and pressing shift of the login screen until the desktop icons appeared (using the click method shift not made no difference in both cases).

    Details and specifications of the system:

    end 2012 mac mini, quad core i7 to 2.3 GHz, 16 GB memory, 1 TB HD

    OS X El Capitan 10.11.5

    Don't not running antivirus/malware programs

    Any help would be greatly appreciated!

    Restore what you can from Time Machine before this merger of Pages down. There is no other towers of magic left you after your activities. If you have no backup, you are finished.

    Open Word documents are translated into own Pages .pages document structure, so unless you've exported to Word, and force replaced the original, your Word document is unchanged. A force quite multiplies the possibility for damaged files.

    Any document that is in use by an application is blocked a disposal by the operating system.

Maybe you are looking for

  • Satellite M70-337: cannot install the Wlan driver

    Hello! My Satellite M70-337 has a problem. WiFi does not work and I can't install the driver for network controller. I downloaded all the drivers from the Toshiba Web site but it still does not work. If anyone knows what's going on, please let me kno

  • 1221tx dv5: Upgrade of RAM 1221tx dv5

    I bought this laptop 32 bit in the year 2009 and set to level to Windows 7, so far, works well but facing a matter little in performance. Now I want to upgrade the RAM and do not know what RAM capacity will be the best run win 7 10 whereas my current

  • Why updates to uninstalled programs?

    Windows Update (Vista w/SP2) continues to try to install 'Security updates for the Microsoft Office System 2007,' even though I uninstalled the trial version of Office 2007 that came on my computer. Why keep appearing these updates? If I let the upda

  • Where are all the songs on Windows Media Player on my computer?

    I'M TRANSFERRING ALL THE SONGS I HAVE COLLECTED ON WINDOWS MEDIA PLAYER TO ANOTHER PROGRAM BUT CANNOT FIND THEIR FILE LOCATION. I TRIED C:/PROGRAMFILES/WINDOWSMEDIAPLAYER/BUT NO MUSIC NO FILES THERE. Help, please!

  • My product key has been blocked... why?

    Yesterday, I installed Windows 7 (32 bit) in a Machine virtual VirtualBox; but the machine has got corrupted. so I reinstall Windows 7 again, today. I couldn't enter my product key, so I did the "slmgr.vbs-ipk PRODUCT KEY' then"slmgr /ato"(without th