Launch a PDF from htmlText

Hi - I need to launch a PDF in a blank window - or at least
give the user the choice to "download" it from my app to their
desktop.
The attached code shows how I got it to work using getURL and
an onRelease command...but I need to get the same to work from a
text field. On rolling over the text appears in the field as shown.
When I rollover the btn I get the hand cursor - not so with
the text link. When I rollover the text I get an "I" beam...if that
matters.
The attached code is on the same frame, same layer - so I
can't imagine that the path to the pdf would be different. I
couldn't use getURL on the text so I tried what you see below.
How can I do this?
TIA your help.
JL

kglad - Thanks for that. I meant RollOut. That's funny. In
one of these little modules I've made - I HAD to use onRollOut. All
I did was repeat the onRollover code under onRollOut - otherwise
the text would disappear when the user left the hit zone of the
button. I did as you suggest and the text stays put on the roll
out. I'll have to dig that old file up to see what I did that was
different.
AND - as far as that link to a PDF - the reason I was getting
the "I" beam over the links in the text had nothing to do with the
code in the htmlText. I had a "vagrant" textField overlaying the
one I was trying to interact with. It was blocking me from
clicking. So the code in the htmlText above WILL work and DOES work
afterall.
Thanks for your help.
JL

Similar Messages

  • Javascript error when launching XFA pdf from browser

    Hi all,
    I am trying to use my XFA PDF from a browser. On my local system I have  set up a web server and am launching my PDF from there. However, I am getting a ReferenceError with regards to one of my Javascript functions.
    My PDF has dependency on a javascript file that resides in the Acrobat path as follows:
    C:\Program Files\Adobe\Acrobat 9.0\Acrobat\Javascripts\
    When I use my PDF directly from an Acrobat instance, everything works fine. The issue comes up only when launching from server. How do I link the javascript file to my PDF?
    Edit: The user is going to be launching the PDF from the server via a web browser. In such a case where do I place the javascripts?
    Help appreciated,
    Thanks

    @George: thanks for the quick response!
    My JS code contains a readFileIntoStream which I learnt is also to be run under privileged context. (still learning the ropes here.. ).  I have been trying to incorporate the JS code directly into the PDF to get around this privileged context..  but I am unable to find a non-privileged equivalent for readFileIntoStream..
    Basically my users would be accessing the PDF from the server direct via the browser. For my testing purposes I am able to run the PDF directly from my desktop via an Acrobat instance without any hitch as the scripts are folder level like you mentioned. Is it possible for the users to be able to access the javascripts from anywhere on the server rather than directly from the PDF?  Please note, users will not be saving copies of the PDF on to their local machines (in which case we could have pushed the JS file along to their machines) . I need to ultimately run the PDF from browser.
    I hope I am clear..
    Thanks.

  • CP8 - trying to launch a pdf from a subfolder on a button - not working - any suggestions?

    Tryong to open a pdf from a folder /pdf/documentname.pdf - using the action Open URL or File - deselected "continue playing project" - works if file is in same folder as published content - need to keep sepearet for security access reasons
    saw this was a bug in CP7 - I am using CP8 - anyone???

    I don't think you are alone, I cannot advise but I am having the same issue and have posted here:
    https://discussions.apple.com/message/23205752#23205752
    I suspect it's to do with IOS7 but not everyone is affected, mine was working before. I have read on some forums that Apple have just replaced the iPad as they have not been able to resolve the issue. If yours is new I would take it back and ask to try another with IOS7 installed before swapping.

  • Launching Quote PDF from UWL

    Greetings,
    I have a discount approval workflow in CRM.  The discount approval person wants to see the quote in PDF when he/she gets the quote approval request in his UWL Task tab, but I haven't been able to figure this one out.
    We have the class/method:
    zcl_cust_doc_proc_crm_order=>crm_srvcont_exec_smart_form
    which we use in the PCUI to display the quote.
    I looked at using SWFVISU and adding an entry for object visualization, but I don't understand how this would link back to approval task.  Can someone please help me with this or point me to some documentation.
    Thanks.
    Regards,
    Mel Calucin
    Bentley Systems

    Hi Raja,
    Thanks for your response.
    Actually I had checked regardng UWL XML config details about this task and this parameter appears there..
    So that is the reason I was wondering whether this is related to any patch levels?
    Have you come across any details e.g. patch level pre-requisites etc for dynamic parameters to work with UWL?
    Pls let me know If you have any other suggestions to check for.
    Regds,
    Akshay

  • Launching a PDF from an Email

    When I try to open a PDF attached to an email, the systems attempts to find a version of Acrobat 11 Pro which I had purchased and since returned/removed.  How do I get it to use Acrobat Reader to open the document?

    Right click any downloaded PDF already on your system. Choose "Properties".
    Under the General tab, where it says "Opens with" click "Change".
    Select Adobe Reader and click "OK".
    Click "Apply".
    Click "OK" and ALL PDFs will now open with Reader.

  • Launch PDF from HTML and execute search

    Is it possible using JavaScript in an HTML doc to launch a PDF and execute a search.query with a passed-in search parameter? TIA

    Hello, George, thanks for following up.  I went into Advanced->Document Processing->Document JavaScripts and put the code at the top of the file outside of the dummy function declaration I had to insert to activate the edit button.  It looks like this:
    // Split the file path into an array
    var aPath = this.path.split("/");
    // Remove the last element, which is the file name
    aPath.pop();
    // Join the path elements back together and add the index file
    var cIdxPath = aPath.join("/") + "/Support Documents/SupDocs.pdx";
    search.query ("Enhanced Tactical Automated Security System (eTASS)", "Index", cIdxPath);
    function Search()
    It runs fine when I launch the PDF directly into the reader by double-clicking in file explorer in the folder above "Support Documents".  When I load the PDF from an HTML file in the same folder, however, the script does not run.  I set the reader preferences to force loading in the reader even when launched from a browser, and the script still will not execute.  I tried adding a button to the PDF and attaching the search script to it.  Again, it runs when launching directly but not from the HTML document.  Otherwise, the PDF is empty, and I'm using a relative URL and JS to load it from the HTML doc, such as:
    document.location = "mySearch.PDF"
    or
    window.open("mySearch.PDF", "searchwin");
    Neither one works.  This product has to run from a CD-ROM, so I haven't bothered to test it via http service.  Any suggestions?  Thanks again!
    Jon Camp
    Senior Computer Scientist
    Applied Research Associates, Inc.
    North Florida Division
    Training Solutions Group
    430 W 5th Street Suite 700
    Panama City, FL  32401
    comm: 850-914-3188 x203
    fax: 850-914-3189
    email: [email protected]

  • Adobe Reader 9.3.0.148 crash on launch PDF from explorer

    The following crash occurs when launching a .PDF file from Windows Explorer:
    acrord32.exe
    acrord32.dll v9.3.0.148 offset 001937FA
    Uninstalling and re-installing Adobe Reader doesn't help.
    This is a Windows XP system.
    Viewing a PDF via Internet Explorer (add-in) does work.
    Any ideas on how to get this solved?
    Thanks,
    Wouter

    Try uninstalling, running the Microsoft Installer Cleanup tool then re-installing.

  • Launch an attachment from SWF embedded in PDF

    Goal: To launch a PDF attachment from the embedded SWF (in PDF).
    Scenario: I have created a PDF with a SWF embedded in it and I have few attachments also in the same PDF. Now based on some user input I want to open one of the attachment in the PDF.
    Question: How do I open an attachment (in PDF) from a SWF embedded in the same PDF.
    Any help will be a big help :).
    Cheers !!

    First, you can only do this with Acrobat 9. Older methods for embedding SWF's didn't allow for this level of communication between the SWF and the PDF.
    Second, to do it, you would add some ActionScript to your SWF that would use the hostContainer methodology to connect to the PDF and then use the appropriate JS methods.

  • Launching Air Help from PDF?

    Hello all,
    We have a AIR help application that is installed with our software. This help app has many bookmarks in it and our application can open it in a context sensitive way.
    We are considering creating a "quick start" guide as a .PDF  that, instead of being a reference is more of a "how to". However, it would be really nice if we could make links inside that .PDF to launch the AIR Help application in a similar way to our application.
    I'm not an expert at Acrobat or AIR, but rather the programmer who wrote the code to launch the help from our application (which is written in C++). Could somebody point me in the direction I need to look in order to launch our AIR Help from the .PDF? I see there's a way to add a javascript link, but all the JS code I've seen seemed pretty cumbersome if one were to attempt to add it to every single contextual link. And given that they are both Adobe products, I feel there must be a more built-in way to do this.
    Thanks for your time!
    Tim

    Hi Tim,
    I was wondering if you have figured out how to launch Air Help from a PDF?
    I am having to do the same thing but not having much success finding a solution.
    Thank you,
    Abbey

  • Launch Internet Explorer from PDF instead default browser chrome

    Hi
    I want to launch IE Browser from PDF links rather than any default browser like chrome etc.
    Is there a specific way that PDF links can be create for above requirement?
    Thanks

    Not possible. URLs are delegated to the OS which does with them what it's
    set up to do.
    The link itself (and Acrobat/Reader in general) has no way of interfering
    with that.
    On Thu, Dec 11, 2014 at 7:51 AM, sigirisetti <[email protected]>

  • Launch pdf from menu

    How can I open a pdf directly from the menu in 10g?
    I've tried to implement a dummy-window, with the following code in the "when-window-activated" trigger:
    declare
         path varchar(250);
    begin
         path := 'C:\folder\file.pdf';
         client_host ( 'cmd /c start ' || path );
      exit_form;
    end;I get error: WUC-015: Your form must contain the following bean for this function to be available: oracle.forms.webutil.host.Host
    I've included WEBUTIL in the project and as far as I can see, it contains host.Host.
    I think it is a timing problem with loading webutil after the window or similar. Implementing a dummy-button and calling the code above on its "When-new-item-instance" doesn't solve the problem.
    Any help will be appreciated.

    I made a whole new form and since then, at least I can call the pdf by pressing that button now. (Seems I've had some unpleasant "left overs".) However, I still can't call the pdf from the menu. I'm sure now, that it's a timing-problem. I suppose, thats also the reason why it runs on my local machine but not from the server. Maybe WEBUTIL gets loaded later there than on my pc.
    Anyway, I will make a work-around and start the pdf by pressing a button.
    Thanks a lot for you help, though!

  • Open PDF from database in a browser and run Javascript within PDF

    What we're trying to accomplish is to query a PDF in the database and open the PDF in the browse. Once opened if a user click on a link to open another PDF, it launchs a URL to Coldfusion, that queries the database and opens the PDF link. This all works but we also want to have the open PDF goto a section or bookmark within the PDF. We currently have JavaScripts within the PDF links that do that but only if the PDF is in the file system. We're using the app.openDoc to get a reference to the opened PDF. But when opening the PDF from the database we pass the control to Coldfusion using app.launchURL or app.getURL. These do not pass back a reference to the opened PDF and the JavaScripts fails.
    I'm looking for different methods or ideas.
    Is there another way to do this, I'm new to acrobat JavaScripting?
    Thanks, Rob

    I tried tapping and holding the attachment icon, it just shows "Open / Bookmark/ Copy"...
    Also i tried opening the attachement first and then tapping on it, it just shows "open in Safari"
    Is there any settings to be done to add the options of Opening in Adobe Reader/or any other Docu Sign app . the exhibition booth systems one would work i think
    Appreciate if someone could help

  • Getting general error when saving site using "create PDF from"

    I'm using Adobe Acrobat Professional 8.0.0 for Mac, trying to save websites. This started working fine, but I had to shut down in the middle of a site being saved. Now when I try to save a site  using Web Capture/create PDF from I get a "general error, nothing was saved". What do I need to do, remove, replace, reinstall or whatever to get this feature working again?
    Also can anyone tell me how to set the feature that saves web pages with the headers and footers showing date, time, URL, page title, etc. I often use the print feature (save to PDF) and up until a day or so ago it always saved with those headers and footers. Now they're missing, which is what prompted me to try saving entire sites, above. I remember setting these a long time ago and being able to choose what went on the left, right,header and footer, but I cannot find those settings now.
    Thanks,
    Michele

    Well, after downloading Applejack, I am completely confused. I'm not sure I understand what will happen if I do any of these steps: see 3a.. "clean out all cache files including the Launch Services database and any cached User Pictures". What kinds of things will I lose? Can I choose only the Acrobat cache files?  I don't want to have to spend hours or days resetting things as I'm in the middle of a project with a close deadline. I also don't really understand fully what will happen with all the other things they discuss.  The instructions say (I just copied and pasted these):
    3.  Auto mode: You can let the script run through its tasks automatically by typing 'applejack auto'. If you want the machine to automatically restart at the end of its tasks, use 'applejack auto restart'. You can also tell the computer to shut down automatically at the end by using the command line 'applejack auto shutdown'.
    3a. Deep Auto mode: If you want to let AppleJack clean out all cache files, including the Launch Services database and any cached User Pictures, use 'applejack AUTO' instead. Use this if you still have problems booting after running AppleJack already.
    4.  Interactive mode: To run through just one task, or to run the script manually, type 'applejack' and then choose tasks from the menu. Running the script in interactive mode has the benefit of giving you options for working with user level cache and preference files, not just the default system level caches and preferences. To select an option, type the highlighted number or letter associated with the action, and then hit return. Whenever you enter a choice in AppleJack, you will need to hit return for that choice to take effect.
    4.  Corrupted preference files are moved into a directory that will mirror the original preference directory, with (Corrupt) added to the directory name. For example, corrupt preferences files found in ~/Library/Preferences will be moved to ~/Library/Preferences (Corrupt). After running AppleJack, you'll probably want to take a look at them (and most likely throw out those folders). As of version 1.4.2, AppleJack now creates a copy of the directory tree inside the (Corrupt) folder so that if any files were deeply nested inside the original preference folder, they will be placed in an identical directory hierarchy in the new (Corrupt) folder. This way, if for any reason you would want to move a preference file back, you know where it should go.
    6.  AppleJack has a primitive logging mechanism. It writes a journal of most of its activity to /var/log/AppleJack.log. AppleJack will automatically reset the log the next time you run it, if the file should ever reach a size somewhat over 500k.

  • Error using the distiller in Acrobat Professional 8 to create a PDF from an Aspose.Words .doc docume

    Hi,
    We use Aspose.Words to create Microsoft Word (.doc) documents from one of our Intranet applications. These documents are then further modified in Microsoft Word and are then converted to PDF files using the distiller in Acrobat 8 Professional.
    The distiller ends with a message saying it encountered an error and could not complete the conversion.
    If we create a document directly in Microsoft Word and then use the distiller to convert it to a PDF, the distiller runs just fine.
    Would you have any idea of what might be causing this problem? The distiller gives no indication of the cause of the problem, only that is one!
    I also tried using the Create Adobe PDF Online service to convert the same Aspose.Words .doc file and it worked fine.
    Any help you can give on this would be most appreciated!
    Thanks!

    Thanks for your response. I mistakenly referred to the distiller.
    We are using PDF Maker in Word. It appears as an icon on the Word toolbar once Acrobat Professional 8 has been installed. When I open the Aspose.Words .doc document in Word and click on the toolbar icon, PDF Maker launches and starts the conversion program and then Microsoft Word ends with their standard message "Microsoft Word has encountered an error and needs to close...".
    I also tried going into Acrobat Professional 8 and chose File --> Create PDF --> From File off the menu bar. I selected the same Aspose.Words .doc document file to convert and once again the conversion process started, but this time it gave me the following error message:
    "Unable to convert PDF file.
    Invalid page range or conversion setting parameters."
    When I clicked on OK to clear the message, I got the following:
    "Acrobat could not open 'xxxxx.doc' because it is either not a supported file type or because the file has been damaged (for example, it was sent as an email attachment and wasn't correctly decoded).
    To create an Adobe PDF document, go to the source application. Then print the document to Adobe PDF or use the Acrobat toolbar found in Microsoft applications."
    I assume that since the on-line service can successfully convert this document, it is a supported file type and is not damaged (not sent as an email attachment, so no issue there). I tried opening the document in Word and printing it to Adobe PDF and that worked, but my users really like the convenience of the Acrobat toolbar so I would like them to be able to use it to create PDF files from Aspose.Words documents.
    I am using all the default settings. Is there some setting I should be changing?
    As I mentioned earlier, I did try the Create Adobe PDF on-line service with this same file and it worked just fine, so there seems to be a difference between how the on-line service does the conversion and how PDF Maker does it. Printing the document to Adobe PDF also works, so again, there must be some difference in the way PDF Maker does it.
    Any guidance you can give me would be greatly appreciated!
    Thanks very much!

  • How can I lauch a PDF from a URL from within my Plug-In?

    I have my plug-in working pretty good with the exception that I can not figure out how to launch a PDF using a URL. I am able to launch a PDF file from the file path, just not a URL.
    Any assistance is appreciated.
    Gregory

    Leonard,
    Yes, I want to open a PDF that lives on a web server. I will know the URL to the doc I want to open and I want to open it via a SDK call from within my plug-in. I can open docs from the file system using the following:
    AVDocOpenFromFile(compareASFilePath, asFileSys, NULL);
    Is there a SDK call that will allow me to open the doc using a URL like 'http://216.24.154.161/files/XXX.pdf' ?
    Thanks,
    Gregory

Maybe you are looking for

  • How to find out the image resolution in illustrator?

    How to find out the image resolution in illustrator cs through javascript or vbscript? Thanks, Prabudass

  • PSE 9 only works with old AIR version on Win 7 x64. Adobe please help.

    I'm hoping that Adobe can jump in and help here as there are some real versioning issues with the components that PSE 9 uses.  I've made a number of posts in the Adobe AIR forum (while I was figuring this out) and have exchanged with Adobe resources

  • Regarding F data Type

    Hi Expart ,                I am using a variable of type F (v_min). I don't want the decimals or Exponent .say Example v_min = 4.85. i only need to display 4 not the decimals .if i use exponent 0 and decimals 0 then it become '5' .but i dont want 5 i

  • Flash CS3 Pro

    I just started using flash to import some movies to make my movies smaller by exporting to a flash movie. I'm no pro with video. I"m just doing this as a hobbie when I'm away from work. I just installed Flash CS3 Pro mac and here is the problem I'm e

  • I found someone's Ipod Nano, is there any way to get it back to them?

    As the title says, I found someone's ipod nano, and I was wondering if there was any way to contact them? There was no personal information on the ipod nano, only songs. I noticed that it has a serial number however, so is it possible to track down t