This week's book giveaway is in the Artificial Intelligence and Machine Learning forum.
We're giving away four copies of TensorFlow 2.0 in Action and have Thushan Ganegedara on-line!
See this thread for details.
Win a copy of TensorFlow 2.0 in Action this week in the Artificial Intelligence and Machine Learning forum!
  • Post Reply Bookmark Topic Watch Topic
  • New Topic
programming forums Java Mobile Certification Databases Caching Books Engineering Micro Controllers OS Languages Paradigms IDEs Build Tools Frameworks Application Servers Open Source This Site Careers Other all forums
this forum made possible by our volunteer staff, including ...
Marshals:
  • Campbell Ritchie
  • Liutauras Vilda
  • Paul Clapham
  • Bear Bibeault
  • Jeanne Boyarsky
Sheriffs:
  • Ron McLeod
  • Tim Cooke
  • Devaka Cooray
Saloon Keepers:
  • Tim Moores
  • Tim Holloway
  • Jj Roberts
  • Stephan van Hulst
  • Carey Brown
Bartenders:
  • salvin francis
  • Scott Selikoff
  • fred rosenberger

Error opening pdf file from modal window

 
Ranch Hand
Posts: 198
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Hi

I am trying to open a pdf file existing on local system from a modal window(jsp file) through a hyper link to the servlet which does the outputstream work and it is not opening the file .It reaches servlet and exits without any error.
If I use the same page in the browser main window ,I can see the pdf .
Can anybody suggest whats wrong here?Can we open pdf from modal window?

Thanks
 
Greenhorn
Posts: 1
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
hello Ajai, we were having same problem and in fact i have already stumbled to some adobe off site telling us to configure Acrobat as helper, not a plug-in, but sad to say it would only works if the file you need to download is a link and not a script. below is the detail on how you can do it.

---------excerpt from adobe expert-------------

Examples of some of the error messages:
"File does not begin with '%PDF-'"
"Error reading xref entry."

To get around this Adobe recommends configuring Acrobat as a helper, not a plug-in, here's how you do it:

Enabling the Browser to Use Acrobat as a Helper Application

To configure Acrobat or Acrobat Reader as a helper application:

1. Exit from Netscape, Internet Explorer and/or AOL.
2. Start Acrobat or Acrobat Reader.
3. Choose Edit > Preferences > Internet (Acrobat 6.x or Acrobat Reader 6.x)
or
Choose Edit > Preferences > General (Acrobat 5.x or Acrobat Reader 5.x)
or
choose File > Preferences > General (Acrobat 4.x or Acrobat Reader 4.x).
4. In the Options section, deselect Display PDF in Browser (Acrobat 6/5.x or Acrobat Reader 6/5.x)
or
deselect Web Browser Integration (Acrobat 4.x or Acrobat Reader 4.x).
5. Click OK, and then exit from Acrobat or Acrobat Reader.
6. Restart Netscape, Internet Explorer or AOL.

Note: The next time you select a link to a PDF file in Internet Explorer and AOL, a dialog box will prompt you to specify what to do with the file. If you select "Open this file from its current location," Internet Explorer and AOL open the PDF file in Acrobat 4.0 or later or Acrobat Reader 4.0 or later as a helper application. If you select "Save this file to disk," Internet Explorer saves the PDF file to your hard disk, from where you can open it later.

--------bottom line--------

i also need a solution to our problem.
 
permaculture is largely about replacing oil with people. And one tiny ad:
Thread Boost feature
https://coderanch.com/t/674455/Thread-Boost-feature
reply
    Bookmark Topic Watch Topic
  • New Topic