• Post Reply
  • Bookmark Topic Watch Topic
  • New Topic

display output as pdf

 
Jason Mill
Greenhorn
Posts: 6
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
I have a string of data which is the contents of a pdf, ( as I cannot read the pdf file directly from the web server).
How do I output the data so that the browser displays the pdf as pdf and not as the contents of the pdf.
Any help appreciated.
 
Bear Bibeault
Author and ninkuma
Marshal
Pie
Posts: 64724
86
IntelliJ IDE Java jQuery Mac Mac OS X
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
I believe this has been covered a few times. Use the search capability and you should find your answer.
hth,
bear
 
Scott Duncan
Ranch Hand
Posts: 365
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
So essentially your question is how to generate a pdf file from a String of data and display? In the past I have used JClass to generate pdf files. Also, I believe you could use XSLT to transform data into a PDF.
 
Bear Bibeault
Author and ninkuma
Marshal
Pie
Posts: 64724
86
IntelliJ IDE Java jQuery Mac Mac OS X
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
I gather from the wording in his question that the data is already in PDF format. He just needs to set the content-type and disposition accordingly. I don't remember the exact settings off the top of my head. Hence, the search suggestion.
hth,
bear
[ August 05, 2003: Message edited by: Bear Bibeault ]
 
It is sorta covered in the JavaRanch Style Guide.
  • Post Reply
  • Bookmark Topic Watch Topic
  • New Topic