Open PDF from java app

How can I create a link in a java standalone application to open a pdf file??? (with Acrobat)
thanks

And what do you mean by "link"?

Similar Messages

  • Acrobat Reader closes after opening PDF from an app-v

    So we have a problem with reader version 10.1.0.534. In our company we have most applicaties packaged as an app-v take firefox as an example. Now when we try to open a pdf document from firefox Acrobat Reader opens for a second and then closes again right away. Reader itself is installed on Windows 7 x64 (so reader is not packaged with app-v)
    We also have this problem with some business applicaties. Is this a known issue for this Reader version? upgrading reader is a big thing (large company) so if there is a fix in the settings it would help us greatly.

    Hi Ronnie,
    I am not able to reproduce the exact issue. Sequenced the latest build of Firefox on a system already having Reader 10.1.4, so that the reader plugins gets registered. On the sequencer the PDF is opening up in Firefox. The firefox package is then installed on a client system having Reader 10.1.4. When I open any PDF in firefox on the client, I always get the SaveAs dialog.
    How are you sequencing Firefox. Are you making any customizations so that browser extensions work well. In this case browser is working within the virtual environment and might not be able to talk to local Reader.

  • Problem with opening browser from Java app.

    Hi guys, I'm not sure if this is the right place to post this, so please excuse me if I'm wrong. I'm trying to open an html page (it's a help file) from a Java application. I'm currently using java.awt.Desktop.     browse(URI uri); which gets the job done, as long as I don't pass any parameters to the page. (e.g. http://www.site.com/site.html?param1=1). Doing that gives me an IOException. Is there a way to do this without using the JNLP API?

    This is the file path copied directly from the browser's address bar:
    file:///home/riaan/EMCHelp/Help.html?page=WorkFlowActivityCategory.html"{code}
    Which causes the app to throw an exception, but when I change it to:
    {code}file:///home/riaan/EMCHelp/Help.html{code}
    it opens Help.html in the browser.  That's why I thought that it might be the query that's a problem.  Perhaps it's a simple issue of not escaping a character or something that I failed to see.                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                           

  • Unable to open pdf from some particular shared folder which is not in domain

    Encountered a strange issue here.
    We have copuple of users who login with Citrix session.
    They are able to open pdf from all the shared folders but not one which is not in domain.
    User are able to open all other files viz. doc, excel, notepad and so from that particular folder.
    Issue with all the pdf files and not only one particular file.
    Double clicking the pdf file starts the process AcroRd32.exe but the file does not open.
    If an already running AcroRd32.exe process is there (means if Adobe Reader is already open), then it's possible to open the pdf files from that folder.
    Moreover, came across one strange thing.
    I created a shortcut to one of the pdf file from that folder within the same folder.
    And it was possible to open pdf file from that shortcut but not directly :S
    Gives error: "Acrobat failed to connect DDE server" after about 20 mins if we try to open file directly.
    Googled a bit and found that issue can be resolved by navigating to
    HKEY_CLASSES_ROOT\acrobat\shell\open\ddeexec\application and changing the Key "AcroviewA10"  to  "AcroviewR10
    But when I navigated to the mentioned registry there was no AcroviewA10 but instead it was just Acroview.
    Adobe Reader version: 9.5.5
    I will be really grateful if somebody can provide solution for this.

    What happens when you open the Adobe app, then tell it to open the file?
    How big are the attachments?  There are limitations to the size allowed to be sent:
    Email Provider
    Size Limit
    Gmail
    25Mb
    Outlook
    20Mb
    Yahoo
    25Mb
    Are you sending the files to yourself?  Not sure how you are emailing files from a website...
    Are the PDF's password-protected, or some kind of copyrighted eBook perhaps?  Can you email other files successfully, or are PDF's the only files that don't work?
    Perhaps using a free Cloud service as an intermediary might work better.
    WyreNut
    I am a Volunteer here, not employed by HP.
    You too can become an HP Expert! Details HERE!
    If my post has helped you, click the Kudos Thumbs up!
    If it solved your issue, Click the "Accept as Solution" button so others can benefit from the question you asked!

  • CS6: DistributedCOM Error id: 10016 when open pdf from web page in Win8.1

    For example here below I've got the issue: 
    http://modemwifi.it/wp-content/uploads/asus-dsl-n55u.pdf
    Adobe Acrobat X pro V 10.1.8:
    DistributedCOM Error id: 10016 when open pdf from web page.
    Nome registro: System
    Origine:       Microsoft-Windows-DistributedCOM
    Data:          04/11/2013 19:09:19
    ID evento:     10016
    Categoria attività:Nessuna
    Livello:       Errore
    Parole chiave: Classico
    Utente:        PC-PIERO\Piero
    Computer:      Pc-Piero
    Descrizione:
    Le impostazioni delle autorizzazioni impostazioni predefinite del computer non concedono l'autorizzazione di Attivazione in Locale per l'applicazione server COM con CLSID
    {B801CA65-A1FC-11D0-85AD-444553540000}
    e APPID
    {2EAF0840-690A-101B-9CA8-9240CE2738AE}
    all'utente Pc-Piero\SID Piero (S-1-5-21-3453328585-262132574-2759341577-1001) dall'indirizzo LocalHost (tramite LRPC) in esecuzione nel SID del contenitore di applicazioni Non disponibile (S-1-15-2-1430448594-2639229838-973813799-439329657-1197984847-4069167804-1277922394). Per modificare tale autorizzazione di sicurezza, è possibile utilizzare lo strumento amministrativo Servizi componenti.
    XML evento:
    < Event xmlns="http://schemas.microsoft.com/win/2004/08/events/event">
      <System>
        <Provider Name="Microsoft-Windows-DistributedCOM" Guid="{1B562E86-B7AA-4131-BADC-B6F3A001407E}" EventSourceName="DCOM" />
        <EventID Qualifiers="0">10016</EventID>
        <Version>0</Version>
        <Level>2</Level>
        <Task>0</Task>
        <Opcode>0</Opcode>
        <Keywords>0x8080000000000000</Keywords>
        <TimeCreated SystemTime="2013-11-04T18:09:19.468877700Z" />
        <EventRecordID>14806</EventRecordID>
        <Correlation />
        <Execution ProcessID="768" ThreadID="776" />
        <Channel>System</Channel>
        <Computer>Pc-Piero</Computer>
        <Security UserID="S-1-5-21-3453328585-262132574-2759341577-1001" />
      </System>
      <EventData>
        <Data Name="param1">impostazioni predefinite del computer</Data>
        <Data Name="param2">Locale</Data>
        <Data Name="param3">Attivazione</Data>
        <Data Name="param4">{B801CA65-A1FC-11D0-85AD-444553540000}</Data>
        <Data Name="param5">{2EAF0840-690A-101B-9CA8-9240CE2738AE}</Data>
        <Data Name="param6">Pc-Piero</Data>
        <Data Name="param7">Piero</Data>
        <Data Name="param8">S-1-5-21-3453328585-262132574-2759341577-1001</Data>
        <Data Name="param9">LocalHost (tramite LRPC)</Data>
        <Data Name="param10">Non disponibile</Data>
        <Data Name="param11">S-1-15-2-1430448594-2639229838-973813799-439329657-1197984847-4069167804-1 277922394</Data>
      </EventData>
    < /Event>
    How can I solve this problem?
    Thanks

    // I got this from an Action (I�m using Struts)
    java.sql.Blob file=(java.sql.Blob)request.getAttribute("PDFfile");
    String filename=(String)request.getAttribute("filename");
    try{
      int iLength = (int)(file.length());
      response.setHeader("Content-type", "application/pdf");   
      response.setHeader("Content-Disposition", "inline; filename=\""+filename+"\"");
      response.setHeader("Expires","0");
      response.setHeader("Cache-Control","must-revalidate, post-check=0, pre-check=0");
      response.setHeader("Pragma","public");
      response.setContentLength(iLength);
      ServletOutputStream os = response.getOutputStream();
      InputStream in = null;
      in = file.getBinaryStream();
      byte buff[] = new byte[1024];
      while (true) {
          int i = in.read(buff);
          if (i<0) break;      
          os.write(buff,0,i); 
      os.flush();
      os.close();
    } catch(Exception ex){
       out.println("Error while reading file : " + ex.getMessage());
    }and now it�s running !!! I�m not using response.setContentType(...) and I do this in response.setHeader("Content-type", "application/pdf"). And I use response.setHeader("Content-Disposition", "inline; filename=\""+filename+"\"") instead of response.setHeader("Content-Disposition", "attachment; filename=\""+filename+"\"");

  • I cannot open Pages from the app or from a saved document on the desk top.  I get an error: "The application Pages cannot be opened  -1712"  Any suggestions?

    I cannot open Pages from the app or from a saved document on the desk top.  I get an error: "The application Pages cannot be opened  -1712"  Any suggestions?

    The following previous discussion has a solution that worked for a variety of people with the -1712 error on a variety of applications and may help: The application Safari can't be opened -1712

  • Open URL from Java in a new browser tab

    Hi OTN,
    Surprisingly can't find the implimintation.
    In an ADF managed bean I retrieve String url. I need to open a new browser tab with this url.
    Found this thread Open a url in a new window in the backing bean which shows using javascript "service.addScript(facesContext, "window.open(http://www.google.coml)");".
    But in my case in doesn't work. The code is executed, but nothing happens. Maybe because the bean is called from a taskflow inline popup.
    ADF 11.1.1.4
    Thanks.

    Well, I'm afraid that is not an option.
    The goButton is in a table row. There are lots of rows so if I use EL for Destination attribute the URL would be retrieved for each of rows.
    The method of URL retreiving is heavyweight operation which includes calling plsql functions, working with strings and others. So if I do it for each table row my application hungs and then I receive an exception of CPU usage.
    That's why I switched to normal commandButton witch actionListener which retrieves url on click - only once. So I need to open URL from Java.

  • Error message says need Adobe reader 8 or 9 installed to open pdfs from web pages yet Reader 9alredy

    Error message says need Adobe reader 8 or 9 installed to open pdfs from web pages yet Reader 9 is alredy installed on computer. Is this a 64 bit ossue although I am sure I did not have this problem prior to a replacement hard drive being installed.

    What is your operating system, browser?
    What is the exact message you are getting?

  • How to print a Pdf from Java script

    Hi,
    I need to print a pdf from java script. In java script i have url of pdf. Is there any way to print pdf from java script?
    I am able to print word doc by ActiveX. is there any activeX or something else which do the same thing for pdf?
    Any help heartily esteemed to me.
    Thanks
    Kamlesh Sharma

    you are cross postin .. your thread has been answered in the jsp jstl forums

  • Can't open PDFs from Outlook Access denied

    We are trying to open PDFs from Outlook in Reader XI.  Even after disabling protected mode, continue to receive the message "There was an error opening this document.  Access denied.".  Any suggestions?
    Thanks

    A. Fix One PC
    Launch Adobe Acrobat Reader X
    Go to: Edit > Preferences...
    Click on "General" in the left pane.
    Uncheck "Enable Protected Mode at startup"
    You will prompted with a dialog box to remind you to close the application for the change to go into effect. Click Yes.
    Click OK to save your change.
    Exit Adobe Reader
    B. Fix Several PCs in Your Organization
    Following the above steps aren't practical if you have Adobe Acrobat installed on 1,000+ computers in 30 regional offices! Push this registry setting using your standard software deployment software.
    [HKEY_CURRENT_USER\Software\Adobe\Acrobat Reader\10.0\Privileged]
    "bProtectedMode"=dword:00000000

  • Installed Pro 9 and Reader 9 now cannot open pdf from web, but can from an email?

    Installed Both Adobe Acrobat 9 professional and reader 9 yesterday on co worker machine. Went to open a pdf attachement in email no problem. Went to web to download and open a pdf and will not let her, giving co worker the error message need reader 8 or 9 to open this document!
    have unistalled 9 reader and reinstalled same problem.
    So then uninstalled reader 9 and can now open pdf from the web
    My machine has both on and no problems.
    Thank YOU for your help!!

    It may be that you will need to uninstall Reader and Repair Acrobat after the uninstall. Adobe does not recommend the installation of both products. Since you have already done the uninstall and things work fine with just Acrobat, leave things alone as that is the recommended installation.

  • Access Denied Bug Opening PDFs from the DFS in Reader X

    Hi,
    Do you have any timelines for when a bugfix will be released for the Access Denied problems when opening PDFs from a DFS share with Protected Mode enabled? We were hoping to make use of the new sandboxing technology within the corporate environment, as recent issues with security vulnerabilities (in Adobe Reader 9, the authplay.dll issues) would be mitigated by the technology. However, as the Protected Mode does not work when opening from the DFS there is no point in moving to Adobe Reader X from 9.4.1 at the moment.
    It would be good to have a release date so that we can start taking advantage of the technology as soon as we are able to.

    There's no dates, or indications of when this will be done. Thanks for your useful assistance though.

  • How to connect to mysql from java app

    hi
    please say the procedure for connecting to mysql database from java app.
    .) what should i give in environmental variables
    .)where can i find the driver class for the mysql
    .) syntax of the url
    eg:- DM.getConnection("jdbc:mysql:..............what comes here..............");

    You can also get connections from a DataSource. Simple example:
                MysqlDataSource msds = new MysqlDataSource();
                msds.setUrl("jdbc:mysql://127.0.0.1:3306/dbdame");
                msds.setUser("user");
                msds.setPassword("pass");
                Connection c = msds.getConnection();Explore your options and be sure to consider connection pooling.

  • Open Word From Java

    Hi all,
    Can we open word from java.
    It is possible from VB to do it, bit is it possible from Java.
    Thanks in advance for your help.
    Best regards.
    Saadi MONLA

    Probably have to do it using Runtime.exec() and call the word exe in the seperate process.
    Note that word will be opened in a seperate OS thread and you will not be able to refer to it from your Java Application.

  • How to execute Linux command from Java app.

    Hi all,
    Could anyone show me how to execute Linux command from Java app. For example, I have the need to execute the "ls" command from my Java app (which is running on the Linux machine), how should I write the codes?
    Thanks a lot,

    You can use "built-in" shell commands, you just need to invoke the shell and tell it to run the command. See the -c switch in the man page for your shell. But, "ls" isn't built-in anyays.
    If you use exec, you will want to set the directory with the dir argument to exec, or add it to the command or cmdarray. See the API for the variants of java.lang.Runtime.exec(). (If you're invoking it repeatedly, you can most likely modify a cmdarray more efficiently than having exec() decompose your command).
    You will also definitely want to save the returned Process and read the output from it (possibly stderr too and get an exit status). See API for java.lang.Process. Here's an example
    java.io.BufferedReader br =
    new java.io.BufferedReader(new java.io.InputStreamReader(
    Runtime.getRuntime().exec ("/sbin/ifconfig ppp0").
    getInputStream()));
    while ((s = br.readLine()) != null) {...                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                               

Maybe you are looking for

  • My mac freezes and is incredibly slow

    I have a one-year-old Macbook Pro that is 15 minutes out of support coverage. It is the worse Mac I've owned in over 20 years. It is without question the S L O W E S T mac I've ever owned. I am running OS X 10.9 with 16 GB of memory. Press the start

  • Mysterious red LED light inside my G4

    Could someone tell me what the red light means on the inside of my G4? It can't be seen from the outside. I am having a problem with my firewire ports not working. Is this a warning or alert of some kind? Help! I really looked and can't find this inf

  • Message no. LB051

    Hi Message no. LB051 Am getting these types of error msg with diff diff no. Whr r these msg setting. How to go to that to change the same to warning. Regards Ram

  • After installing Acrobat/Reader on Windows 7 or Vista, icons of all applications/file-types change t

    After installing Acrobat/Reader on Windows 7 or Vista, icons of all applications/file-types change to Acrobat/Reader icon and double clicking on any icon/file launches Acrobat/Reader (instead of the native application associated to the file type). Is

  • Reply to client by setting properties of java.rmi

    Hi All, I am very new to JAVA RMI. Is it possible for me to send a reply to client by setting the properties of java.rmi ?. I mean the reply string , if i am returning a string to client program ?. Shammi