Skip navigation
Currently Being Moderated

Find all paragraphStyles  of the document which are overriden

Jun 14, 2012 6:27 AM

Hello there,

 

I want all the paragraph styles from the document which are overriden. Is there any way instead of iterating all paragraph styles?

 

Thanks in advance.

 
Replies
  • Currently Being Moderated
    Jun 14, 2012 6:33 AM   in reply to JohnAnt185

    Nope.

     

    Harbs

     
    |
    Mark as:
  • Currently Being Moderated
    Jun 15, 2012 5:57 AM   in reply to JohnAnt185

    hmm..

    i can't test it right now but it might work like this:

    iterate the paragraphs,

    test myPara

    if 
    (myPara.properties==app.activeDocument.paragraphStyles.itemByName(myPara.appliedParagraphStyle.name).properties) 
    {do something}
    
     
    |
    Mark as:
  • Currently Being Moderated
    Jun 15, 2012 6:03 AM   in reply to Vamitul

    No. That will not work. Two different javascript objects will not pass an equality check.

     

    You need to loop through all the properties...

     

    Harbs

     
    |
    Mark as:
  • Currently Being Moderated
    Jun 16, 2012 1:41 AM   in reply to JohnAnt185

    I think the easiest way is define a Preflight profile and extract the report.

     

     

    Screen shot 2012-06-16 at 2.06.34 PM.png

    Screen shot 2012-06-16 at 2.10.09 PM.png

    Shonky

     
    |
    Mark as:

More Like This

  • Retrieving data ...

Bookmarked By (0)

Answers + Points = Status

  • 10 points awarded for Correct Answers
  • 5 points awarded for Helpful Answers
  • 10,000+ points
  • 1,001-10,000 points
  • 501-1,000 points
  • 5-500 points