Quantcast
Channel: Adobe Community : Popular Discussions - InDesign Server Developers
Viewing all articles
Browse latest Browse all 20709

Type of PageItem element

$
0
0

On my document I have for example 20 page itens, some of them could be ovals, textframes, graphic and so on. How can I check the type of page item?

 

For example:

 

for (int i=0; i< document.countPageItems();i++) {

     PageItem item = document.getAllChildPageItems()[i];

     TextFrame frame = TextFrameHelper.narrow(item); //Here, how can i know the exact type of my item?

}


Viewing all articles
Browse latest Browse all 20709

Trending Articles



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