Add new page issue with spreads in indesign extension app

Hi All,
i am developing an adobe indesign extension application using adobe flex 3.4 sdk.
the application purpose is to publish the document to remote server.
i have done all the options well.
now i am facing little problems to polish it.
the problem are,
1) Adding new page
   Let us say a particular indesign document (portrait) contains 6 pages.
   Page 1, 2 are in spread
   Page 3
   Page 4
   Page 5, 6 are in spread
   Now i am going to add a new page via indesign extension.
   when i try to add a new page. it will add into the last spread page. (Page 5, 6)
   Finaly it became Page 5, 6 and 7 in spread.
   What i want is.
   After adding the new page the document must have the following structure.
   Page 1, 2 are in spread
   Page 3
   Page 4
   Page 5, 6 are in spread
   Page 7
   My code for adding new page is.
   var document:Document = app.activeDocument;
   document.pages.add();
   Please suggest me the way to add a new page (without spread)
Thanks,
Malaris

Try the code as below
var document:Document = app.activeDocument;
document.spreads.add();
But make sure that you use this code on a document that is capable of having the the page structure that you had mentioned, i.e it should be created by unchecking the "Facing Pages" options in the new document dialog. Else it will add a two page spread to the document.
This should solve your problem.
Manan Joshi
- Efficient InDesign Solutions
-MetaDesign Solutions
http://metadesignsolutions.com/services/indesign-development.php

