-
Notifications
You must be signed in to change notification settings - Fork 568
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
HTMLWorker parseToList can not parse table with different tr html String #1094
Comments
at IncTable.class , my fault |
Normaly in a table, in a row, when you have less cells, than the table expects, you need to declare which cell has a larger colSpan. OpenPDF won't fill missing cells for you. |
If you have some sample code, that could help finding your problem. |
how should i do to declare which cell has a small colSpan,thanks |
Thanks for your reply,in my project,i use method HTMLWorker.parseToList() to parse html String automatically, in this method, it is use first table column number to parse table,is there any method to replace this method or any other ways to make i can parse table with rows(with different column), Or how to use DefaultCell in this method ,thanks again! |
Take a look at this example, maybe it can help you. I'm not sure OpenPDF can do exactly what you want. |
Describe the bug
if html String have a table with different rows.cells.size,will miss all row
To Reproduce
at IncCell.class,
line 104,
PdfPTable table = new PdfPTable(ncol);
ncol is cell number of first table row
if i have a row is not such many cells, this row will be miss
Expected behavior
Not given.
System
Not given
The text was updated successfully, but these errors were encountered: