• Post Reply Bookmark Topic Watch Topic
  • New Topic

how to use iText to create PDF in the HTTPS protocol

 
Cs Jun
Greenhorn
Posts: 3
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Hi, All
I got a problem when using the iText to create PDF file. It works OK in the HTTP protocol. But when I use the same jsp file in the HTTPS protocol, it only output some characters on the page but not the PDF file.
Does someone have experience to deal with this??
Thanks a lot.
 
Cs Jun
Greenhorn
Posts: 3
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Hi,all
I got the ansewer.
Pls add these lines to your files.
response.setHeader("Expires", "0");
response.setHeader("Cache-Control", "must-revalidate, post-check=0,
pre-check=0");
response.setHeader("Pragma", "public");
 
  • Post Reply Bookmark Topic Watch Topic
  • New Topic
Boost this thread!