Thread: Converting jsp into pdf file

Forum : Servlets   20 Sep, 2017 21:17
User Image
Lenovo

Newbie

Joined: 7 Aug, 2017

Points: 100

Threads: 6

Posts: 5

Answer Icon Converting jsp into pdf file

| Quote Date : 20 Sep, 2017    Views:707    

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 : 7 Aug, 2017

Points : 100

Threads: 6

Posts: 5

Re: Converting jsp into pdf file

Reply Date : 22 Sep, 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

Member

Joined : 15 Jul, 2016

Points : 1000

Threads: 645

Posts: 201

Re: Converting jsp into pdf file

Reply Date : 21 Sep, 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 : 7 Aug, 2017

Points : 100

Threads: 6

Posts: 5

Re: Converting jsp into pdf file

Reply Date : 21 Sep, 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

Member

Joined : 15 Jul, 2016

Points : 1000

Threads: 645

Posts: 201

Answer IconRe: Converting jsp into pdf file

Reply Date : 20 Sep, 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