I am trying to create a table which has multiple nested and formatted tables or rows in it. Currently I have created this , whereas i am trying to create something more similar to this
. My data comes from a xml file which i have full access to. I was trying to do this in PDFBox 2.0, but my question would be, is there a better api to use or some other java pdf library. Any tips would be greatly appreciated. I can post my code as well if that will help but i am looking more for some guidance.
Asked
Active
Viewed 616 times
1

codeCompiler77
- 508
- 7
- 22
-
there are some libraries on top of PDFBox such as https://github.com/GlenKPeterson/PdfLayoutManager which might be easier to work with given that PDFBox is missing a high level API for text formatting. As you have xml files you might also take a look at Apache FOP which uses XSL:FO and has a very good PDF output support (in addition to some other formats) – Maruan Sahyoun May 13 '16 at 20:37
-
https://github.com/dhorions/boxable – Tilman Hausherr May 13 '16 at 22:12