I'm trying to convert a JTable
on a PDF document using the iText
library, looking for a solution I found this question which solves my problem: [1] Fitting a JTable in an iText PDF Document.
Although I have a problem in this line:
PdfPTable pdfTable = new PdfPTable(table.getColumnCount());
When I try to create my PdfTable
it tells me that:
pdfTable cannot be applied to given tipes
and I dont know the reason why.