Enabling JavaHelp to open Acrobat for PDF links

I currently have a working help set which has one or two href links to pdf files.
When clicked, JavaHelp tries to render these and I get a stream of text - obviously the mime type is not being picked up and the file is being treated as an html.
I have read about the setKeyData etc. methods which can be used to register a different mime type to be handled with a specified viewer.
My question is:
Is it simply a matter of calling the method, setKeyData to tell the HelpSet that a file of mime type pdf is to be handled by a viewer, such as Acrobat? If so has anyone done this?
Any help is greatly appreciated.
Cheers
Aaron

Here is a simplier code variation that works (only) for applications started using Java Web Start.
import java.awt.event.ActionEvent;
import java.net.MalformedURLException;
import java.net.URL;
import javax.jnlp.BasicService;
public class HelpStartBrowser extends com.sun.java.help.impl.JHSecondaryViewer {
    BasicService bs = null;
    /** Creates new HelpStartBrowser */
    public HelpStartBrowser() {
        super();
        // if running from jnlp, then start browser will work
        try {
            // Lookup the javax.jnlp.BasicService object
            bs = (BasicService)javax.jnlp.ServiceManager.lookup("javax.jnlp.BasicService");
            if (!bs.isWebBrowserSupported()) bs = null;
        } catch (javax.jnlp.UnavailableServiceException ue) {
            bs = null;
    /** Called when item is clicked */
    public void actionPerformed(ActionEvent event) {
        String url = this.getContent();
        openBrowser(url);
    /** Use Java Web Start BasicService to start browser */
    private void openBrowser(String url) {
        try {
            if (bs != null)
                bs.showDocument(new URL(url));
        } catch (MalformedURLException me) {
}

Similar Messages

  • I installed CS6, including Acrobat Pro, now I can't open Acrobat or PDF documents.

    I installed CS6, including Acrobat Pro, now I can't open Acrobat or PDF documents. All other CS6 applications are available. The icon for Acrobat just shows the internet explorer icon.

    There is a special procedure for Acrobat as part of CS. It goes something like opening one of the other applications and activating, then opening Acrobat (I think the others need to stay open) and activating it. It seems like a strange procedure and is likely documented in your info -- but I can't say for sure.

  • I installed acrobat pro on my computer, and now I am unable to download items because I get a message that I need to open acrobat for the user agreement. opening acrobat pro does not help.

    I installed acrobat pro on my computer, and now I am unable to download items because I get a message that I need to open acrobat for the user agreement. opening acrobat pro does not help. What do i do?

    I have not contacted Adobe. I am using acrobat pro CC, and haven't noticed any problem with the software itself. The only problem I have had so far is when I try to download.

  • Icons necessary for PDF links?

    My boss asked me to alter all the pages on our website so
    that links to PDF
    files would be identified with an icon after each link.
    In the past I put "(PDF file)" after each link, and that text
    itself would
    link to a descriptor page of what PDF files are. When there
    were many PDF
    file links on a page, I would instead notify users at the
    beginning of the
    page that most of the links that followed were for PDF files,
    so then I
    wouldn't bother adding "(PDF file)" after those links.
    My boss had wanted the icon method a while back, but when I
    mentioned to him
    the possible clutter factor it would create on the page, he
    decided we
    should instead use the "title" parameter for links. So that
    when you mouse
    over a link to a PDF file it says " PDF File ". The spaces
    were
    added to create margins in the mouseover. I wasn't
    comfortable with that
    method for two reasons: possible misuse/abuse of an
    accessiblity feature,
    and also the fact that I would have to remember to tag PDF
    links like that
    from that point on (I have already missed a few, possibly on
    purpose because
    I don't see the need for the mouseover anyway).
    There are currently about 250 PDF links for 1403 documents in
    our site, and
    while I could use find and replace, then I will still have to
    sync the
    entire site and then tell DW to ignore all the dupe files
    that have been
    gathering all these years. Not to mention I still haven't
    determined the
    method I will use to include a space between the end of the
    link and the PDF
    icon, but still prevent the icon from being "orphaned" to
    it's own line,
    which my boss doesn't want.
    All of this work seems to go against the KISS principle that
    I have been
    striving for (keep it simple stupid), and I wonder about how
    this custom
    icon link stuff is going to turn on me in the future. I guess
    this is
    probably more a rant than anything. Anyone else have
    experience with similar
    issues? Feel free to comment or add your own client's
    anti-KISS requests
    here.

    .oO(Mike Z)
    >My boss asked me to alter all the pages on our website so
    that links to PDF
    >files would be identified with an icon after each link.
    I sometimes use a PDF icon before the link and informations
    about the
    file size after it.
    >In the past I put "(PDF file)" after each link, and that
    text itself would
    >link to a descriptor page of what PDF files are.
    Is OK, even if I would most likely not always link to the
    descriptor
    page. Just something like
    <a href="document.pdf">title</a> (PDF, 5KB)
    >When there were many PDF
    >file links on a page, I would instead notify users at the
    beginning of the
    >page that most of the links that followed were for PDF
    files, so then I
    >wouldn't bother adding "(PDF file)" after those links.
    I would only do this if _all_ links on that page lead to
    PDFs, for
    example a list of documents.
    >My boss had wanted the icon method a while back, but when
    I mentioned to him
    >the possible clutter factor it would create on the page,
    he decided we
    >should instead use the "title" parameter for links. So
    that when you mouse
    >over a link to a PDF file it says " PDF File ". The
    spaces were
    >added to create margins in the mouseover. I wasn't
    comfortable with that
    >method for two reasons: possible misuse/abuse of an
    accessiblity feature,
    It's rather a usability problem. Users should be able to see
    immediately
    if a link points to an PDF without having to "touch" each
    link.
    >There are currently about 250 PDF links for 1403
    documents in our site, and
    >while I could use find and replace, then I will still
    have to sync the
    >entire site and then tell DW to ignore all the dupe files
    that have been
    >gathering all these years. Not to mention I still haven't
    determined the
    >method I will use to include a space between the end of
    the link and the PDF
    >icon, but still prevent the icon from being "orphaned" to
    it's own line,
    >which my boss doesn't want.
    I apply my icons with CSS:
    .icon {padding-left: 21px; background: left no-repeat}
    .pdf {background-image: url(/images/icons/pdf.png)}
    And in the source code:
    <a class="icon pdf" href="document.pdf">title</a>
    (PDF, 5KB)
    Micha

  • FM10/Acrobat X 10-use named destinations for PDF linking

    My company wants our documentation to be accessible from a web page. No problem there. But they want to provide users with links that open the PDF files to a specific section.
    My books are in FM10. I created hypertext named destinations (example hyperlink syntax: newlink alarm) at the points where they want to open the PDF. I then saved the book to PDF, with the Create Named Destinations for All Paragraphs check box selected.
    We are now trying to build a link from the web page to open the PDF at the named destination. Here is some info from the web developer on his syntax:
    These zoom but do not position you to the named destination:
         <a href="Documentation/IO.OS 2.1.3 Technical Overview.pdf#nameddest=alarm&zoom=40">Tech Doc</a>       
         <a href="Documentation/IO.OS 2.1.3 Technical Overview.pdf#alarm&zoom=40">Tech Doc</a>
    This positions to the indicated page and zooms:                   
         <a href="Documentation/IO.OS 2.1.3 Technical Overview.pdf#page=20&zoom=40">Tech Doc</a>
    What are we doing wrong? I've been searching the forums and community help and we've tried all the syntax examples we can find. Thanks so much for any help you can provide!

    Hi Kim,
    Our team recently found a way to put custom named destinations in our FrameMaker files that can be used for linking to specific places in the PDF output (with no strange alphanumeric codes added to the named destinations).
    The named destinations are anchored in FM so they stay with whatever heading/text/graphic/etc they are "attached" to, even as content is added to/removed from the FM files.
    Will the following work as part of the solution you're looking for? (We're also using FM10 and Acrobat X.)
    In FM, insert a new text frame object.
    Type the following code in the text frame: [/Dest /Help123/Dest pdfmark
    where “Help123” is the name that will appear in the PDF for this named destination. This is name you would use in your hyperlinks. Our programmers use this name for the context-sensitive help links in the user interface.
    Right-click on the text frame and select Object Properties. Click to select the PostScript Code check box, then click the Set button.
    NOTE: Once the PostScript Code check box is selected, the text in the text frame cannot be edited. To edit the text in the text frame, you have to first turn off the PostScript Code option, edit the text, and then turn the PostScript Code option back on.
    Select the text frame object, then cut and paste to create a new instance of it. This places the text frame inside an anchored frame.
    You can now “attach” the anchored frame to whatever heading/figure/text/etc the named destination should link to.
    Here's the catch. To get the named destination in the PDF output, you can’t use the “Save as PDF” command in FM – you must print to PDF instead:
    In the FM file, click File >> Print Setup.
    Select Adobe PDF in the Name drop-down list, then click the Properties button.
    Deselect the Rely on system fonts only; do not use document fonts check box, then click OK.
    Click OK.
    Click File >> Print.
    Select the Generate Acrobat Data check box.
    Click the PDF Setup button to define bookmark links, print quality, etc, then click the Set button when done.
    Click the Print button.
    The generated PDF file should contain all the bookmarks you’ve defined as well as all the named destinations you added (with the exact names you specified).
    Hope that helps. Thanks, and good luck,
    Jason

  • HTML - how to open "Save as ..." for pdf link

    Here's the background of my problem.
    BACKGROUND:  I have a webpage for an eBook.  The eBook is a PDF.  The eBook can be downloaded by Mac and Window users.  I want Safari 6.0.5 for the Mac to open the "Save As ..." dialogue box when they click the PDF Download Link for the PDF.  I've gotten this to work for Firefox 24.0 for the Mac with the following html code:
    <a style="margin-left:2em;display:inline;" href="file://localhost/Users/jamesminor/Desktop/eBook/Memoir/Memoir.PDF" download="Memoir.PDF">eBook</a>
    When a person using Firefox 24.0 for the Mac clicks the  PDF Download Link for the PDF, the "Save As" dialogue box is displayed.  The person can then save the PDF to the desktop.
    CONSTRAINTS:  I want the pdf download file to be a PDF.  I know I could compress the file with my Mac but then this file would not open for those using Windows.  I can't use javascript or php code.  I don't want to use self-extracting software because this most often requires that the user have software on their computer to extract or decompress the file.
    PROBLEM:  A Mac user can [Command]-click the PDF Download Link to display the contextual menu with Save Linked File to "Downloads" and Save Linked File As ...  menu selections displayed.  It the user clicks "Save Linked File to "Downloads" the following error is displayed: "Safari can't save the file. Safari can't save the file "Downloads-1.(null)" to the downloads folder."  If the user clicks Save Linked File As, Export As: is displayed.  If the user enters the filename, e.g., myfile.pdf and clicks "Save" the following error is displayed: "The document "" could not be exported as "myfile.pdf"."  Apparently Safari thinks that what I am requesting to be saved is empty.
    What I don't understand is why I can get this to work for Firefox 24.0 for the Mac . . . and can't get it to work for Safari 6.0.5 for the Mac . . .
    Any help to potentially solve my problem will be greatly appreciated.  I've been all over the Internet searching for solutions without any success.
    Thank you in advance for your help.
    Jim Minor
    Message was edited by: James Minor
    <Email Edited by Host>

    I believe you could use the media-type attribute of xsl.output to
    force download, i.e.:
    <xsl:output method="text" media-type="application/octet-stream" />
    or use an unknown media-type like "text/xxx".
    -- Peter

  • ACROBAT READER 7.09-PDF'S NOT OPENING FROM ONLINE PDF LINKS

    Trying to open up pdf's from an online link and they will not open up, not even in preview. Anyway i can setup acrobat to be the default handler of online pdf's.

    Basically what is happening is that no download box pops up when i click the link on his mac, meaning, it doesn't look like it is even downloading it. My mac downloads and opens it right up on my machine in adobe. I thought maybe it was a browser issue, im running safari 1.3.2, he is running 1.2.3 and i tried upgrading him to 1.3.1 and it said it couldn't install the software, I then tried installing 1.3.2 and it said it couldn't install without 1.3.1. How the **** do you upgrade safari?
    G4 Mac OS X (10.3.9)

  • Open parameters for pdf in XI

    I am working on Acrobat XI Pro and Word 2013, previously when using Pro 9 and Word 2007 I could create a url link and add the open parameter #page=3 and then the link would open the pdf document on the specified page.  See example
    http://wyp-infoshare/sites/forcepolicy/Crime%20Division/Safeguarding%20vulnerable%20adults .pdf#page=3
    It still opens the pdf but always at page 1, have the parameters changed for XI or am I doing something wrong.
    Thanking you in anticipation
    Susan 

    Good morning
    Thank you for your reply, I’m trying to find out from our IT if we are using Adobe plugin or not.  In the meantime I created a new document, created a link and tried to open in the browser and received an error message webpage cannot be found.
    When copying the url the last four characters have been changed see below
    http://wyp-infoshare/sites/forcepolicy/Corporate%20Support/Equality,%20Diversity%20and%20H uman%20Rights%20strategy.pdf%20-%20page=5
    Would this be because we’re not using adobe plugin?
    Susan
    Ext 22011

  • HTML links from Full Check Accessibility report do not open the corresponding PDF links

    I regularly generate full Check accessibility reports for the PDF user guides I create in MSWord. However, when I click the links in the HTML file/report generated, they are supposed to link/highlight the corresponding errors in the PDf file. Instead, I get an error message that "There was an error opening this document. Bad parameters."
    How can I get the links to work so I know which section in my PDF has the error (inaccessible items).
    Thanks

    I understand you are creating HTML reports and then using them to find errors/view the PDFs. 
    Is this a new problem or  have you always had problems with the links?  If it's a new problem, what has changed on your system?
    Can you view other PDFs in your browser? 
    Have you moved any of the files since you created the report -- as you may know the HTML report references a specific lcoation on your hard drive and if you moved the PDF after creating the report, it may not be able to find the file.

  • Acrobat 9 pdf links not working from InDesign CS3. What is wrong?

    My links are working in my 40 page Indesign CS3 file using Mac. After I convert to a .pdf, some of the links are no longer going to the right location. They have either duplicated other links, or trying to take me incorrectly to my desktop or network. Can't figure out what is wrong.

    Links meant to  go to an outside website are supposed to be filled out in the following format : http://www.phillipmjones.net
    in Acrobat should look something like :  This is my personal website
    In Acrobat go go create you link then click on action:
    (I'm using my own personal website as an example)
    If you choose something else such as open a file then that is what it does.

  • Not able to open Acrobat 9 PDF when trying to open the pdf inside 4 sublevels of windows

    Hi,
    We are using
    mAVDoc = new Acrobat.AcroAVDocClass();  
    mAVDoc.OpenInWindowEx(mPath, this.Handle.ToInt32(), 1, 1, 0, 1, 2, 0, 0, 0);
    to open the pdf. This working fine when we try to open in a windows form but it is failing when we try to open in inside 4 subsections of windows.
    Also note that this was working fine with Adobe 7.  Can you please help me with this
    Thanks,
    Vidhya
    Note: I was not able to upload the image (bmp) of the application. Getting error that it doesnt support this content

    Hi,
    Please let me know if you require any other details to help me with this issue.  This is a critical issue for our customers. A quick solution will be much appriciated
    Thanks,
    Vidhya

  • How to use Adobe acrobat for PDF editing ?

    Hello, I'm Shankar and I'm a website developer. I use to upload lots of Pdf in my Website named eventalerts.in. In my website I want to edit some of the unwanted things and then to be upload. I unable to edit those Pdf materials. Please any one can help me .

    You'll want to ask in the Acrobat forum: Acrobat
    But the difficulty of editing a pdf can vary from somewhat easy to very hard to impossible depending on the pdf. You'll want to give them more info over there as to what types of editing you want to do and maybe even link to a sample pdf if you can.

  • HELP OPEN READER FOR PDF! URGENT!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!1

    ADOBE WON'T OPEN AND I NEED PDF READER NOW FOR TAXES!!!!   PLEASE HELP!!!!!

    I would strongly suggest posting in the correct forum.
    http://forums.adobe.com/community/adobe_reader_forums

  • Cannot Open Acrobat XI PDF files

    I installed Acrobat XI on a Windows 7 Pro computer.
    I can create PDF files on that computer as well as view/edit the files. When I send the files to another computer, I receive an error message 'file is damaged and cannot be opened'
    This has occurred on about ten different test files.
    I have sent test files to four other computers using different OS's and all have the same error message.
    Any thoughts as to the issue?

    I used MS Remote Desktop to log into the server which created the pdf document.
    I copied and pasted the PDF file to my local computer. From there, I emailed the document out to other computers.
    So, my local computer and four other computers get a 'damaged file' message
    I have one person report to me that he could open and view the PDF file when using Cloud-based MS Outlook.
    But, he cannot view the file on a local computer.
    We have tried various readers including: Adobe XI reader, Firefox and a few others.

  • Open Office for PDF Generator

    Hi,
    We have installed Adobe LiveCycle PDF generator on Linux platform & to make it functional we need to install the open office. Do we really need to install the open office? Or it will work only by coping the open office lib files and setting the class path for OpenOffice_PATH? 

    Hi all, I just wanted to extend this thread because i have a quick related question. We have a unix environment with pdfg installed but for whatever reason, open office was missed out in the installation, so whenever i try to run a pdfg service i get an error. Would simple installing openoffice suffice (an setting the environment variables), or would i have to reinstall pdfg? Unfortunately i don't have easy access to the server itself, so i'd like to try and be reassured that i'm going down the right path.
    Thanks

Maybe you are looking for