Add new page issue with spreads in indesign extension app


hi all,

 

i developing adobe indesign extension application using adobe flex 3.4 sdk.

 

the application purpose publish document remote server.

 

i have done options well.

 

now facing little problems polish it.

 

the problem are,

 

1) adding new page

 

   let particular indesign document (portrait) contains 6 pages.

 

   page 1, 2 in spread

   page 3

   page 4

   page 5, 6 in spread

 

   going add new page via indesign extension.

 

   when try add new page. add last spread page. (page 5, 6)

 

   finaly became page 5, 6 , 7 in spread.

 

   want is.

 

   after adding new page document must have following structure.

 

   page 1, 2 in spread

   page 3

   page 4

   page 5, 6 in spread

   page 7

 

   code adding new page is.

 

   var document:document = app.activedocument;

   document.pages.add();

 

   please suggest me way add new page (without spread)

 

thanks,

malaris

try code below

 

var document:document = app.activedocument;

document.spreads.add();

 

but make sure use code on document capable of having the page structure had mentioned, i.e should created unchecking "facing pages" options in new document dialog. else add 2 page spread document.

 

this should solve problem.

 

manan joshi

 

- efficient indesign solutions

-metadesign solutions

http://metadesignsolutions.com/services/indesign-development.php



More discussions in InDesign SDK


adobe

Comments

Popular posts from this blog

How to change text Component easybook reloaded *newbee* - Joomla! Forum - community, help and support

After Effect warning: A problem occurred when processing OpenGL commands

Preconditions Failed. - Joomla! Forum - community, help and support