Header, Row and Column Size

Viewing 2 reply threads
  • Author
    Posts
    • #87792
      Brendan McC
      Member

      Hello,
      I have 60 page a catalog and am preparing a print version and an interactive pdf version. For complicated reasons the layouts are different. The catalog consists of approx 200 tables and I would like to adjust all of the header, row and column sizes via a script.
      I found one script that sees the header the same as a row, which is a problem to me.
      I would like every header to have a height of 12, every row to have a height of 5.5 and every column to have a width of 15.
      Am I dreaming?
      Brendan

    • #87864

      Hi Brendan,

      try this one:

      var allTables = app.activeDocument.stories.everyItem().tables.everyItem();
      allTables.rows.everyItem().height = 5.5;
      allTables.columns.everyItem().width = 15;
      allTables.rows.firstItem().height = 12;
      

      It will not check, if the first line is a real header-row. It will give the height to all first lines.
      Realize also, that you get maybe overset or the textframe is not fitting the table.

      Kai

    • #87881
      Matt Isaac
      Participant

      Brendan, using Kai’s script will change the measurements based on your ruler preferences. If you want to specify the units you will need to put the numbers in quotations with the unit after (eg. “5.5pt”; instead of 5.5).

Viewing 2 reply threads
  • You must be logged in to reply to this topic.
>