I have to take PDF format of the current page data. This information needs to be formatted bit differently (i.e it is not just the direct conversion of the view whose PDF page is required.) Now there are two ways which I could think of: 1) I send trade data via json to the server side and generate PDF via javascript code. (not sure how formatting will be done in that case) 2) I send html page with full formatting via JSON to server side(no idea how this is done) , converting this to pdf (this also needs to be explored and then either sending link or binary data of generated pdf from server to client side and open PDF.
I want to know which of the solution will work best and how to implement same. Or is there any other way that needs to be done. Server side language is JAVA. And slient side code is written in d3 and html5
Aucun commentaire:
Enregistrer un commentaire