Business
Jobs
  • About Us
  • Solutions
    • Job Postings
      Post your job and receive qualified candidates in 48h.
    • Candidate Assessments
      500+ technical and psychological tests, plus anti-fraud.
    • Headhunting
      Tailor-made executive search from start to finish.
    • Payroll + EOR
      Payroll dispersal and EOR across 15+ LATAM countries.
  • Pricing
  • Jobs

0

367
Views
Generate Table/Grid from script in Adobe InDesign

Documentation doesn't help at all,no Table or Grid is specified...(or I cant find it)

I tried to create a grid from inside InDesign and it shows up as TextFrame,but still I dont understand how to manage it.

The tool I need to do takes a file(CSV/JSON) and generates a Table(or whatever is called in Adobe) from it,but the problem is that I can't find anything about Table generation.

about 4 years ago · Juan Pablo Isaza
1 answers
Answer question

0

Basically you can make a table from a selected text with the method convertToTable() this way:

var doc = app.activeDocument;                  // your document
var frame = doc.pages[0].textFrames[0];        // first text frame on first page
frame.texts.everyItem().select();              // select all text inside the frame
var table = app.selection[0].convertToTable(); // convert the selection into a table     

Before:

enter image description here

After:

enter image description here

Reference:

  • Text object

As for the rest... it's need more details about your workflow. JSON and CSV are quite different beasts, it would be different parsing algorithms for each of the formats. Will you copy the contents of the files manually or the script should read all csv or json files from some predefined folder? Or there should be some interface to select a file(s). Or a folder? How it supposed to handle a page size and formatting of the table? Etc...

about 4 years ago · Juan Pablo Isaza Report
Answer question
Find remote jobs

Discover the new way to find a job!

Top jobs
Top job categories
Business
Post vacancy Pricing Sales
Legal
Terms and conditions Privacy policy
© 2026 PeakU Inc. All Rights Reserved.
Andres GPT
Show me some job opportunities
There's an error!