Download pdf with button click??

hi again guys,
i have a pdf in my public_html and a button on my site that links to a PDF but when i click the button it opens the PDF in a browser window,
is there a way to  save directly to the desktop?
without opening in a browser window or zipping the file?
thanks Mr A

I believe you'll need to use the FileReference class, and its download method.

Similar Messages

  • Can't Download Images with Right-Click on Mouse

    I can't download images by right-clicking my mouse, like I do on my PC. For example, check out http://en.wikipedia.org/wiki/North_Dakota and look at the images of the flag, state seal and map near the top right corner of the page...
    When I place my cursor over any of these images on either my PC or my MacBook Pro, my cursor changes to a hand, indicating that the images are hyperlinked. If I right-click on an image, I can choose a SAVE AS command on my PC, but nothing happens on my MacBook Pro.
    If I left-click on a linked image, it simply zooms in, rather than taking me to another page. I'm using a small Kensington mouse.
    This could be a Firefox problem. I think I recall downloading some sort of extension that allows you to zoom in on images, and I suspect it's more or less taken over. If so, I'll have to track down the name of the extension and try and zap it.
    But I thought I'd check here first, just to see if other people have this same problem - or if you can suggest alternate strategies for downloading images.
    Thanks.

    Well, I found a novel solution - it's called Safari.
    I'll post on the Firefox forum to figure out why I
    can't download images with it, but it seems to work
    just fine with Apple's native browser. Thanks for all
    the tips.
    I just tried it, but I am using firefox 2.0 beta and I had no problems. Not sure what's going on. Have you tried any other pages or pics besides this one, which I don't think it would matter just wondering.

  • Loading movie clip to stage with button click AS3

    I'm trying to figure out how to load a movie clip to the stage with a button click and have the movieclip close again using a close button. Does anyone have a step by step on how to do this or links to some tutorials.
    Below is an example of what I'm trying to do.

    Alrighty I changed the publish settings to as3. I'm still getting two errors:
    Scene 1
    1046: Type was not found or was not a compile-time constant: Popup1Btn.
    Scene 1, Layer 'as', Frame 1, Line 3
    1061: Call to a possibly undefined method addEventListener through a reference with static type Class.
    So my setup on my main timeline is I have an actionscript layer with this code now:
    var popup1:Popup1
    Popup1Btn.addEventListener(MouseEvent.CLICK,addF);
    ClosePopup1.addEventListener(MouseEvent.CLICK,closeF);
    function addF(e:MouseEvent):void{
    popup1=new Popup1();
    addChild(popup1);
    function closeF(e:MouseEvent):void{
    removeChild(popup1);
    popup1=null;
    On the stage I have a button with the isntance/AS linkage name Popup1Btn. Inside my Popup1 MC I have a box with text and then a button with the instance/linkage name ClosePopup1 to close the popup.
    What am I missing?

  • Changing JPanel with button click.

    Hi, I have a class call TOC(Table of Content) which contains all the buttons. One class call MainController. All buttons I add an actionListener which the MainController class will handle. Anothe class which is the main one which contain a JPanel.
    When I click on the button in TOC class, it will go through the MainController class and display the respective JPanel associate with the button.
    Now the problem is how do I change the JPanel in the main class with a click on the button in TOC class?
    Please advise. Thanks in advance.

    Not sure what you mean exactly. However,
    Assuming that your view class is a JPanel, when you create your controller,
    ViewPanel view = new ViewPanel();
    MainController controller = new MainController(viewPanel);
    In MainController track a reference to your viewPanel. Also in viewPanel have a method called setCurrentPanel(JPanel panel). then int he controller's action listener
    public void actionPerformed(ActionEvent ev) {
    JPanel pnl = (JPanel) panelMap.get(ev.getSource().getName());
    viewPanel.setCurrentPanel(pnl);
    I am assuming you have a way of mapping each button to the panel it will use, which is what is in the panelMap. The viewPanel can have a CardPanel layout for the panels it displays and its setCurrentPanel, can bring to front/oradd the specified panel.
    Good luck, hope this helps :-)

  • I am having trouble with pdf files  continuously get damaged file message when try to open downloaded pdf with adobe reader

    Cannot open downloaded pdf's with adobe reader. Have latest version of adobe program  continuously get damaged file message.  Anybody else having this problem?   Using imac with osx10.7.1 (latest lion)

    I am having the exact same problem. This is very disturbing.
    Lately I have been deluged with adobe update dialogues. I don't know whether this is real or some kind of bugus malware phenomenon.
    Imagine my surprise when I looked here in the forum and I am not alone.
    Kaufmann's remark that we shouldn't be using adobe reader doesn't explain why it is malfunctioning like this. I have been using the reader on Mac  OS for years, and I don't get what's happening now.
    Does anyone realy know what is going on?

  • Downloading PDF with Adobe form spool

    I need to download pdf from the Adobe form Spool number (which have the "TEXT" type).
    1. i tried by converting Spool into binary format using FM: CONVERT_ABAPSPOOLJOB_2_PDF.
    2. By converting spool inti XSTRING using FM FPCOMP_CREATE_PDF_PROM_SPOOL and converting XSTRING into Binary using FM SCMS_XTRING_TO_BINARY.
    But both the ways i got error as "File type not supported or File has been damaged". please suggest
    Thanks
    Edited by: Bhanu Polsani on Oct 20, 2010 12:10 PM

    Try to convert Spool into PDF using following report.
    RSTXPDFT4
    Try to code same in your code to convert to PDF.

  • Make Mulitiple pdfs with one click

    To anyone who can help me.  To give you some background here are the knowns, I am running Adobe Acrobat 9 Pro, I work in an engineering enviroment, I need to print 3 different versions of the same PDF.   So here is the rub, In the organization i work for different personal have different security classifications.  I need to create three different types of PDF's with the following securities.
    Normal PDF with all the securities to view, print and save.
    A "READ ONLY" PDF that you can only view from a monitor and not be able to print or save the pdf.
    A "PRINT ONLY" PDF that can not be saved but can be printed with a watermark warning and a timestamp in the background.
    I have thousands of file to create so if their is anyway to run an API or some form of automated creator that would be great.  Please help.

    Acrobat is not that secure, but within that limitation you can do #3. Doing at the same time might be a challenge. It may be that you could write a batch sequence that would add the desired security and save files to a new name or different folder. You could also add a separate PDF printer instance that would add the security in for the use with that instance. You would still have to print 2 times and then name the files accordingly. You might be able to create some general JavaScript to do the desired operation, but I am just guessing there. Anyway, there are some thoughts, possibly worthless.

  • Email PDF with button

    Hi all,
    I have a form that wroks perfectly in Acrobat but not in Reader.
    The form has a button that when clicked it locks all the fields & opens up a new email window with the PDF attached to it, this is how it works when used in Acrobat.
    The problem its with the user of Reader, when they click the button, the fields are locked but no email is sent and no new email window opens.
    I have Reader extended the form & selected all the options, but still that doesnt help.
    Can you please assist.
    Regards,
    Andile

    Can you send me the form so I can try it here?
    Send it to [email protected] and include a description of your issue in the email please.
    Paul

  • ID CS6 Interactive Pdf with buttons is coming up blank

    Please help. I am making a resume after recently graduating college. I have made the entire resume other than the "portfolio" page. I wanted to make the page show small images of my work, than when you roll over them they expand to show a larger image. I wanted to do this to show my progression with InDesign to potential employers, however, when I save the entire resume as an interactive .pdf the last "portfolio" page shows up blank every time. I have trouble shooted the process dozens of times to the point I want to pull my hair out. I made another new file separate from my resume which shows a white page. I put two pics only and when I previewed the buttons they worked fine, just like on my resume, but when I export the simple two pic document to an interactive .pdf the page comes up blank or black. The furthest I have made it is to have the smaller pics show up and when I hovered over them the pointer turns to a hand but no larger image shows up. I know it is in the exporting process cause I can get the buttons to work perfectly in the preview. WHAT am I doing WRONG??? Thanks.

    Hi there,
    Do you have any screen grabs of what is going wrong?
    From what I can understand, the first page is your standard text resume and then on the second page you have your portfolio.
    But your portfolio is not working. The rollover to expand to show a larger image may be the cause of your issue. I've had tear my hair out moments also with trying to do this.
    You could try to have the button images along the top or side of your second page and then get them to load into a larger frame below or to the side of the buttons. You can do this using Multi State objects. This may get you out of the bind you're in now.
    To get a Multi State object to work in an interactive pdf you need to export the MSO (Multi State object) to swf and then add that swf to your interactive pdf export that and then you should be in business.
    I'm going to knock up a basic mockup of one and put a screen grab in the reply to better explain this.
    I've got the buttons up on top, you click on these to move through the portfolio of images. I've got five you may have more or less.
    Select all the images and add them to the media panel to make a MSO.
    Select each of the buttons and in the buttons panel add an action to go to a state, do this for each of the buttons.
    Export the MSO doc as a swf, create a new doc (same dimensions) add the swf and then export as an interactive pdf (make sure to set a poster image in the media panel otherwise you'll get a weird grey flash symbol in your pdf)
    Open the pdf and test to make sure it's what you want.
    Obviously your portfolio / resume will look a hell of a lot better than this, this is just a proof of concept.
    Here is a link to the files I used as a test.
    WeTransfer
    Hope this all makes sense.
    John.

  • Interactive PDF with Buttons

    Hello,
    I am rather new to the whole world of Indesign CC but have been slowly learning more and more about its features. I have ran into an issue that has been frustrating me for the greater part of today.
    A few weeks ago I created an indesign cc document that took the form of a .pdf case study. I then added clickable buttons to the bottom of the page so that an individual could click the button and go directly to a URL that was linked to the button. It worked perfectly when I exported the file to a .pdf and sent it around the office for draft approval.
    However, today I opened the original file to make a slight revision to the title. Clicked save and then exported it to a pdf as I had done so many times before.
    The buttons have disappeared.
    I have combed the web looking for answers and have not been able to find an answer to the question of: "Where did my buttons go?" I did not change any settings. I did not change anything in the export window. I did everything as I had done previously where the buttons were visible and worked with the rollover.
    I noticed the interactive drop down menu on the exporting window. Two options are available: Do not show - or show appearance (which shows where the buttons are, but they are not interactive, are not clickable, and do not roll over).
    Please help.
    Sincerely yours,
    Mark

    You need to ask InDesign questions in that forum InDesign
    This forum is about the Cloud as a delivery process, not about using individual programs
    If you start at the Forums Index https://forums.adobe.com/welcome
    You will be able to select a forum for the specific Adobe product(s) you use
    Click the "down arrow" symbol on the right (where it says All communities) to open the drop down list and scroll

  • Need to print a pdf on button click

    Hi,
    I need to do something similiar to what the code is doing below, except I need to create a button that when clicked will print a pdf. Not sure if it is better(easier) to add the pdf to my library and print that way or just upload the pdf to the server and print that.
    anyway here is the code I have sofar. Not sure exavtly what I need to change/modify.
    package com.wiley.as3bible.printing {
        import flash.display.Sprite;
        import flash.text.TextField;
        import flash.text.TextFieldAutoSize;
        import flash.net.URLLoader;
        import flash.net.URLRequest;
        import flash.events.Event;
        import flash.printing.PrintJob;
        import flash.display.SimpleButton;
        public class Printing extends Sprite {
            private var _printableContent:Sprite;
            private var _textField:TextField;
            private var _loader:URLLoader;
            public function Printing() {
                //Load the text from a text file
                _loader = new URLLoader();
                _loader.load(new URLRequest("http://www.rightactionscript.com/samplefiles/lorem_ipsum.txt"));
                _loader.addEventListener(Event.COMPLETE, completeHandler);
                //Create a multiline text field that autosizes.
                _textField = new TextField();
                _textField.width = 400;
                _textField.multiline = true;
                _textField.wordWrap = true;
                _textField.autoSize = TextFieldAutoSize.LEFT;
                //Create a sprite container for the text field,
                //and add the text field to it.
                _printableContent = new Sprite();
                addChild(_printableContent);
                _printableContent.addChild(_textField);
            //When the text loads add it to the text field and  then print the text
            private function completeHandler(event:Event):void {
                _textField.text = _loader.data;
                var printJob:PrintJob = new PrintJob();
                if (printJob.start()) {
                    printJob.addPage(_printableContent);
                    printJob.send();
    I know the button code should be something like:
    Printbtn.addEventListener(MouseEvent.CLICK,startPrint);
    thanks in advance for any help.

    I see what you are saying. I think I am going about this the wrong way. Really all I need is to upload the pdf to the server, since it is already created, and then in AS3 create a link that will be clickable and will download the pdf, in which case they can just print the download. I know how to do this in HTML, but not AS. Basically, it needs to be the equivalent of <a href="PathtoPDF_File">Click to download file</a>.
    also I have a message window already coded, and within this message window is where I need to add the link:
    package exam {
        import flash.display.*;
        import flash.events.*;
        import flash.text.*;
        //this class is used to create a "pop-up" window to ask users to confirm they want to exit (after clicking
        //exit exam button), and then to report back on how the submission went, and offer to resend if necessary
        public class MessageWindow extends Sprite {
            //VARIABLES
            private var feedback:TextField;
            private var confirm:YesBtn;
            private var quit:CancelBtn;
            private var resend:ResendBtn;
            public function MessageWindow (type:String, unanswered:Number=0, score:Number=0) {
                var bg:Shape = new Shape();
                bg.graphics.beginFill(0xffffff,1);
                bg.graphics.lineStyle(3,0x6fc9f4);
                bg.graphics.lineTo(400,0);
                bg.graphics.lineTo(400,250);
                bg.graphics.lineTo(0,250);
                bg.graphics.lineTo(0,0);
                bg.graphics.endFill();
                addChild(bg);
                var format:TextFormat = new TextFormat();
                format.font = "Verdana";
                format.size = "22";
                format.bold = false;
                format.color = 0x464646;
                feedback = new TextField();
                feedback.width = 300;
                feedback.x = 50;
                feedback.y = 15;
                feedback.wordWrap = true;
                feedback.autoSize = TextFieldAutoSize.LEFT;
                feedback.mouseEnabled = false;
                if (type == "confirm") {
                    feedback.text = "Are you sure you want to exit the exam?";
                    if (unanswered > 0) {
                        feedback.appendText("  You still have "+unanswered+" unanswered questions.");
                    feedback.setTextFormat(format);
                    addChild(feedback);
                    quit = new CancelBtn();
                    quit.setType("cancel");
                    quit.x = 25;
                    quit.y = this.height - (quit.height + 15);
                    addChild(quit);
                    confirm = new YesBtn();
                    confirm.setType("confirm");
                    confirm.y = quit.y;
                    confirm.x = this.width - (confirm.width + 25);
                    addChild(confirm);
                }else if (type == "success") {
                    feedback.text = "Congrats on finishing the exam!\r\nYour score is "+Math.round(score*100)+"%\r\nYou may now close the exam window.";
                    feedback.setTextFormat(format);
                    addChild(feedback);
                }else {
                    if (type == "databaseError") {
                        feedback.text = "Errors occured while saving your data.  Please retry.";
                    }else if (type == "networkError") {
                        feedback.text = "Could not contact the server.  Please make sure you are connected to the internet and try again.";
                    feedback.setTextFormat(format);
                    addChild(feedback);
                    resend = new ResendBtn();
                    resend.setType("resend");
                    resend.x = 200-(resend.width/2);
                    resend.y = this.height - (resend.height + 15);
                    addChild(resend);
    in the else if(type =="success") part in the feedback.text ="" is where I need the link to go.

  • Submit PDF via Button Click into Email

    event.target.submitForm({cURL:"mailto:[email protected]" + "?subject=" + subjectext + "&body=" + bodytext + "&cc=" + ccemail address ,cSubmitAs:"PDF",cCharset:"utf-8"});
    cURL:"mailto:"
    can also write cURL:"mailto:" + variable   (i.e.= field containing email address)
    "?subject" = not sure what this means. Seems to be some sort of signal the subject is coming next
    subjectext = variable containing text you want for the subject of the email
    "&body" = not sure what this means. Seems to be some sort of signal the body text is coming next.
    subjectext = variable containing text you want for the body of the email i.e. var bodytext = "\n" + "\n" + "Thank you for........"
    "&cc=" not sure what this means. Seems to be some sort of signal the carbon copy email address is coming next.
    ccemail address = variable containing email address you want to send the email to as a cc
    cSubmitAs:"PDF" = option to send as differing formats
    cCharset:"utf-8" = unsure
    From the Book:
    Creating Dynamic Forms with Adobe® LiveCycle® Designer
    For this to work, one of the following must be true:
    Your form fillers must have Acrobat.
    Your form must be Reader extended.
    // put the code in the click event of a regular button var mail; var address = email.rawValue; //email is a text field var sub = subject.rawValue;  mail = "mailto: " + address + "?subject=" + sub; event.target.submitForm({ cURL: mail, bEmpty: true, cSubmitAs: "PDF", cCharset: "utf-8" });
    The submitForm function takes the following four parameters.
    The email address and subject
    A Boolean true to imply that all fields are posted
    The attachment file format (XML, XDP, or PDF)
    The character encoding
    Hope this helps the next person searching for this info.

    Thank you.  I finally got it to work!
    Sarah T. Love
    Grants & Contracts Director
    California Pacific Medical Center Research Institute
    475 Brannan Street, Suite 220
    San Francisco, CA   94107
    415-601-2555 cell phone
    415-600-1702 phone
    415-600-1681 fax
    Website:  http://www.cpmc.org/professionals/research/grants/index.html

  • Interactive PDF with buttons printing blank pages

    Hi
    I am creating interactive pdf's using indesign cs6 on MAC which have buttons that show and hide other buttons when clicked, i have checked printable for all of the buttons as i want the buttons to be visable when printed.
    When i export it everything is fine and all works well and when i print the document from the MAC it prints fine but when i come to print it from the PC it prints blank pages. This is a issue as these documents will be printed from a PC, I have tried different PC's to see if it was mine that wasnt working but the result is the same, printing blanks.
    Is there any way to overcome this problem?
    Best Regards
    Rob

    On the Mac go to File>Export and choose pdf like you normally do.
    With the pdf settings that work make sure you click the "Save Preset" button.
    Exit out of the PDF export dialog box and go to
    File>PDF Presets
    And Define them
    From here select your Preset that you just saved and Save it to the hard drive.
    Load this PDF Preset into the PC settings.

  • Firefox downloads PDF with wrong extension instead of opening a websites' PDF viewer

    I have a problem with websites that want to provide their own PDF viewer. Instead of launching their viewer, Firefox wants to download the PDF. I'd be perfectly fine with that ***if it downloaded with the correct .pdf extension so that Preview would actually open the PDF***. But that's not what happens; I end up with something like "RetrieveDocument.aspx" or "Retrieve.srv".
    I've tried resetting my download options (http://kb.mozillazine.org/File_types_and_download_actions). Didn't help.
    I saw some stuff about other plugins I can install. Here's the thing: *this stuff works fine in Chrome and Safari*. Maybe websites aren't tagging their content correctly or something, but this stuff works fine in two other browsers.

    Hello,
    In order to change the default reader for PDF files (to not open PDF files with Firefox's internal PDF reader), follow these steps:
    #Go to ''Tools'' > ''Options'' (or ''Firefox'' > ''Options'').
    #In the Options window, select the ''Applications'' tab.
    #In the ''Search'' field, type ''PDF''. You should find ''Portable Document Format (PDF)''.
    #On the right handside you should find an ''Action'' column. Use that to select your favorite PDF reader. In order to view PDF files in Firefox, choose ''Preview in Firefox''.
    Did this fix your problems? Please report back to us!
    Thank you.

  • Smartform as PDF On Button Click

    Hello Everyone,
    I need to display a smartform as PDF on click of a button.
    I have done the conversion using CONVERT_OTF. And then,
    CREATE OBJECT cached_response
    EXPORTING add_c_msg = 1.
    *Start display PDF
          cached_response->set_header_field( name  = 'content-type'
                                      value = 'application/pdf' ).
    some Browsers have caching problems when loading PDF format
          cached_response->set_header_field(
                             name  = 'cache-control'
                             value = 'max-age=0' ).
    start PDF viewer either in the Browser or as a separate window
           cached_response->set_header_field(
                               name  = 'content-disposition'
                               value = 'attachment; filename=form.pdf' ).
    finally display PDF format in Browser
          l_pdf_len = xstrlen( l_pdf_xstring ).
         cached_response->set_data( data   = l_pdf_xstring
                              length = l_pdf_len ).
    DATA: OBJ1 TYPE REF TO CL_BSP_NAVIGATION,
                lr_runtime type ref to cl_bsp_runtime.
    CREATE OBJECT OBJ1
      EXPORTING
        RUNTIME = lr_runtime.
    call method OBJ1->RESPONSE_COMPLETE .
    Is this correct, did I miss anything?
    I get a blank screen when I click on the button.
    I know this was asked many times , checked those posts but no help.
    Looking forward to your input.
    Regards,
    Mohit Joshi

    Mohit,
    did you check the smartform itself?
    is it complete executed?
    can you test it via the FM?
    most of the times when the url shows an empty page is that or the SMARTFORM is not executed correctly or the pdf is not opened automatically.
    KR,
    Micha
    have a look at my coding:
         CALL FUNCTION 'SCMS_FTEXT_TO_BINARY'
           EXPORTING
             input_length    = ls_len
             append_to_table = 'X'
           IMPORTING
             output_length   = ls_len
           TABLES
             ftext_tab       = lt_objcont
             binary_tab      = lt_contents
           EXCEPTIONS
             failed          = 1
             OTHERS          = 2.
         lv_file_size = ls_len.
         lv_contenttype = 'text/plain'.                         "#EC NOTEXT
       ELSE.
         lv_file_size = xwa_len.
         lv_contenttype = 'application/pdf'.                    "#EC NOTEXT
         CONCATENATE ls_guid_str '.pdf' INTO lv_filename.
         lv_file_name = lv_filename.
         server->response->append_data(
                             data   = xwa
                             length = xwa_len ).
         CLEAR lt_contents. REFRESH lt_contents.
       ENDIF.
       CONCATENATE 'inline; filename=' lv_filename
         INTO lv_contentdisposition.
       CALL METHOD server->response->set_header_field
         EXPORTING
           name  = 'content-disposition'
           value = lv_contentdisposition.
       CALL METHOD server->response->set_header_field
         EXPORTING
           name  = 'content-type'
           value = lv_contenttype.
       CALL METHOD server->response->set_header_field
         EXPORTING
           name  = 'content-filename'
           value = lv_filename.
      Content Tabelle (Byte Arrays) rausschreiben
       lv_chunksize = 1022.
       LOOP AT lt_contents INTO ls_contents.
         MOVE ls_contents-line TO xwa.
         xwa_len = lv_file_size - ( lv_chunksize * ( sy-tabix - 1 ) ).
         IF xwa_len >= lv_chunksize.
           xwa_len = lv_chunksize.
         ENDIF.
         server->response->append_data( data   = xwa
                             length = xwa_len ).
       ENDLOOP.
      Response beenden
       server->response->delete_header_field(
                 name = 'Cache-Control' ).                      "#EC NOTEXT
       server->response->delete_header_field(
                 name = 'Expires' ).                            "#EC NOTEXT
    Edited by: Micha Van Nijen on May 3, 2011 12:39 PM

Maybe you are looking for

  • Problem with iTunes 11.1.4.62

    After having installed iTunes 11.1.4.62, system (Windows 8.1), iTunes fails to start, asking to download again. Did it twice, but nothing working

  • IPhoto can't import RAW Images (HELP!!!)

    Since I updated My mac to the new Yosemite software, I can't seem to import any RAW images. It hangs and out of 100 images that im trying to import , only 2 are imported ( for half an hour ) and they are distorted I 've reinstalled it and still the s

  • 8mm cassettes out the wazoo!!

    I have about 26 8mm cassettes ranging from the years of 1993-2002, I am trying to figure out the best way to get them digitized and saved, I also have 2 mini dv tapes which went pretty good importing into imovie and saved well, so I am happy with tho

  • Webi -sup table  report

    hey all i have question about make 2 dimension in column like this picture but when i break header and insert new dimension  i have this anyone can help me

  • Jrun 4 and II7

    Does Jrun 4 work with IIS 7? - Alex