Copy link to clipboard
Copied
Hello everyone.
I have the structure:
I need to check the wicht Paragraph Style the "titulo" (tittle) structure is applied.
Should be also "titulo" Paragraph style, but during the use of the document, someone can accidentally change this paragraph style and I want to check with extend script.
var estAtosTitulo = estEntidades[e].parent.evaluateXPathExpression("//ato/titulo");
I know there I take the Tag, but i need take the paragraph style.
Please, How do I do that?
Copy link to clipboard
Copied
estTitulos = myDocument.xmlElements[0].evaluateXPathExpression("grupo/entidade/ato/titulo");
And ...
Before I tried
if(estTitulos[i].appliedParagraphStyle.name !== "titulo"){
//TODO
}
if(estTitulos[i].paragraphs[0].appliedParagraphStyle.name !== "titulo"){
$.writeln("This structure may be TITULO Paragraph Style. But don´t is. Please, check this.");
}