Creating code in AS3 to launch a PDF file?

Hi,
I am interested in creating a page on my website where visitors can download a pdf file. I have never done anything like this.
Can anyone recommen a good tutorial or website tat has info regarding the code necessary to make this work in Flash AS3.
Thanks

there's not enough substance for a tutorial.  if your pdf is sample.pdf, use:
var fRef:FileReference=new FileReference();
fRef.download(new URLRequest("sample.pdf"));

Similar Messages

  • Create an invoice spool automatic for save pdf files

    Hi developers,
    I'm looking for create a report where the user can insert a range of numbers of invoices and the system returns the Pdf files.
    I have find a function where with the spool the system generate a pdf files.
    I have problem with the first part because I must be generate automatically many spool starting by invoices numbers.
    Can you help me with some solution ?
    Thanks in advance
    Domenico

    Hi
    Take the Help of ABAP and use the copy of standard programme RSTXPDF4 and table TSP01, to create a Z-programme where as per your requirement you can convert any report on the basis of Invoice No. to PDF.
    We are using a such programme to convert all our Z-report to convert to PDF on the basis of T-code and then the Input data of that report.
    Hope it will help
    Regards
    AA

  • How do I create a downloadable link from an Interactive PDF file created out of InDesign CS6?

    Hello,
    I created an Interactive PDF file out of InDesign and would like to make the large file a downloadable link and share it with the user in an email. I do not want to use DropBox or GoogleDrive.
    The company I contract for has their own site - do I insert the file into the site or can I create a separate link for it?
    I will be recreating these presentation PDF's constantly, so I would like to know if there is a simple way to create this link for files in the size of 7-12MB.
    Any ideas on downloadable links? I do have flash - but rarely use, perhaps load the file out of flash?
    Thank you so much for your help,
    Megan

    Hi Willie,
    Thanks for your help. Most likely contact the company who maintains the
    site then to share the file with them I'm assuming?

  • How can I create a one-click download for a PDF file?

    I want to have several PDF files on the website ... for downloading. How do I create a one-click download button? for those who don't know about control-right-clicking to download something?
    Does such a possibility exist?
    Ben

    Hi Quicktime Kirk,
    Thank you. And that leads me to another question: I've used the zip function before, with the idea of making a smaller file for transfers; but the PDF I get from Pages doesn't seem to compress any more when supposedly further compressed by .zip. Meaning, same size files.
    Is this supposed to be like this? And, just so I understand, the file needs to be a .zip file for this one-click function to work? Have I got that right? Or will it work just as well with the .pdf file? Given there is no difference in the compression.
    Ben

  • Can I create a new document with a locked PDF file, add new pages, and lock it all again?

    I published a PDF document ten years ago and now want to add Creative Commons licensing language to the copyright page.  But I forgot the password!  I gather from the Forum that there is no way to recover the password.  However, I wonder if I can take the locked PDF file, create a new document (adding a new page for the licensing information), then lock the whole thing up again.  Will this work?  Thanks for your help!                                                                               

    To create an unprotected file you would need the password.

  • Want to add by code a short cut of a pdf file to an rtb in vb6, using adobe reader 9

    Using vb6 code, I add a pdf file from a list to a richtextbox.
    On versions 5 & 6 a "short cut" is placed in the rtb which is what I want so that the document can be double-clicked to view at a later date.
    On versions 8 & 9 the file opens automatically "within" the rtb.
    Can I make version 9 work the same as earlier versions.
    Thanks

    We have PDF documents stored on server-side, the ActiveX control and Adobe Reader are installed on client-side.
    When users open our web page, click our "Print weekly report directly" button, the ActiveX control on client will be called, and perform the above coding. It tries to download the PDF document from server to client, and pass it to the printer on client silently by using FilePrintSilent function.
    The report can be printed, but not correct. It involves some unexpected characters which should be English or Traditional Chinese originally, as shown in the attached picture.
    Thanks in advance!
    William

  • Adobe PDF Pack - Can I create a Table of Contents in combined PDF files I am creating?

    Can I create in Adobe PDF Pack a table of contents for PDF files I am combining? 
    If the answer is YES do I name each of the PDF documents name the name I want the page to be named in the Table of Contents?
    Thank  you.
    Michael

    Hi Michael,
    When you combine files into a single PDF, each file you include will have a bookmark in the Bookmarks panel in Acrobat/Reader. So, I suppose you could treat that as a Table of Contents. (It doesn't, however, create a separate TOC and append it to the file.) The bookmark names reflect the filename of each file you combined.
    I hope that answers your question.
    Best,
    Sara

  • How to create a link to multiple links in pdf file

    how to create a link to multiple links or a button to multiple links in pdf file. this links is goto diferent pages, no web. sorry for my english.

    You can print to PDF from the Print Module .
    Do you have Adobe Acrobat?
    Otherwise install (free) Bullzip Free PDF printer.
    http://www.bullzip.com/

  • How do I create a wPDF webpage for my existing PDF file?

    HI there,
    I'm not sure if I ask the right question at the right place but I have not much knowledge in anything like this.
    Basically I have a WordPress site and I have created a sub domain for it. Now I want to put the PDF file to be seen on the sub domain like this page for example:
    http://web.stanford.edu/dept/SUL/library/dw-training/lessons/webdesign_mx.pdf
    I have chosen this randomly from one of the pages I have tried to find answer - didn't answer my question though...
    Thanks in advance!
    Chris

    Thanks for the input. I think you might have a different version of LiveCycle than the copy I have since it looks a little different. However, I found the answer in Adobe help. I had to type "mailto:" before the email address to indicate it's an email and not a URL. See below.
    To collect form data as attachments to email, type mailto: followed by the email address. For example, mailto:[email protected]

  • C++ code to get XMP metadata from pdf files ??

    Hi,
    I am new to this field and now I have to write a C++ code which will read the XMP metadata from any pdf files. Could anyone please tell me how to do that or where to start? Is there any sample code available for that?
    I am reading the Programmer's guide and XMP specification to have the whole idea.
    I really appriciate your help. Thanks in advance.
    Regards,
    Suranjit Paul

    Hi,
    The same code for reading other formats will go for Pdf too.
    Only difference is while reading PDF it is not calling any smart filters.

  • Problem creating several image maps (linking to different pdf files) RoboHelp 8

    Hi,
    I have a problem creating several image map hotspots (that link to different .pdf files), from the same image using RoboHelp 8 HTML (WebHelp project).
    After compiling, the first image map hotspot created, opens the .pdf file correctly.  Unfortunately, when clicking on the other image hotspots, I get an error " Cannot find file...<file path>... Make sure path or Internet address is correct".
    All the pdf documents are located in the same folder within the project.
    Can anyone help?

    Have you added the target files as baggage?
    See www.grainge.org for RoboHelp and Authoring tips
    @petergrainge

  • Create adobe form in SFP from a pdf file on disc

    Hi all,
    How in transaction SFP can we import an existing pdf file on the disc? I did not see any way to do so but I'm sure it's possible.
    Is it always relevant and saving development time?
    Points awarded for any help
    Thanks
    Yann

    Hi Yann,
    Go to Layout tab in SFP transaction and then Tools --> Import. Here select the PDF you want to upload.
    Hope it helps.
    With Regards,
    Manu

  • Launching a PDF file to print using AIR 1.5/Flash AS2

    I have a flash SWF that I run as a AIR 1.5 desktop app. I want the user to be able to open a pdf file to print it. As it is now, I have flash call their browser to open the local PDF with a open url http://myfile.pdf. This works fine if their browser can open a pdf but one out of 3 of my test users can’t open it via the browser.
    How can I use AIR or their local PDF reader to open the pdf in order to print it?

    The title of your post suggests that you simply want to print the PDF.
    If so, just open it with Preview (the default), and print from there.
    And telling Word that the PDF is a Word file (which it is not), will just get Word confused, which would explain why you are getting error messages.

  • XHTML code for a page break in PDF file exported from WAD

    Hi All
    I'm new to WAD and I have created a web template with several tables and charts
    I'm exporting these to a PDF document but I need to put page breaks in as I want to put a table and a chart on each page
    I'm not sure how to do this and was wondering if adding it to the XHTML code direct would do the trick but as I don't know XHTML code I'm not sure.
    Any help would be appreciated
    thanks in advance
    Sandra

    Hi Cook,
    In my project I had same requirment. But I didn't find any solution for this.
    I tried to implement the same using XHTML and java script aslo. but these are the functionality which we are using for web page formating not the not the formating of external output like PDF and Excel.
    So if you find any solution, then please share with me also.
    Thank You

  • How to create ICon/Cursor from pdf files

         I was able to create ICon from jpg file without problem but I couldn't create ICon from pdf files.
    Here my code:
    var myDoc = app.newDoc();
    myDoc.importIcon("myIcon"); // it worked when I chose a jpeg image, but it didn't
    //when chose a pdf file.
    icon = myDoc.getIcon("myIcon");
    oIcon = util.iconStreamFromIcon(icon);  
    myDoc.closeDoc(true);
    app.addToolButton({
                   cName: "myButtoon",
                   oIcon: oIcon,
                   cExec: "app.alert('Someone pressed me!')",
                   cTooltext: "Push Me!",
                   cEnable: true,     
                   nPos: 4
       //app.removeToolButton("myButtoon");
    My goal is to create buttons which have icons from a pdf file (stamp) and when user click on these buttons, the cursors become the icon . And then, when user click on the document, the iCon will be showed in the document. The point is: is there anyway to create icons/cursors/stamps from one pdf file. Because the stamp is changeable, when user changes the color/shape of the pdf file, the icons/cursors/stamps will automatically change
    What kind of pdf format do I have to use?
    I used the sample "SignHere.pdf" in stamps folder of Acrobat but it didn't work.
    Thanks.

    The SDK has all the information - but certainly there are only samples for those common actions that users have been doing for years.  Most developers don't recreate stuff already present in the application - such as the Stamp plugin - so we don't have samples of such things.
    But all the pieces you need are present in the SDK - it's just necessary obvious.  You will need to learn about the details of how the plugin APIs work to create the toolbars and toolbuttons, and then how to handle cursors.  You will then need to learn about PDF details in order to be able to take an existing PDF, potentially modify it (eg. Change the color(s)) and then place it onto another PDF.  
    The methods you listed are from JavaScript - there are alternative methods for plugins, such as the AVConversion APIs.

Maybe you are looking for