phax / ph-pdf-layout

Java library for creating fluid page layouts with Apache PDFBox. Supporting multi-page tables, different page layouts etc.
Apache License 2.0
61 stars 11 forks source link

Export table as image #22

Closed arjit-mishra closed 2 years ago

arjit-mishra commented 2 years ago

Hi @phax

Is it possible to save a table as an image?

Thanks for the library and your work. Regards

phax commented 2 years ago

May I ask what you are aiming for? Do you just want nicely layouted tables as an image, or do you want to have the tables included as an image in the PDF?

arjit-mishra commented 2 years ago

Hello and thanks for the reply.

Yes the first, I want a nicely layouted table saved as an image (jpg/png)

phax commented 2 years ago

Sorry - can't help with that :/ I think it should be doable, but the effort is not to be underestimated, even though "just" the "rendering" part needs to be updated to draw on an ImageBuffer...

Happy for every PR :)

arjit-mishra commented 2 years ago

No worries,

Thanks for the reply. I'm just a novice so trying to get my project done (which I implemented using Ralf Stuckert's PDFBox-Layout and later found that I cannot draw table on that). So here I'm on learning spree and trying to find workaround. If cannot then will need to change the library. Probably create whole document using this

Regards

phax commented 2 years ago

Okay cool - good luck :) Never used the other library, so can't say anything about it. My library focuses on the "simple things" and provides (hopefully) easy means to extend it where necessary. Closing this issue for now.