Win a copy of The Java Performance Companion this week in the Performance forum!
  • Post Reply
  • Bookmark Topic Watch Topic
  • New Topic

Printing PDF Document created by my servelt

 
Ram Thirumangalam
Greenhorn
Posts: 20
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Hi
I have this wiered issue. I create a PDF on the fly dynamically in my servlet and open it using Adobe within the browser window. (setting the response content type to PDF). I was able to print the same once it is opened using Adobe 5 or lower. If I install Adobe 6, I am able to open the document within the browser window but for some reason, I am not able to print it. It says, print job could not be started. But at the same time, If I save it to my hard disk and try to open it using adobe 6 and print it, it works fine. Is is somehting that has got to do with my thread?
I issue a thread.join() after I start the thread.
Any help would be greatly appreciated.
Thanks
Ramkumar.
 
Mike Curwen
Ranch Hand
Posts: 3695
IntelliJ IDE Java Ubuntu
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Is is somehting that has got to do with my thread? I issue a thread.join() after I start the thread.

Unlikely? Those threads operate server-side. Once your PDF is delivered to your browser, it's entirely in the hands of the plugin. Or are you delivering a huge, multi-page document that is somehow being streamed and marshalled to the plugin, as needed?

Either way, it sounds like a plugin problem.
 
Ram Thirumangalam
Greenhorn
Posts: 20
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Thanks Mike. I am just trying to send in a two page document. I agree that it has got to do with the plug-ins but what baffles me is that the printing works fine if I save the same document to my hard disk and then open it within the browser.
Thanks for your quick response!
 
It is sorta covered in the JavaRanch Style Guide.
  • Post Reply
  • Bookmark Topic Watch Topic
  • New Topic