Skip navigation
Currently Being Moderated

Indesign Document Page Number Problem

Aug 6, 2010 6:55 AM

Hi All

 

Is there any javascript coding for changing page number to roman (i.e., i, ii, iii, etc.) in between the documents using xml tags or styles

 

Please help me.

 

Sajeev

 
Replies
  • Currently Being Moderated
    Aug 6, 2010 8:59 AM   in reply to sandy_88

    We use this function to convert decimal to roman numbers:

     

    function decimalToRoman(decimalNumber) {
      var romanString="";
      var equivalences={M:1000,CM:900,D:500,CD:400,C:100,XC:90,L:50,XL:40,X:10, IX:9,V:5,IV:4,I:1};
      for (var i in equivalences) {
        while (decimalNumber>=equivalences[i] ) {
          romanString=romanString+i;
          decimalNumber=decimalNumber-equivalences[i];
        }
      }
      return romanString;
    }

     

    Don´t know if this helps

     
    |
    Mark as:
  • Currently Being Moderated
    Aug 6, 2010 9:48 AM   in reply to Joe.Charles

    Hi Saju,

     

    I think you expect this: if it is wrong can you explain details what you want exactly.

     

     

    app.documents[0].sections[0].pageNumberStyle = PageNumberStyle.LOWER_LETTERS;

     

    regards

    Sundar.C

     
    |
    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