Skip to content
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

com.lowagie.text.pdf.PdfPTable.addCell(....) should return the generated cell #837

Closed
laeubi opened this issue Oct 18, 2022 · 0 comments
Closed

Comments

@laeubi
Copy link

laeubi commented Oct 18, 2022

Is your feature request related to a problem? Please describe.
Currently adding cells to a table is rather cumbersome, there are some helpful methods but they all work on the standard cell. If one only want to derivative some properties it is required to replicate a lot of code.

Describe the solution you'd like
All com.lowagie.text.pdf.PdfPTable.addCell(....) variant currently have a void return type, but could instead simply return the newly created PdfPCell that way it would be possible for example to code like this:

PdfPTable table = ...
table.addCell("HelloWorld").setHorizontalAlignment(...):
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

No branches or pull requests

2 participants