Generate and display pdf doc on the browser on click of a btn - struts/iTex

Hi all
I am using iText to generate a pdf document. My challenge is to upload the file as it is generated on the browser without letting the user
click again. So basically cannot use Formfile provided by Struts to upload. Has any one tried uploading any doc on btn click .
Please share.
Thanks!

Look at the File.openWithDefaultApplication() method.

Similar Messages

  • How do I get Firefox to use the Adobe Acrobat 9.0 Standard plugin to open PDF docs in the browser window?

    I have Acrobat 9.0 Standard installed on my laptop and I've followed the guides provided by Adobe and Firefox for using the provided Adobe plugin file with Firefox so that I can view PDF documents in the Firefox browser window, but neither one has worked for me. I have the location of the Nppdf32.dll file (C:\Program Files (x86)\Adobe\Acrobat 9.0\Acrobat\Browser) and Acrobat is configured to "Display PDF in browser", but whenever I open a pdf on a website, my options are still only to either open it externally with Acrobat or save it. What do I do?

    Your response identifies the issue exactly! My website is hosted by GoDaddy. I have forwarded your linked information to their tech department. The URL below my signature is the site having the problem I've outlined when attempting to access linked images.
    Thank you
    Vincent G. Flaherty, Principal
    Hamilton 1:1 Communications, LLC
    410 Fern Road
    Orwigsburg, PA 17961-9210
    Tel: (267) 261-8693
    Designed for Submarines:
    http://www.designed4submariners.com

  • SAFARI DOES NOT DISPLAY PDF DOCS.

    Does anyone know why my Safari browser suddenly does not show PDF docs in the browser window? It used to. I use Version 2.04. A message does appear that says "plug-in cancelled". I don't know why.
    Acrobat opens it in Firefox fine, but nothing happens in Safari. I prefer Safari for viewing PDFs online because it is more convenient than having Acrobat start up and drop files on my hard drive. Any help would be greatly appreciated. Thanks very much.
    Mike

    Hi,
    I prefer Safari for viewing PDFs online because it is more convenient than having Acrobat start up and drop files on my hard drive. Any help would be greatly appreciated. Thanks very much.
    Hmm yes i can relate much better then launching adobe, for my needs.
    Go to System preferences-> Quick time preferences->Advanced tab
    see the -> MIME settings, click the button,
    Images: click to expand the list, make sure PDF is not selected.
    Let me know if this helps any?
    Eme '~[)

  • How can i set Adobe to open pdf from a secure website in the browser, it just pops up and asks to open save or download. we want it to just open the PDF directly in the browser with no popups, using IE 11

    Hi,
    We are running Internet explorer 11 with the latest version of Adobe Reader.
    have found when users login to a secure website and it has pdf links on there, it doesnt open these pdf directly in the browser, it wants to save them and then open them.
    is there anything we can change to allow them to be opened directly in the browser? 
    Thanks,
    Cam

    Hi campbellk19046717,
    Please refer the KB doc link mentioned below if that might help:
    Acrobat Help | Display PDF in browser | Acrobat, Reader XI
    Let me know.
    Regards,
    Anubha

  • FireFox 3.6 and Adobe Reader X. Reader X PDFs opened within the browser contain links, which do not work. Anyone got clues on why the links fail and how to fix?

    When we rolled out ReaderX and AcrobatX we uncheck the Diaply PDF in Browser window. OK with IE, but ignored in FireFox (3.6.16). We can live with that except the PDFs have links to other URLs and clicking on them is ignored. Same PDF opened outside the browser the links work fine. FireFox with Reader 9.4.0 no problem. Reader X with IE no problem. I can fix the Display in Browser with a change to firefox.js, but have not figured out how to fix the links when the PDF is displayed within the browser.

    My replies are in Bold.
    Thank you for your response and message.
    1. Are you seeing this problem with all kinds of PDF's or some specific  kinds like secure PDF's (with doc open password or printing  restrcitions), reader extended PDF's or PDF forms.
    This problem is with all kind's of PDF's.
    2. Are you opening a locally saved PDF by doing a drag drop in the  browser or right click and open with IE/FF or directly opening a PDF  hosted on the internet?
    It doesn't matter. However I do it, I see this problem in Firefox, IE & Google Chrome.
    3.  Can you also check the version of the Reader X browser plugin? you  could find it at C:\Program Files\Common  Files\Adobe\Acrobat\ActiveX\AcroPDF.dll. Right click -> Properties  -> Details
    If version is 9.0.x then you could try a clean install of Reader X.
    I have checked it. It's the latest plug-in (though at the moment, I have gone back to Adobe Reader 9.4.1, as I've mentioned before, because I need the reader to be working fine for my work and daily life. I am just waiting for a fix before I try Adobe Reader X again.
    As I've mentioned before, I am seeing this issue ONLY on my Windows 7 Ultimate (Laptop). In the desktop's at work, with Windows XP / Vista, I don't see it. Adobe Reader is working fine, browser integration is fine, the floating tool bar works fine, the right click menu pop' up where the right click is done...I can also save PDF' from the main toolbar at the top and so on...
    I really have run out of ideas.... and I am very surprised that no expert support personnel (if at all there is one) have dropped by or said anything or mentioned anything about this.
    Anyway.... Cheers.

  • Adobe Reader DC, doesn't disable "Display PDF Document in the web browser" when option is unchecked.

    The option under Accessibility>Setup Assistanct to uncheck the "Display PDF Document in the web browser" doesn't correctly disable Display PDF in browser when unchecked, it still defaults to opening in Internet Explorer even after restarting the browser.  Confirmed this tested agianst with IE 8, 9, 10 and 11 with the same behavior.  Moving back to Reader 11.0.10 and using this same setting works flawlessly.  Anyone else experiencing this issue?

    I am out of the office until 1/22/13.
    If you need assistance with technical issues, please contact the Help Desk at:  518-402-8888
    >>> Test Screen Name <[email protected]> 01/17/13 10:30 >>>
    Test Screen Name http://forums.adobe.com/people/Test+Screen+Name created the discussion
    "Re: Adobe Reader XI enterprise deploy-disable display PDF in browser?"
    To view the discussion, visit: http://forums.adobe.com/message/5001441#5001441

  • How to disable 'Enable JavaScript' and 'Display PDF in browser' in Adobe Reader 9.1 msi?

    I'd like to how to disable 'Enable JavaScript' and 'Display PDF in browser' in Adobe Reader 9.1 msi.
    Any help would be appreciated.

    NeoChang:
    You can modify the installation package using the Adobe Customization Wizard to toggle the "Display PDF in Browser" but I have not found a setting to disable JavaScript from the Wizard. I have created a script which makes the changes, but it has to be run for every user since that info is stored in the User hive of the Windows registry.
    Disable JavaScript:
    REG ADD "HKCU\SOFTWARE\Adobe\Acrobat Reader\9.0\JSPrefs" /v bEnableJS /d 0 /t REG_DWORD /f
    Disable Browser Integration:
    REG ADD "HKCU\Software\Adobe\Acrobat Reader\9.0\Originals" /v bBrowserIntegration /d 0 /t REG_DWORD /f
    Michael
    ~Simplicity of Character is a Natural Result of Profound Thought~

  • I've installed the Adobe Reader Plug In. Yet every time I click to see a PDF, it opens another browser and it is blank. The Browser reads about:blank. How can I fix this so that PDF's open in the browser?

    I've installed the Adobe Reader Plug In. Yet every time I click to see a PDF, it opens another browser and it is blank. The Browser reads about:blank. How can I fix this so that PDF's open in the browser?

    Check your settings in Options > Applications: https://support.mozilla.com/en-US/kb/Opening%20PDF%20files%20within%20Firefox#w_check-firefox-settings
    Also see:
    *https://support.mozilla.com/en-US/kb/Using%20the%20Adobe%20Reader%20plugin%20with%20Firefox
    *http://kb.mozillazine.org/File_types_and_download_actions
    '''If this reply solves your problem, please click "Solved It" next to this reply when <u>signed-in</u> to the forum.'''
    Not related to your question, but...
    You need to update some plug-ins:
    *Plug-in check: https://www-trunk.stage.mozilla.com/en-US/plugincheck/
    *Shockwave Flash (Adobe Flash or Flash): [https://support.mozilla.com/en-US/kb/Managing%20the%20Flash%20plugin#w_updating-flash Updating Flash in Firefox]

  • I removed chrome 10 and newly installed FF4 final, and I can't read PDF files within the browser. There was no problem in Chrome.

    I removed chrome 10 and newly installed FF4 final, and I can't read PDF files within the browser. There was no problem in Chrome. I can't even see the acrobat reader plugin in the plugins page. Acrobat 10 is already installed in my PC. Every time I try to read a PDF file on the web, FF tries to download it instead.

    As recommended above by Bernd Alheit, I posted this on the Adobe Reader forum. There, I received the advice to repair the installation under the help menu, which I did and it fixed the problem.
    Similar to your solution but found it's a fix found under "HELP" menu and not Add/Remove.
    Thank you.

  • Can't open PDF files in the browser. I've tried every fix mentioned and it still doesn't work!!!

    I have Windows XP. Using firefox as my browser. Suddenly, I can't open PDF files in the browser. I've tried all the fixes mentioned. Nothing works!!! Checked the plugin settings, checked Adobe Reader settings.

    I already fixed it. I never exited out of Firefox before deleting the mime file. it works now.

  • PDF addresses not longer load and display PDF in Firefox and solutions suggest to other users with problem DON'T WORK (work fine in Chrome and Safari)

    This is an ongoing problem with other users. When putting a PDF in address window of Firefox and clicking go to address FIREFOX WILL NOT LOAD AND DISPLAY THE PDF. This problem has come up in questions from other users on your site. NONE OF THE SUGGESTED SOLUTIONS WORK! (trying either the Firefox PDF viewer or the Acrobat viewer as default viewer)
    I am using Firefox 23.0.1 (as some of the other users with the same problem). This was not a problem in the past with Firefox. Safari and Chrome continue load and display PDFs just fine from their addresses. This is a big problem as I now have to inform people who want to view my PDFs NOT TO USE FIREFOX BUT TO USE SAFARI OR CHROME.

    It appears that a link to a PDF on an internet page will not download in Firefox either!
    I went to this page:
    http://www.nasa.gov/connect/ebooks/earth_art_detail.html#.UjYEzrwsU08
    and tried to download the PDF link at the bottom of the page (Download: PDF 11.3 MB) It didn't work! Nothing happens. Tried it in Safari and it worked flawlessly.
    I have a PDF file of my work in the public_html folder on my URL. I give the address generated by that file to people who want to view my work---this works perfectly in Safari and Chrome. As to your other question, can't bookmark it if I can't get to it in Firefox.

  • How to Generate and Display SVG Graphics in ABAP

    Hi everybody,
    I tried to complete the Tutorial "How to Generate and Display SVG Graphics in ABAP, Part 1" by Siarhei Ulasenka (https://www.sdn.sap.com/irj/scn/go/portal/prtroot/docs/library/uuid/ad83a990-0201-0010-d680-a189f8bc20fa).
    Unfortunately when I tried the example to display an SVG Drawing in an ABAP Report I get the error message "Es ist ein Laufzeitfehler aufgetreten, ungültiges Zeichen" (english should be something like "Runtime Error, unkown character"). But it works when I open the svgfile in a new IE Window (parameter in_place from cl_gui_html_viewer->show_url). Also when I open a svg file from the local disc it works fine.
    The code:
        CALL METHOD html_control->load_data
          EXPORTING
            url            = 'chart.svg'
            type         = 'image'
            subtype    = 'svg+xml'
          CHANGING
            data_table = lt_svg
          EXCEPTIONS
            OTHERS     = 1.
        CALL METHOD html_control->show_url
          EXPORTING
            url        = 'chart.svg'
            in_place   = 'X'
          EXCEPTIONS
            cntl_error = 1.
    Has anyone a solution? Thanks in advance for your help!
    Regards
    Kathrin

    Hello Alex,
    The Corel SVG viewer has problems loading and displaying the examples (see the list of limitations at their site). Try to use the Adobe viewer instead.
    Regards,
    Sergei Ulasenka

  • How to display PDF file, inside the SWF file or flash exe file

    I  have create the application for Employee details using flash actionscript 3.0
    This application is to view the organization employee details, iam using the tree component in this application,
    the tree component is to get the dada via xml file, this xml file save in the remote server ,
    I display the PDF file inside the swf file to using " StageWebView" class . Then i goto Publish Setting to change the  player Adobe Air 2.6 and run the flash file using
    ctr-l + Enter . It is work correctly the PDF file is Displayed inside the Swf Output. But I Publish this file to exe . then i run the exe it is not working .
    The application is run The xml data is onely get and displayed the Tree component then i click the tree item employee name the xml data in not display and the pdf file is not open .
    Pls Help...................

    hi i need to display the pdf file inside the swf file or flash exe file .
    I use the navigateToURL class this is open the pdf file on the browser. I want to display the pdf file in the swf window .
    Please suggest.

  • What can I do to rectify the situation in which Firefox will not open pdf files in the browser, even though I have already used all the help suggestions to no avail?

    I have tried everything Mozilla has suggested. Still when I click on a pdf, I get the message that the browser cannot open a pdf. I have gone through the help protocol, and it does not work.
    I have uninstalled Firefox and reinstalled it, and still not able to open pdf files within the browser.
    What else do I do, except go to IE or Chrome and just leave Firefox completely???

    A possible cause is the presence of a PDF plugin from an older Adobe Reader plugin in the plugins folder in the Firefox program folder.
    See [[Troubleshooting plugins]]
    See also:<br />
    http://kb2.adobe.com/cps/405/kb405461.html - The Adobe Acrobat/Reader cannot be used to view PDF files in a browser<br />
    http://kb2.adobe.com/cps/836/cpsid_83688.html - I can’t view a PDF document in my web browser<br />

  • Since upgrading to v 4.01 I am unable to print from a .pdf opened in the browser. How can I fix this?

    Since upgrading to v 4.01 I am unable to print from a .pdf opened in the browser. How can I fix this?
    I can save the page, open in Adobe Reader and print. When in the browser the File - Print command does nothing. Printer screen does not open.
    Windows XP, all updates installed.

    Hi,
    One thing to slow it down: low ink. Please check ink cartridges and replace if required.
    Regards.
    BH
    **Click the KUDOS thumb up on the left to say 'Thanks'**
    Make it easier for other people to find solutions by marking a Reply 'Accept as Solution' if it solves your problem.

Maybe you are looking for

  • OSX Mail - Cannot send message using the server ....

    Hi there, Mac Pro with OSX 10.6. *Can receive mail, but can no longer send email* using the program Mail. Been getting the popup "Cannot send message using the server [shawmail.vc.shawcable.net] for the past 3 days. I hadn't changed anything about my

  • Header and Footer in Table

    Hi, Invoice Smartforms: I create main window with an table with header and footer. In this table they are a loop to the different billing item. When they are lot of billing item, the table continue in the next page. The Header of the table is display

  • How do I update 10.7.4 to 10.7.5?

    How do I update 10.7.4 to 10.7.5?  I just got this Mac Air, it came with 10.7.4 and one of my apps won't update until I install 10.7.5.  I went to the Software update button and it didn't pull up any updates. Then I went to the Apple site and found 1

  • Hot spots as web links

    I am wanting to add hot spots in my Dreamweaver file but I don't see the option to link it to a web site. It shows "Link #" and "Target". Gary

  • Marvell ide drivers missing??

    Hello everyone  Since a few days now i own a P35 Neo2-FIR. Considering a dual boot system with Linux and windows on it i took two harddisks, one for each system. I use a WD HD on the intel Sata port for linux and my "old" (only several month old) ide