Opening an HTML file stored locally

Hello fellows,
Is it possible to open a locally stored HTML file using  Acro javascript?
If, yes, how to make Acrobat/Reader open the HTML file only once, when the rights-enabled PDF is opened for the 1st time?
Thank you for your responses in advance!

Reader cannot open HTML files even manually. You can use JavaScript in Acrobat to convert an HTML file to PDF, but only from a privileged context: http://livedocs.adobe.com/acrobat_sdk/11/Acrobat11_HTMLHelp/JS_API_AcroJS.89.164.html

Similar Messages

  • Want to open a new browser window and display the html file in locale disk.

    Hi,
    I want to open a new browser window and display the html file in local drive. The below html applet work in local system successfully. But i deploy the same in web server (Tomcat) and try the same in client machine it does not work. Please help.
    Note:
    The class below fileopen.FileOpen.class i make it as a jar and put it in jre\ext folder at the client machine.
    ------------------------------------FileOpen.html(Tomcat)-----------------------------------------------------
    <html>
    <body >
    <applet code="OpenFile.class" archive="loadfile.jar" width="100" height="100">
    <param name="path" value="file://c:/open.html" />
    </applet>
    </body>
    </html>
    -------------OpenFile.java in server(Tomcat)--------------------------------------------
    public class OpenFile extends Applet implements ActionListener{
    String path = "";
    fileopen.FileOpen open = null;
    Button b = null;
    public void init(){
    path = getParameter("path");
    b = new Button("Open");
    b.addActionListener(this);
    add(b);
    public void actionPerformed(ActionEvent ae){
    try
    open = new fileopen.FileOpen(this,path);
    catch (Exception e){
    e.printStackTrace();
    -------------------------------------------FileOpen.java /Client JRE/ext----------------------------------------------------
    package fileopen;
    public class FileOpen
    AppletContext context = null;
    URL url = null;
    public FileOpen(Applet applet,String path)
    try
    if(null != applet){
    context = applet.getAppletContext();
    if (null != path)
    url = new URL(path);
    context.showDocument(url, "_blank");
    }catch(Exception ex)
    ex.printStackTrace();
    Please help to solve this issue very urgent.
    Thanks in advance.
    By,
    Saravanan.K.

    zzsara wrote:
    I want to open a new browser window and display the html file in local drive. ...Did you ever pause to consider how ridiculous that is?
    The best audience for applets is people off the internet. 'People off the internet' might be using a computer that has no (what was it?) 'open.html' in the root of the C: drive. In fact (shock horror) they may not even be running Windows, and would therefore probably have no 'C:' drive at all.
    If you do not intend to distribute this to people off the web, an application makes a lot more sense, but even then, you cannot rely on the document being there unless you 'put it there' (during installation, for instance).
    As the other poster intimated, applets can load documents off the local disk as long as they are trusted. Here is an example*, but note that it is not so rash as to presume any particular path or file, and instead leaves it to the user to choose the document to display.
    * The short code can be seen at SDNShare on the [Defensive Loading of Trusted Applets|http://sdnshare.sun.com/view.jsp?id=2315] post.
    On the other hand, a sandboxed applet can load any document coming from its own server via URL, or get showDocument(URL) to work. In that case, the JRE must recognize that the URL is from its own server, so the best way to form URLs for applet use is via the URL constructor
    new URL(getDocumentBase(), "path/to/open.html");That is how I form the URL in this [ sandboxed example of formatting source|http://pscode.org/fmt/sbx.html?url=/jh%2FHelpSetter.java&col=2&fnt=2&tab=2&ln=0]. Of course, in this case the applet loads the document, then parses the text to draw the formatted version, but the point is that an URL produced this way will work with showDocument(URL).
    I am pretty sure showDocument() in an applet off the internet will work with an URL pointing to a foreign (not its own) server, but it will not be able to load documents off the end user's local disks.
    I suggest a couple of things.
    - Try to express this problem in terms of what feature it is that you want to offer the end user. Your question jumps directly to a bad strategy for achieving ..who knows what? An example of a feature is "Shows the applet 'help' files on pressing F1".
    - A good way to indicate interest in a solution is to offer [Duke stars|http://wikis.sun.com/display/SunForums/Duke+Stars+Program+Overview] to match that interest.
    Edit 1:
    ..and please figure out how to use the CODE tags.
    Edited by: AndrewThompson64 on Sep 12, 2008 11:14 PM

  • Can't open HTML files from local or remote location

    Hello Experts,
    I've tried deleting my remote location, and adding it back
    again several times and I still can't open any HTML files. I can
    check out the pages, and check them back in, but nothing shows up
    on the screen. Does anyone know what may be causing this? I'd
    really like to update my website soon. If I click on the web images
    they open up in my photoshop, it's just the Dreamweaver HTML
    portions that won't open up.
    Thank you,
    Calie

    > Unfortunately I can't seem to get any of the pages open
    to check out the code
    > view.
    CLARIFY please.
    You said you open them, but design view is blank.
    The file is either open or not open
    Is the file open? And design view is blank? Or is the file
    NOT open and
    there are error messages?
    If the is open, even if empty design view There should be
    something in code
    view.
    some not random attempts at fixing this:
    open dreamweaver.
    Open this site.
    DON'T open any files.
    open find and replace
    Find in Source Code, sitewide:
    <!-- -->
    replace with: [nothing]
    reason: not much of one, but I've never seen an empty html
    comment. It
    doesn't need to be there.
    Then, i'm trying to think of a way to fix this badly nested
    bold tag
    <p><b>
    <a href="about-me.html">ABOUT ME</a> |
    <a href="contact.html">CONTACT</a> |
    <a
    href="
    http://blog.loveBaRKLee.com/">BLOG</a>
    </p></b>
    the closing </b> needs to be moved to before the
    closing paragraph tag.
    My next guess is that it's a css problem-
    http://jigsaw.w3.org/css-validator/validator?uri=http%3A%2F%2Fwww.lovebarkle
    e.com%2Fdog-bed-accents.html&profile=css21&usermedium=all&warning=1&lang=en
    moz-radius
    http://validator.w3.org/check?uri=http%3A%2F%2Fwww.lovebarklee.com&charset=%
    28detect+automatically%29&doctype=Inline&group=0
    Fix the errors, clarify if the file does or doesn't open in
    dreamweaver, if
    it opens and design view is blank or if it doesn't open and
    crashes the app.
    moosepucky.
    Alan
    Adobe Community Expert, dreamweaver
    http://www.adobe.com/communities/experts/

  • Open an HTML file from a SAP Report

    Hi all!
    I would like to open an HTML file, that`s in a local directory of my PC, from a SAP Report.
    It is an alv list, where I have added a pushbotton. And I would like to code the utility of open a local html file, when someone push it.
    Anybody knows if it is possible?
    Thx

    Here is some sample code.
    report zrich_0002.
    call method cl_gui_frontend_services=>execute
      EXPORTING
        DOCUMENT               = 'C:test.html'
    *    APPLICATION            =
    *    PARAMETER              =
    *    DEFAULT_DIRECTORY      =
    *    MAXIMIZED              =
    *    MINIMIZED              =
    *    SYNCHRONOUS            =
    *  EXCEPTIONS
    *    CNTL_ERROR             = 1
    *    ERROR_NO_GUI           = 2
    *    BAD_PARAMETER          = 3
    *    FILE_NOT_FOUND         = 4
    *    PATH_NOT_FOUND         = 5
    *    FILE_EXTENSION_UNKNOWN = 6
    *    ERROR_EXECUTE_FAILED   = 7
    *    others                 = 8
    if sy-subrc <> 0.
    * MESSAGE ID SY-MSGID TYPE SY-MSGTY NUMBER SY-MSGNO
    *            WITH SY-MSGV1 SY-MSGV2 SY-MSGV3 SY-MSGV4.
    endif.
    Please remember to award points accordingly and mark this post as solved when you problem is solved.  Thanks.
    Also, Welcome to SDN!!
    Regards,
    Rich Heilman

  • Opening a HTML file using platformRequest

    Hi all,
    I am able to open a URL using the platformRequest() method.
    However, is it possible to open a HTML file which is stored in the file system? I tried the code given below, but it didn't work.
    platformRequest("file:///root1/Temp.html");Is this possible?
    Thanks,
    Venkat

    Hey Venkat,
    From what I understand, this HTML file is not inside your JAR -it is in the file system of the phone. In MIDP 2.0, for accessing the file system of the mobile, there are optional APIs that a MIDP device needs to support. This code will not work for MIDP 2.0

  • How to play a video file stored locally in the system

    hi
    how to play a video file stored locally
    thanks
    mraj

    Hi,
    You can't do that in a simple way. You need to have a port open in the firewall, and you need to have a server process on the remote machine.
    Kaj

  • Open an html file inside spry collapsible panel

    Greetings,
    Using CS5
    Does anyone know the CSS code/possibility of opening an html file inside the Spry panel?
    I've tried the following code:
    .CollapsiblePanelContent {
        background-image: url(lookoutgraph.html);
    Is there a better CSS element for calling up an html file?
    For what it's worth...the html file I'm tring to open uses a <canvas> tag. When opened by itself, the html file has no problem opening and displaying the canvas data.
    Much Thanks!

    With the exeption of images, to add external content to a document you will need to make use of either serverside or clientside code.
    Have a look at the SpryHTMLPanel here http://labs.adobe.com/technologies/spry/samples/htmlpanel/html_panel_sample.html
    Otherwise, please supply a link to your site so that we can come up with alternatives.
    Gramps

  • Open my html file and cannot edit it

    When I open my html file from Flash, in view design all I get is a grey box with the Flash symbol in the middle and no html tools.
    I want to link some of my buttons but if I go into view live I get html tools but I still can't access them to make links.
    How do I get my html page so that I can make my links?
    Forrest

    Your next button can still do that.  But it has to be programmed within Flash.  Flash files are not natively handled by Dreamweaver.  You have to export them in order to place them on a website within Dreamweaver.
    The only way that Dreamweaver can do this for you is if you create a button in Dreamweaver which does this action for you outside of the Flash area.  Then this button can link to another page or Flash file.  But if the button resides within the Flash file then it must be edited with Flash.

  • Help Needed in opening a HTML File from swing application

    Hi,
    I am opening a HTML file in Internet Explorer from my swing application.
    I am using the code given below
    private final static String WIN_FLAG = "url.dll,FileProtocolHandler";
    private final static String WIN_PATH = "rundll32";
    String cmd = WIN_PATH + " " + WIN_FLAG + " " + url;
    // url is HTML file Path
    Process p = Runtime.getRuntime().exec( cmd );
    The HTML file is opening up,but it always opens behind the swing application,that makes me every time to maximize the HTML file after it being opened up.
    I want to open it in front of the Swing Application.
    Any Help Please ?
    - Manikandan

    Check your Application's JFrame properties (may be ur Frame is set to be in top position ,always),and also check running your application in some other OS.

  • How do I Open an HTML file for iOS?

    How do I open an HTML file for iOS using acrobat?

    This is a forum for Adobe Reader for iOS. Acrobat doesn't run on iOS. You need to run it on a Mac or Windows computer. In Acrobat, you can choose File > Create > PDF from Web Page to do what you want. You cannot do that in iOS.

  • How do I open a PDF file stored on the iCloud drive with my iPad?

    How do I open a PDF file stored on the iCloud drive with my iPad?

    This document explains how:
                     Opening PDF Files in Reader for iOS (iPhone and iPad)

  • Need help displaying HTML files stored in content repository

    I have a very simple HTML file stored in a binary attribute (so the file could
    be uploaded through the Admin Portal) named "html" in the BEA Repository (8.1sp2)
    and would like to display it in a JSP. Here's a snippet from that JSP:
    <cm:getNode path="<%=myNodePath%>" id="myNode"/>
    <cm:getProperty node="<%=myNode%>" name="html" conversionType="html"/>
    I expected the getProperty tag to fetch the HTML file and render it inline, but
    I guess that's wishful thinking. Am I missing something?
    Thanks for any help!

    I added transactionTimeout="30" to the tag shown below. That did the trick, as
    long as I avoided certain combinations of tag attributes. Guess this one's a little
    moody.
    Thanks, Greg.
    Gregory Smith <[email protected]> wrote:
    Try setting the transactionTimeout to something greater than 0 on the
    <cm:getProperty> tag.
    Greg
    Marc N wrote:
    I have a very simple HTML file stored in a binary attribute (so thefile could
    be uploaded through the Admin Portal) named "html" in the BEA Repository(8.1sp2)
    and would like to display it in a JSP. Here's a snippet from that JSP:
    <cm:getNode path="<%=myNodePath%>" id="myNode"/>
    <cm:getProperty node="<%=myNode%>" name="html" conversionType="html"/>
    I expected the getProperty tag to fetch the HTML file and render itinline, but
    I guess that's wishful thinking. Am I missing something?
    Thanks for any help!

  • How do I reinstall iWeb 3.0.3?  I inadvertently opened an html file of my website and tried to open it with iWeb '09. I get a message saying "Can't open file" etc., etc. I've tried reinstalling the updated version. Iweb will not open.

    How do I reinstall iWeb 3.0.3?  I inadvertently opened an html file of my website and tried to open it with iWeb '09. I get a message saying “Can’t open file” etc., etc. I’ve tried reinstalling the updated version. Iweb will not open.

    Delete the iWeb preference file, com.apple.iWeb.plist, that resides in your Home/Library/Preferences folder. Then launch iWeb and see if it opens. 
    What happened was trying to open the html file reset the file path that iWeb saves in its preference file to tell it where to go when you launch iWeb.  Deleting the pref file and launching iWeb creates a new file and iWeb looks in your Users/Home/Library/Application Support/iWeb folder for the Domain.sites2 file it uses to create your site.
    OT

  • When i open any .HTML file from my computer it is not opening in firefox. Only a blank New Window Opens. Facing this problem since the firefox has updated.

    Whenever i try to open any HTML file from my computer, it opens a new firefox window which is blank. Facing this problem after the new update. please fix this problem

    I found that after Firefox v29, a LOT of my settings and<BR>
    add-ons were changed / reset. Try this;
    '''''[https://support.mozilla.org/en-US/kb/troubleshoot-firefox-issues-using-safe-mode Start Firefox in Safe Mode]'''''
    <BR>While you are in safe mode;<BR>
    '''''Firefox Options > Advanced > General'''''.<BR>
    Look for and turn off '''Use Hardware Acceleration'''.<BR>
    Then check ALL of your settings. Browser and add-ons. Then restart.

  • Recently opening an HTML file on my computer makes firefox attempt a search for the entire file name in the search engine online, how to do i correct that?

    when opening an HTML file recently my Firefox automatically opens up a yahoo search screen and the file, the entire file name and route for the file is searched for online. I don't even use Yahoo Search i use Google but that doesn't mater have to open the file manually with searching it on on the open screen to read it because it's trying to search for it online instead of reading it from where i clicked on it.
    I.E.
    file:///F:/Reading/II.html
    would try to search
    https://us.search.yahoo.com/yhs/search?hspart=aztec&hsimp=yhs-default&type=derr_100_476&p=file%3A%2F%2F%2FF%3A%2FReading%2Fhtml&rnd=737753354&param1=sid%3D476%3Aaid%3D100%3Aver%3D15005%3Atm%3D264%3Asrc%3Dderr%3Alng%3Den%3Aitype%3Da%3Auip%3D1124173343
    I have no idea what the
    &rnd=737753354&param1=sid%3D476%3Aaid%3D100%3Aver%3D15005%3Atm%3D264%3Asrc%3Dderr%3Alng%3Den%3Aitype%3Da%3Auip%3D1124173343
    is for but it's never done this before.

    Please read this article about restoring bookmarks:
    http://kb.mozillazine.org/Lost_bookmarks
    As far as your passwords are concerned, I don't think there's anything you can do. But for the future, you can use the following add-ons to avoid any future loss:
    https://addons.mozilla.org/en-US/firefox/addon/2848/
    or
    http://www.xmarks.com/
    Both are good.
    And a simple way to import your bookmarks (since you already saved it on your desktop as html) is:
    Bookmarks / Organized Bookmarks / Import and Export
    Good luck.

Maybe you are looking for

  • General Warning Message while creating po

    Hi Gurus, Good Morning. I want to pop-up a warning message while creating all types of PO saying that "Contact Person & Email ID text should be filled " This message should be applicable to all PO . How to create a message and assign in PO ? Thanks &

  • SOAP Fault

    Gurus, Can someone post and example on how and when to generate a SOAP fault ? I can potentially handle errors by plugging in error messages in the response message. When would once generate a soapfault instead of a response message ? has anyone on t

  • System preferences icon bug?

    Hey, Look at this: http://tagus.ist.utl.pt/~pedro.nogueira/hum.jpg You'll surely notice two icons that are wrong! Those on/off switches in place of the Software Update and Startup Disk icons... I made a clean install a few days ago... and I dont thin

  • Using Kuler + swatch exchange files in Dreamweaver CS3

    What is the "best practice" for taking a swatch exchange file from Kuler and getting either the swatches into Dreamweaver CS3 or the html color values. I like using Kuler to develop test color schemes for my web sites and switching css sheets to dete

  • Dates at header level

    Dear experts Is it possible within WebIC to display dates at header level for a service transaction (such as Service ticket)? Currently the SLADates view only show dates at item level. Thanks a lot Stephanie