FrameScript to convert table to paragraphs

Chris Despopoulos despopoulos_chriss at yahoo.com
Wed Apr 21 11:10:56 PDT 2010


I don't know how FrameScript handles this per se, but it must be similar to the FDK.  You need to use the Maker document model, which includes the Maker table model.  (For information, you can look at the FDK documentation -- the programmer's guide.  You should have that, even if you're using FrameScript -- it's free, after all.)

Basically, you:
* Get the main document flow
* Get the first table in the flow (in the FDK you get all the table anchors in flow)
* Get the title (if you need it)
  - Get the first pgf in the title
  - Copy/paste, or use some other way to get it into the flow, out of the table)
  - Get next pgf, etc.
* Get the first row in the table.  Check whether it's a heading/footing row.  
  - Make whatever decisions you want to make about heading/footing rows
  - Get first cell in row
    - Get first pgf in cell
    - Copy/paste pgf out of cell
    - Get next pgf, etc.
  - Get next cell, etc.
* Get next row, etc.



      


More information about the framers mailing list