Thread: Converting jsp into pdf file

Forum : Servlets   20-9-2017 05:17:38 PM
User Image
Lenovo

Newbie

Joined: Aug 7, 2017

Points: 100

Threads: 6

Posts: 5

Answer Icon Converting jsp into pdf file

| Quote Date : Sep 20, 2017    Views:424    

I got an task to convert my jsp page output into pdf file and should download that file into given location. my jsp page is generating dashboard with different charts.and I want this dashboard into pdf file. please look on this problem and reply as soon as possible.



Thank you

Comments

User Image
Lenovo

Newbie

Joined : Aug 7, 2017

Points : 100

Threads: 6

Posts: 5

Re: Converting jsp into pdf file

Reply Date : Sep 22, 2017

Thank you so much, I have completed the task, this info is very useful for me.  

Thanks again

I am able to access the blog, am attaching the blog as an image. You can refer.

Replied by Sriman
User Image
Sriman

Newbie

Joined : Jul 15, 2016

Points : 480

Threads: 636

Posts: 153

Re: Converting jsp into pdf file

Reply Date : Sep 21, 2017

I am able to access the blog, am attaching the blog as an image. You can refer.

"blog is not opening.

This page isn?t w?orking

jtoee.blogspot.in didn?t send any data.

ERR_EMPTY_RESPONSE
"

Replied by Lenovo

Attachments

User Image
Lenovo

Newbie

Joined : Aug 7, 2017

Points : 100

Threads: 6

Posts: 5

Re: Converting jsp into pdf file

Reply Date : Sep 21, 2017

blog is not opening.

This page isn?t w?orking

jtoee.blogspot.in didn?t send any data.

ERR_EMPTY_RESPONSE

You cannot convert the content of Jsp page into PDF. You should have a hyper link like download as PDF in the Jsp page. We need to write one servlet with logic for gathering the data you need to display in PDF and you should use iText api and JFreeChart api to generate charts and display it in PDF.

This blog may help you http://jtoee.blogspot.in/2008/04/writing-pdf-charts-with-itext-in-less.html

Replied by Sriman
User Image
Sriman

Newbie

Joined : Jul 15, 2016

Points : 480

Threads: 636

Posts: 153

Answer IconRe: Converting jsp into pdf file

Reply Date : Sep 20, 2017

You cannot convert the content of Jsp page into PDF. You should have a hyper link like download as PDF in the Jsp page. We need to write one servlet with logic for gathering the data you need to display in PDF and you should use iText api and JFreeChart api to generate charts and display it in PDF.

This blog may help you http://jtoee.blogspot.in/2008/04/writing-pdf-charts-with-itext-in-less.html

Load More

No More Comments