File APIs for Java Developers
Manipulate DOC, XLS, PPT, PDF and many others from your application.
http://aspose.com/file-tools
The moose likes Servlets and the fly likes Printing PDF Document created by  my servelt Big Moose Saloon
  Search | Java FAQ | Recent Topics
Register / Login


Win a copy of The Mikado Method this week in the Agile and other Processes forum!
JavaRanch » Java Forums » Java » Servlets
Reply Bookmark "Printing PDF Document created by  my servelt " Watch "Printing PDF Document created by  my servelt " New topic
Author

Printing PDF Document created by my servelt

Ram Thirumangalam
Greenhorn

Joined: Aug 28, 2003
Posts: 20
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

Joined: Feb 20, 2001
Posts: 3695

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

Joined: Aug 28, 2003
Posts: 20
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!
 
I agree. Here's the link: http://aspose.com/file-tools
 
subject: Printing PDF Document created by my servelt
 
Similar Threads
how to embed pdf in html
Client side printing from Servlet
PDF Byte Array to video output stream
window.focus() or Adobe plug-in?
Member Not Found JS error