Inserting Endnote in InDesign document programatically
Hello All,
I am trying to add/insert endnote in InDesign document programatically.
I manage to add it and end notes are coming at the end of document, but my goal is to add endnote at bottom of each page/story
To do this I tried setting Scope and Place in endnote settings as follows
iEndnoteSettings->SetScope(IEndnoteSettings::Scope::kStory);
iEndnoteSettings->SetPlace(IEndnoteSettings::Place::kNewPage);
Above code works and endnote gets created in new page after page/story where I am inserting it.
I want to add endnote on main page/story itself and do not want to create new page for it.
I tried setting Place(Endnote Frame) as “Load the place cursor” but this requires user action to draw text frame for endnote
iEndnoteSettings->SetPlace(IEndnoteSettings::Place::kPlacegun);
Is there way I can do it programatically to add end note at the bottom of same page?
Any help is highly appreciated, Thanks in advance