Similar Messages

  • Is the 'add new page' button working? (SG CC)

    Anyone else having issues with the add new page button under the look tab?  When I click it, instead of being able to add a new page with my custom looks or reopen any of the example folders, it makes a copy of whatever page happens to be selected.  I feel like I'm missing something because I don't remember encountering the problem with CS6.

    Answered my own question.  I was in "Quick View Mode" not "Look Management View Mode".  From the right view you can navigate to the folder you want displayed. /winning

  • How do I add new pages to a document and move them around?

    Before I used to be able to add new pages at any point in the document.
    I could also  restructure the document, changing the page orede as I pleased.
    I can't figure out how to do that now...
    Am I missing page Layout and only using word processing or is this just the new Pages program if so FIX IT APPLE I dont like it!

    Nonsense, everyone at Apple says you love it!
    Peter

  • How do I add multiple pages from my scanner to the adobe app?

    How do I add multiple pages from my scanner to the adobe app?

    You can't do this in Reader. It must be done in Acrobat on Windows or Macintosh.

  • Can I create a new document with a locked PDF file, add new pages, and lock it all again?

    I published a PDF document ten years ago and now want to add Creative Commons licensing language to the copyright page.  But I forgot the password!  I gather from the Forum that there is no way to recover the password.  However, I wonder if I can take the locked PDF file, create a new document (adding a new page for the licensing information), then lock the whole thing up again.  Will this work?  Thanks for your help!                                                                               

    To create an unprotected file you would need the password.

  • Issue with printing an Indesign PDF

    Hi all,
    I'm just getting into the InDesign software, picking new stuff up everyday.  So far, so good! Or so I thought...
    I've just created a small handout / brochure which I've converted to PDF.  The problem I'm having is that when I print the PDF it creates an opaque white box on every page in the same place. I've googled it and can't seem to find anything to solve it - the only thing that slightly married up to my issue was to do with the image clipping paths, but I didn't set any to begin with.  All images are currently JPG's that have been "placed" in and are set to a 30% transparency.
    I'm thinking of just doing a long winded trial and error by removing all images and seeing if that's what's causing the problem.  Unfortunately I have to do so on one machine, transfer it to another just to print to find out if that's the case.  Which is annoying...
    Any help would be most appreciated!
    Cheers,
    Rob

    Turns out it was an issue with the images that i'd put in (not 100% sure what!).  I don't think it was on the master sheet as I left that alone, but took out the JPGs in the rest of the document and put them back one by one.  Can't say what was causing the issue before because I set all the transparency settings the same and placed the images in like before, but at least it's fixed now!
    Update: It would appear it happens when I print the PDF as an image.  /facepalm....
    Thanks again for the replies and help

  • Create a pdf as single pages from a spread in InDesign

    I have a 4 panel brochure in InDesign. The document is laid out as two pages 24.312 inches wide by 9.5 inches tall. I ultimately want to create an 8 page PDF - single tiles of the panels from the brochure. I cannot figure out how to do this.

    You did set up your document with a mess!
    I did another answer to the same topic today:
    Create a new document (File > New > Document…) with 4 pages,in put your size of the trimmed pages, insert the bleed. First page is page 4!
    You have to inform yourself on the bleed size! Ask the printer!
    Click twice on the right page thumbnail in the panel and go to the section and numbering menu in the panel’s fly out menu and change to start with page 2.
    Change the page to a start of a new section, start with 1.
    You have now facing pages 4 | 1 &  2–3 with correct page numbers in 2 spreads. On page 1 you see the triangle which indicates that here is a new section.
    When you finally export your PDF for print Export as single pages, not as spread.

  • Can't add new page in the middle of document

    I am creating a manual and inserted page breaks at the end of each page as I created the document. Now I am trying to add a new page to the middle by inserting page breaks and even section breaks, but every time I try to add it in, it just goes to the bottom of the document and I am unable to move anything into the original 50 pages. Any tips here?
    When I look at the thumbnail view of the document it has all 50 pages in one yellow box instead of one page individually. A bit odd.

    The thumbnail browser shows one small page thumbnail for each page of your document. Each yellow bounding box indicates a section. So the thumbnail browser indicates your document has a single section with 50 pages in it.
    As you've typed your document it has naturally flowed from one page to the next. If you place a page break at the end of the page you are simply mandating what Pages has already voluntarily done. But if you insert a second page break you should get a new blank page. In other words, if you put your cursor at the bottom of page 6 and insert a page break you will move to the top of page 7 which has text because it is still page 7. Insert another page break and page 7 becomes page 8 and you'll have a blank page 7.
    Note: if you move your cursor into the middle of the document and insert a section break you'll see that the thumbnail browser shows two sections; one ending on the page above your cursor and one starting on the page your cursor is in. This is useful to understand.
    Second Note: if you use the Insert>Sections option it always inserts a new section at the bottom of the section your cursor occupies. Since your document currently has one section, that's why you wind up with the inserted page at the end of your document.

  • Need help. How do I add new pages to .dwt?

    Hi,
    What I have going is this. I have a index.dwt in DWCS3 for my website. I recently just added about 8 more pages. However when I update my .dwt page those 8 pages do not get updated, of course because I didn't create them from the .dwt template.
    Is there a way to easily link those pages to the .dwt so they will update whenever I update my index.dwt? thanks in advance dano

    I would definitely follow Gary's point #1.
    It is always better to create a child page from the template (follow the instructions given by Gary)  and add the content from the other pages and rename the file appropriately.
    *Applying* a template to a page can be fraught with problems and will likely lead to you having to create new pages anyway.  :-)
    Nadia
    Adobe Community Expert : Dreamweaver
    Unique CSS Templates | Tutorials | SEO Articles
    http://www.DreamweaverResources.com
    Web Design & Development
    http://www.perrelink.com.au
    http://twitter.com/nadiap

  • Can't add a goods-issue with more than one item and one is serial managed.

    Hi,
    We are trying to issue more than one item to a production order using the DI API.  If none of the items is serial managed, they all are accepted and the goods-issue Add is successful.  If one the items is batch-managed, the goods-issue Add is also successful.  I am able to add the goods-receipt if I it contains only one item and it is serial-number managed.  However, if I’m issuing more than one item and one or more of the items is serial number managed, then the DI API will not add the goods-issue.  The error message that appears refers to an item that is not among the items being issued.  The message is:
    -10: (IGE1.WhsCode)(line: 3), ‘Item ‘A00006        ‘ with system serial 1 is not in stock.’
    Again item A00006 is not even in the group of items being issued.
    The code I am using for the serial number part is:
    With oGoodsIssue.Lines.SerialNumbers
              .SystemSerialNumber = rs.Fields.Item("SysSerial").Value
              .ManufacturerSerialNumber = rs.Fields.Item("MfrSN").Value
              .InternalSerialNumber = rs.Fields.Item("IntrSerial").Value
              .SetCurrentLine(n)
              .Add()
              rs.MoveNext()
              n += 1
    End With
    The rs is a recordset that the code is looping through as the serial numbers are being added.
    The error message does not occur during this code.  It occurs when it tries to add the full goods-receipt.  Does anyone have any idea how I can fix this?
    Thanks,
    Mike
    Edited by: Mike Angelastro on Mar 31, 2008 8:43 AM

    Hi Mike,
    Try to do the ".Add" only if you need it. Doing a ".add" without assignation may cause the error you have.
    I guess your n variable start at 1 or 0, so you could put code like this :
    With oGoodsIssue.Lines.SerialNumbers
    if n = 0 then (or 1, also I don't the correct syntax of your programming language)
    .Add()
    end if
    .SystemSerialNumber = rs.Fields.Item("SysSerial").Value
    .ManufacturerSerialNumber = rs.Fields.Item("MfrSN").Value
    .InternalSerialNumber = rs.Fields.Item("IntrSerial").Value
    .SetCurrentLine(n)
    rs.MoveNext()
    n += 1
    End With
    HTH
    Jodérick

  • Is it possible to add new delivery schedule with bapi_change_po?

    Hi all,
    We're able to update PO existing line item and delivery schedule date with BAPI_CHANGE_PO. However we can't find any way to add new delivery date (under delivery schedule tab, in PO) for multiple delivery schedule scenario.
    please advise is it to do so with BAPI_CHANGE_PO or we should try other approach to do it. Thanks.

    Use the BAPI "BAPI_PO_CHANGE".  New delivery schedule information can be filled in the structures POSCHEDULE & POSCHEDULEX.
    poschedule-po_item = <item_number>
    poschedule-sched_line = <new schedule Line>.
    poschedule-delivery_date = <delivery_date>.
    poschedule-quantity = <schedule quantity>.
    append poschedule.
    poschedulex-po_item = <item_number>
    poschedulex-sched_line = <new schedule Line>.
    poschedulex-po_itemx = 'X'.
    poschedulex-sched_linex = 'X'.
    poschedule-delivery_date = 'X'.
    poschedule-quantity = 'X'.
    append poschedulex.
    Regards
    Vinod
    Edited by: Vinod Kumar on Apr 21, 2010 11:35 AM

  • Add new page by copying old one

    I want to add a new page to an existing website.  I would think that just opening one of the existing pages and renaming it, then linking the CSS, would work -- but the CSS refuses to recognize the new file name, and insists on adding new style rules to the old page.
    Isn't there a simple way to do this?  Most of the new page will have the same colors, layout, and headers as the others in this website.
    Thanks.........

    Does the original page have a link to an external style sheet
    (as opposed to your css styles being contained in the head of  the original
    html file)
    If so, all you need to do is open the original file > click 'File' >Save as...
    and choose your new file name.
    The new document will automatically be linked to the right style sheet.

  • New MBP issues with certain games

    I have a new post Feb 08 MBP. I have bought the Diablo and Starcraft Battle Chests, Fallout, Fallout 2, and Knights and Merchants. I have issues with all of them and these issues cannot be duplicated by owners of pre Feb 08 MBPs.
    The Diablo and Starcraft issue has been recognized by Blizzard and they are working with Apple:
    http://www.battle.net/forums/thread.aspx?FN=support&T=535843&P=1
    Reports to MacPlay about Knights and Merchants, Fallout and Fallout 2 have gone unanswered.
    Can any other new MBP owners confirm the Fallout or K&M issue?
    With Fallout I and II I have obvious graphical issues with the palette. K&M loads but I only get sounds, no window at all.
    If you have issues with Diablo II and Starcraft please post on the battle.net site above. Thanks!
    Message was edited by: Ogmios

    Hello all,
    This seems to be a problem! I wonder if it will be similar with the new iMacs that are coming out with this new processor!
    So yeah, when I load up Fallout 2 on my new Macbook Pro I get the weird graphics palette and on only one half of the screen. Seems a little phishy to me! I don't even know if there is a patch that could help! It SHOULD be solved my Rosetta or something . . . but if the new Pentyn architecture is faulty, it would have to be a recall, not a patch!
    Makes me a little nervous to tell you the truth!

  • "New" IE8 Issues with Apple Site?

    As a diehard PC user who just recently purchased an iPod Touch, I am spending a lot more time on the Apple site than in the past. I am having nothing but problems with the main Apple site when I access via IE8. The main page takes forever to load up, then mouse clicks go unnoticed or take forever to respond to. Once I get beyond the Apple home page, things start to improve but a couple of odd errors from time to time. For instance, I was accessing this forum via Firefox, then decided that I wanted to do the same side by side with IE8. Obviously, no issues with any Apple site and Firefox whatsoever. On IE8, when I went to "Login", even after logging out on Firefox, it said that the page didn't exist.
    If I didn't know better, I would think that Microsoft and Apple don't get along All kidding aside, do I have to spend the rest of my life accessing Apple's Web site via Firefox, or can I use IE8 like I do for every other site that I access (yes, I have no other problems with any other sites that I access via IE8, except for Apple's).
    Thanks.

    mlb32704 wrote:
    As a diehard PC user .... Obviously, no issues with any Apple site and Firefox whatsoever.
    So now you get a feel for how the rest of us live, eh?
    I understand how you feel, but Apple clearly doesn't give any consideration to all the hacks required to make Internet Explorer behave. They just code to the web standards that were published about 10 years ago. Having done a moderate amount of web development I can tell you that Firefox and Safari render and behave virtually identically. All version of Internet Explorer require some sort of hacking to make work. I have three separate CSS files I include with my web sites (ie6.css, ie7.css, and ie8.css) that contain distinct sets of hacks to make pages that look perfect in Safari and Firefox look somewhat decent in IE. You would think that the number of hacks would decrease as the IE version number increases, wouldn't you? Sorry. Each version has its own distinct bugs. If there is any web site in the world that shouldn't have to deal with that, it is apple.com. If you don't want to use Firefox, try Safari for Windows.

  • Is new pages compatible with older version

    Is the new version of Pages compatible with the last version?

    Yes, you can. Click here and follow the instructions.
    (103568)

Maybe you are looking for

  • Problem with Safari and Flash

    Hi guys, i've a macbook pro 15' top-2010  with osx 10.7 Lion & Adobe Flash Player 11.0.1.98 (beta) and i've this problem (with safari, firefox and chrome): - when i go in a facebook game (cityville, poker, or other flash games) my cpu go at over 100%

  • TCP/IP connections

    Hello, I need to find which TCP/IP connections were connected to my SAP system at a given time. Could you guide as to how I can detemine that Thanks

  • Regarding transaction data in IDOC

    Hey hi guys ... well i am here just want to clarify a doubt ..that wether transaction data can be sent in an IDOC...i heard only master data can be sent .... well the issue is ... i want to intimate the legacy systems when even there is a change in t

  • Create transaction and screen variants

    Hello I want to create transaction variant for VA01 and MM01 in order to simplify the data entry. I know SAP has SHD0 as a tool and Synactive has GuiXT to make all these changes. But I wonder what are the differences between these 2 tools. Please let

  • HR - Dynamic action is data saved in table ? is pernr locked ?

    hi,      I am using a dynamic action to calculate may values, to calculate those values i am in need of all the values present on the screen of custom infotype, but due to some problem , i will have only pernr with me . dynamic action will trigger a