opening PDF with in the browser..!


DevX Home    Today's Headlines   Articles Archive   Tip Bank   Forums   

Results 1 to 4 of 4

Thread: opening PDF with in the browser..!

  1. #1
    Join Date
    Dec 2003
    Location
    Milwaukee
    Posts
    2

    opening PDF with in the browser..!

    I have written a servlet which basically reads the .pdf files from the webserver and writes them to the browser on request using OutputStream. The problem is my servlet is working fine, but it gives me the options wether to open or to save it to the disk.,which i dont want. and also it opens the file in a new window when i say open. Please give me some ideas how do i make it open in the same window with out any options when the user clicks on the link. ur help will be greatly appreciated. Thanks in advance.
    note: the whole thing is done in Apache-Tomcat and the browser is IE
    Krishna B
    Programmer/ Analyst

  2. #2
    Join Date
    Dec 2003
    Location
    tx/us
    Posts
    131
    You're not sending the right Content-type header before streaming out the PDF data.

  3. #3
    Join Date
    Jan 2004
    Location
    Canada
    Posts
    2

    Exclamation Reee: opening PDF with in the browser..!

    Originally posted by krishna
    I have written a servlet which basically reads the .pdf files from the webserver and writes them to the browser on request using OutputStream. The problem is my servlet is working fine, but it gives me the options wether to open or to save it to the disk.,which i dont want. and also it opens the file in a new window when i say open. Please give me some ideas how do i make it open in the same window with out any options when the user clicks on the link. ur help will be greatly appreciated. Thanks in advance.
    note: the whole thing is done in Apache-Tomcat and the browser is IE
    I need help also for created PDF by servlet, (code)
    Thank you

  4. #4
    Join Date
    Jan 2004
    Location
    Canada
    Posts
    2

    Exclamation Need help por create PDF

    I need code for created PDF files by servlet
    Thank you

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •  
HTML5 Development Center
 
 
FAQ
Latest Articles
Java
.NET
XML
Database
Enterprise
Questions? Contact us.
C++
Web Development
Wireless
Latest Tips
Open Source


   Development Centers

   -- Android Development Center
   -- Cloud Development Project Center
   -- HTML5 Development Center
   -- Windows Mobile Development Center