Win a copy of Functional Reactive Programming this week in the Other Languages forum!
  • Post Reply
  • Bookmark Topic Watch Topic
  • New Topic

PDF API

 
Zulfikar Dharmawan
Ranch Hand
Posts: 74
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Hi,
Are there any API that can be used to open PDF file? I know FOP can make PDF on the fly, but i just need to show the PDF, more like an Acrobat API but completely written in Java. Are there any?
Thanks before...
 
Tim Holloway
Saloon Keeper
Posts: 18304
56
Android Eclipse IDE Linux
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Whether a PDF is to be saved as a file or to open (either in a browser window or stand-alone Acrobat Reader) is primarily determined by the MIME settings on the client's computer. Most modern-day web browsers allow the default behavior to be overriden if you send the "Content-Disposition" HTTP header with appropriate instructions.
Of course, no popular OS I know of currently comes "out of the box" with Acrobat Reader pre-installed, so it won't work at all unless the client has already installed Acrobat.
Which is why you usually see a "get Acrobat Reader" button on web pages that will transmit PDF's.
 
William Brogden
Author and all-around good cowpoke
Rancher
Posts: 13074
6
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
As I recall, Adobe actually made an all Java PDF reader and made it available. Look around on the Adobe site.
Bill
 
David Rocks
Ranch Hand
Posts: 162
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Hi
I have used a PDF API recently that can open a PDF through a java API calleed pdflib. we use it to open a PDF template and then write on to it, store it on our server and then create a link to it on a JSP page. It does the job for us. I think it costs a small bit but you can get an evaluation.
David
 
Zulfikar Dharmawan
Ranch Hand
Posts: 74
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Hi guys,
Thanks for responding. Can i use the Adobe Acrobat API or as what David said, pdflib, to make an applet similar to Acrobat Reader plugin for web browser?
So, instead of the document thrown by the server is ahndled by the client / browser plugin, i show it using applet. I hope you guys understand what i want to say.
Thanks again...
 
  • Post Reply
  • Bookmark Topic Watch Topic
  • New Topic