Win a copy of Java Mock Exams (software) this week in the Programmer Certification (OCPJP) forum!
  • Post Reply Bookmark Topic Watch Topic
  • New Topic

PDF file serving

 
willie blue
Greenhorn
Posts: 13
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
I'd like to be able to serve a PDF catalog a page at a time. Right now the application sends the whole catalog to the client. I think I should be able to use servlets to accomplish this and improve the performance. Any ideas?
Thanks
 
Danny Mui
Ranch Hand
Posts: 42
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
The servlet only knows how to stream data to the client. As far as I know, I don't think there is a .PDF API to disseminate a .PDF file through Java (i.e. send a particular page..).
So one way is to create a separate .PDF for each page and send out the correct file/page (ew!).
sorry if i don't have a clue but would like to know if there is a solution for your problem. you can never have enough tricks in the bag hehe.
 
Happiness is not a goal ... it's a by-product of a life well lived - Eleanor Roosevelt. Tiny ad:
the new thread boost feature: great for the advertiser and smooth for the coderanch user
https://coderanch.com/t/674455/Thread-Boost-feature
  • Post Reply Bookmark Topic Watch Topic
  • New Topic
Boost this thread!