Empresas
Empregos
  • Sobre nós
  • Soluções
    • Publicação de vagas
      Publique sua vaga e receba candidatos qualificados em 48h.
    • Avaliações de candidatos
      Mais de 500 testes técnicos e psicológicos, mais anti-fraude.
    • Headhunting
      Busca executiva personalizada do início ao fim.
    • Folha de Pagamento + EOR
      Dispersão de folha e EOR em mais de 15 países da LATAM.
  • Preços
  • Empregos

0

371
Visualizações
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 Respostas
Responde à pergunta

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 Relatório
Responde à pergunta
Encontrar trabalhos remotos

Descubra a nova forma de encontrar um emprego!

melhores empregos
Principais categorias de trabalho
Empresas
Postar vaga Preços Comercial
Jurídico
Termos e Condições Política de privacidade
© 2026 PeakU Inc. All Rights Reserved.
Andres GPT
Recomende algumas ofertas para mim
Preciso de ajuda