How to export an html table as a PDF or image? [closed]
开发者_如何学JAVA
We don’t allow questions seeking recommendations for books, tools, software libraries, and more. You can edit the question so it can be answered with facts and citations.
Closed 5 years ago.
Improve this questionI am working on creating a website which will allow users to update a table using Javascript.
What I am looking for is a way to allow the user to export the table as an image (jpg, png etc.) or a PDF once it has been modified.
If there is a similar thread or topic please let me know, I don't really know where to start here. If you can recommend background reading that would be great too.
This is not something that can really be done client side (without installing software on the clients, of course). You will need to generate this PDF server-side.
How you do that depends on the language and platform you are using.
There are a couple open source PDF librarys you can use;
SharPDF, PDFClown, iTextSharp just to name a few...
精彩评论