0 Replies Latest reply on Sep 30, 2010 8:10 AM by getZinger

    alignToBaseLine / GridAlignment

    getZinger Level 1

      I noticed that InDesign Server CS4 does not contain the property alignToBaseline (Boolean),

      for ParagraphStyles, like InDesign CS4 object model does.

      It does however contain a property GridAlignment, which can be set to GridAlignment.ALIGN_BASELINE or GridAlignment.NONE.

       

      In cases of a document where I would like the align to baseline to be true, I set the GridAlignment to GridAlignment.ALIGN_BASELINE. Works perfectly (where it is the last pstyle I add). But when  I would like the align to baseline to be false, both setting GridAlignment to GridAlignment.NONE, or do nothing at all with the property, gives me a document where all styling is f*cked up.

      InDesign Server doesn't give an error message in the console.

       

      Is there someone who's got experience with this?

       

      Local version, works local, but Server ignores the alignToBaseline:

       

      with(myParagraphStyle){

           if(myAlignToBaseline==true){

                          alignToBaseline = myAlignToBaseline;
             }

      }

       

      Server version:

      with(myParagraphStyle){

           if(myAlignToBaseline==true){

                          gridAlignment = GridAlignment.ALIGN_BASELINE;
              }

           /*the else can be commented or not, makes no diff

           else

                {

                gridAlignment = GridAlignment.NONE;

                }*/

      }