Quantcast
Channel: Adobe Community : Popular Discussions - InDesign SDK
Viewing all articles
Browse latest Browse all 78596

[ID CS5.5+] How to get the UIDs of the page elements of the snippet imported into a document

$
0
0

Hi All,

 

I used the following code to import a snippet stream into the current active page of the document-

 

 

InterfacePtr<IDOMElement> documentElement(currSpreadUIDRef, UseDefaultIID());

if (documentElement == NULL)
     break;

if ((status = Utils<ISnippetImport>()->ImportFromStream(tStream, documentElement)) != kSuccess) {     //error
}
else{     //success
}

(where tStream is the snippet's stream)

 

I've around 10 snippets and those are successfully imported into the current spread.

 

After a single snippet is imported I want to get the UIDs of the page elements of the imported snippet, as I've to do some manipulations. I tried to get them by attaching a doc observer and look for the new page elements; but this works partially and sometimes it crashed the application.

 

What's the way to do this?

 

Any help will be appreciated. Thanks.


Viewing all articles
Browse latest Browse all 78596


<script src="https://jsc.adskeeper.com/r/s/rssing.com.1596347.js" async> </script>