Back

If your email is not recognized and you believe it should be, please contact us.

  • You must be logged in to reply to this topic.Login

PointSize in Tables..

Return to Forums

  • Author
    Posts
    • #79497

      Hi there,

      I am a newbie, so this is probably a VERY basic problem, however..

      I’m trying to change all the cells in a table to the same font size:

      function checkUserSelection ()
      {
      var a_table = checkWhichTable();
      if (a_table == null)
      {
      if (confirm(“No table selected. Do you want to process *all* tables?”) == false)
      return;
      allTables = app.activeDocument.stories.everyItem().tables.everyItem().getElements();
      for (aTable=0; aTable<allTables.length; aTable++)
      {
      processTable (allTables[aTable]);
      }
      } else
      {
      processTable (a_table);
      }
      }

      function processTable(table)
      {

      table.cells.everyItem().properties = {
      topInset:”0″, bottomInset:”0″,
      };
      table.cells.everyItem().texts(0).pointSize = 9;

      }

      Apparently “Object is not a function”..

    • #79499

      Never mind, solved it myself!.. I didn’t want those 5 hours of my life anyway.. ;-)

Viewing 1 reply thread
  • You must be logged in to reply to this topic.
Forum Ads