How can I export some textframes from a document to JPG? Using JS I can set app.selection = myItens and then export only these itens. Is there anyting similary to java server sdk?
There is no selection for app in java server sdk. So, the best way to do it is make a temporary group (make group but dont save the document in the endo of operations) for your desire textframes and them use the doExport function to export this group to your disere format (jpg for example).
Another detail is that isn't possible to create group when the frames are in differente pages. It's a limitation from indesign.