Skip to main content
August 21, 2012
Question

How to know whether alternate layout is created on a document or not?

  • August 21, 2012
  • 1 reply
  • 926 views

Hi,

I'm working on a plugin for InDesign CS6 and need to find out whether a particular document has alternate layout applied on it or not. Secondly I also want to get the notification whenever alternate layout is being created on a document.

Can anyone please help me out.

This topic has been closed for replies.

1 reply

Jongware
Community Expert
Community Expert
August 21, 2012

I'm not into the SDK, but according to the Javascript DOM, alternate layouts are part of Sections -- the section property 'alternateLayoutLength', for example, is "he number of pages in the alternate layout section".

Perhaps that gives you a clue of where to look?

September 27, 2012

Thanks Jongware...I could identify whether a particular document has alternate layout applied or not using section names.

Utils<ISectionUtils>()->GetSectionNames(document, sectionNames, kAlternateLayoutNames)

September 27, 2012

Second thing I need a notification whenever alternate layout is being created while using the plugin.

Can anyone give any ideas.