1

I'm trying to fill an existing table in my PDF. I found some examples on iText but they always create a new table and then fills it.

In my case I have already created a table and now I want to add rows to this.

Is it possible to do this?

Sandra Rossi
  • 11,934
  • 5
  • 22
  • 48
user2206834
  • 379
  • 1
  • 5
  • 13
  • You *have already created a table* - do you mean you already have a PDF with a table? Or a gui table? Or some abstract data table? – mkl Dec 16 '13 at 11:38
  • I already created a PDF file with a table (id: Table1) – user2206834 Dec 16 '13 at 12:52
  • 1
    Is the structure known to you? I.e. do you know the relevant table coordinates (column coordinates, column styles, position of new rows, ...)? Then your task is feasible. Please be aware that in the PDF there is no table structure as such anymore, merely some lines and / or colored backgrounds and some text positioned at funny positions. – mkl Dec 16 '13 at 13:56

1 Answers1

0

How-to-add-row-in-jtable may help you. Instead iText, You can print your table using Jtable's built in print method. Go to this link for more.

Thanks.

Community
  • 1
  • 1
Golam Rabbi
  • 65
  • 2
  • 7