Section marker to Text


i'm trying outline of paragraphs in document can extract geometric bounds.

 

this function i'm using geometric bounds:

function getgb(p){

    var x = p.createoutlines(false);

    var gb = [];

    for(s = 0; s<x.length; s++){

        gb[gb.length] = x[s].geometricbounds;

        x[s].remove();

        }

    return gb;

    }

 

i'm running issues when comes section marker. below below section marker reads 'objective 1'. if @ contents of paragraph, activedocument.textframes[x].paragraphs[y].contents, space character. me seems obvious " " not equal "objective 1".  seems paragraph not pointing special character or contents within it.

 

if try create outline paragraph script throws error. how can access text 'objective 1' within special character? if right click 'objective 1' gui gives me option 'convert numbering text', not method of standard paragraph. object type(s) contains 'convert numbering text' method?

 

capture.png

i hope question makes sense. please let me clarify if needed.

 

i appreciate obscure nature of question , appreciate help.

actually, standard method of paragraph object: http://www.indesignjs.de/extendscriptapi/indesign11/#paragraph.html#d1e448398__d1e455279

but, afik has nothing section markers automated lists. call "section marker" list?



More discussions in InDesign Scripting


adobe

Comments

Popular posts from this blog

after effects warning: unable to create drawing surface

Maximum number of authorizations reached!