Empresas
Empleos
  • Sobre nosotros
  • Soluciones
    • Publicación de vacantes
      Publica tu vacante y recibe candidatos calificados en 48h.
    • Evaluación de candidatos
      500+ pruebas técnicas y psicológicas, más anti-fraude.
    • Headhunting
      Búsqueda ejecutiva a la medida de principio a fin.
    • Nómina + EOR
      Dispersión de nómina y EOR en más de 15 países de LATAM.
  • Precios
  • Empleos

0

368
Vistas
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 Respuestas
Responde la pregunta

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 Denunciar
Responde la pregunta
Encuentra empleos remotos

¡Descubre la nueva forma de encontrar empleo!

Top de empleos
Top categorías de empleo
Empresas
Publicar vacante Precios Comercial
Legal
Términos y condiciones Política de privacidad
© 2026 PeakU Inc. All Rights Reserved.
Andres GPT
Recomiéndame algunas ofertas
Necesito ayuda