How to move Footnote out in Structure - xml structure
hi king,
i searched in forum related xml footnote discussion. still need more clarification/discussion related process.
i need maximum input , suggestion related topic streamline our process.
our projects have around minimum 50 900 footnotes each chapters, our client requirement xml workflow.
the problem here our footnotes have attributes, [@type='fn']. below coding , screenshot also.
i need move footnote out in structure, need in xml structure , applied object style also. possible script?
var mydoc = app.activedocument; var rootelement = mydoc.xmlelements.item(0); var linkelementlist = rootelement.evaluatexpathexpression("//footnote[@type='fn']"); for(var lp=linkelementlist.length-1; lp>=0; lp--){ var myelement = linkelementlist[lp]; var mytextframe = myelement.placeintoinlineframe(["21p9","5p"]); //you have create object style in active document object style name "mn"; mytextframe.appliedobjectstyle= mydoc.objectstyles.item("mn"); } alert("proces completed");
advance all
hi,
you use,
var txtframe = pg.textframes.add();
txtframe .placexml(myelement);
More discussions in InDesign Scripting
adobe
Comments
Post a Comment