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
List in Phrase in PdfTable or PdfCell #149
Comments
Unfortunately that code is pretty gnarly, and I wasn't the original author as it's taken from the last LGPL version of iText. I wouldn't be able to advice on this easily, and wouldn't have time to dig into this code in the near future. |
Ok. Thank you :-) For the record, the following stackoverflow issue seems really similar. |
I finally found a strategy to do it. We can put a table in a table where the inner table cells has a colspan of 2 for paragraphs and a small left column with a bullet symbol for lists. Should we create clj-pdf-tools repo to share these kind of transformation helpers? |
Yeah that might not be a bad idea, I've used similar tricks to get around formatting problems before myself. |
Great! |
sounds like a plan, I can move over clj-pdf to the org as well |
I now need this as well... Will see if I can get said transformation sort of generic. Of course it's easy to hardcode it as literals, but I need it generated from (a reasonable arbitrary) HTML snippet. |
Let's consider the following
:pdf-table
exampleWhen the list is inside a Phrase element (cases 3 and 4), it doesn't display correctly (no line breaks between list elements, no symbol prefix)
I took a look at https://github.com/yogthos/clj-pdf/blob/master/src/java/cljpdf/text/pdf/PdfPCell.java
but still can't figure out what to change to make it work.
Could you orient me?
Thank you!
The text was updated successfully, but these errors were encountered: