Create a PDF from a Flash page

I need some help with a request from a client. I have created a form that a user fills out and the answers they give are added to a email as text. This works great but now the client wants the text answers in a PDF not just as text in an email. My question is, is there a way to create a PDF from the answers on a form from within the Flash program. The answers are saved in variables then added as text to the email.

Here's an again super rudimental example - click on the stage will invoke the "save file as..." dialogue.
package {
    import flash.display.Sprite;
    import flash.events.MouseEvent;
    import flash.net.FileReference;
    import flash.utils.ByteArray;
    import org.alivepdf.fonts.CoreFont;
    import org.alivepdf.fonts.FontFamily;
    import org.alivepdf.fonts.IFont;
    import org.alivepdf.layout.Orientation;
    import org.alivepdf.layout.Size;
    import org.alivepdf.layout.Unit;
    import org.alivepdf.pdf.PDF;
    import org.alivepdf.saving.Download;
    import org.alivepdf.saving.Method;
    public class PDFDemo extends Sprite {
        private var _pdfByteArray:ByteArray;
        public function PDFDemo():void {
            var pdf:PDF = new PDF(Orientation.PORTRAIT, Unit.MM, Size.A4);
            var helvetica:IFont = new CoreFont(FontFamily.HELVETICA);
            pdf.addPage();
            pdf.setFont(helvetica, 24);
            pdf.writeText(24, "Hello World!");
            _pdfByteArray = pdf.save(Method.LOCAL, null, Download.ATTACHMENT);
            stage.addEventListener(MouseEvent.CLICK, click);
        private function click(e:MouseEvent):void {
            new FileReference().save(_pdfByteArray, "hello-world!.pdf");

Similar Messages

  • Why can I not create a PDF from a web page on my Adobe Acrobat 8 Pro on my new Windows 8 computer? It worked fine on my windows XP system?

    Why can I not create a PDF from a web page on my Adobe Acrobat 8 Pro on my new Windows 8 computer? It worked fine on my windows XP system?

    Acrobat 8 is not compatible with Windows 8,  for the simple reason it was
    created much before it and Adobe could not participate the changes to the
    OS that Microsoft implemented many years later on. You need to buy the
    current version for compatibility.

  • Acrobat crashes when creating a PDF from a web page

    Whenever I ask Acrobat to create a PDF from a web page, it crashes halfway through the process.  Here is an example from the BBC:-
    http://www.bbc.co.uk/news/science-environment-19585341
    Printing to PDF from the browser does not produce an accurate document.  The font is too big, and most of the pictures do not appear.
    I use Acrobat X Pro version 10.1.4.
    This is a PC problem.  On the Mac it works.

    The problem I mentioned is peculiar to Acrobat 10 and also to my PC.  On a Mac I can create PDF's from webpages normally.
    I also notice that when printing to PDF from Opera only the first page comes out.  (Using Firefox all pages are printed to PDF.)

  • Using Adobe Pro X I cannot create a PDF from a web page.

    After a recent upgrade from a previous version of Firefox, I am now unable to create a PDF from a web page using the Adobe Pro toolbar on the web page.  A "save as" box appears and then the conversion process dies.  I can print the page using Adobe Pro as my printer and it works fine. I can create other docs with Adobe Pro.   How do I fix this on my browser?
    Thanks.
    WSC

    Browser Troubleshooting
    "Can't view PDF on the web"
    http://helpx.adobe.com/acrobat/kb/cant-view-pdf-web.html
    "Display PDF in browser"
    http://helpx.adobe.com/acrobat/using/display-pdf-browser-acrobat-xi.html
    Be well...

  • Acrobat Pro XI: Creating a PDF from a Web Page

    When I try to create a PDF from a Web page using Acrobat XI, I get the Error Code "Nothing done" and "Authorization Failure", but it doesn't happen on all webistes. Does anyone know what could be causing this and how to fix it? I'm using the trial version of Acrobat Pro XI on a Mac. Same result with either Firefox or Safari.
    Thanks.

    It's likely a HTTPS site or you have an authenticating proxy server where you are required to enter a password to acess the web page. 

  • Create a PDF from a Web Page

    I was on Acrobat pro 6.  Now I am trying out Acrobat X pro ("v10").
    1.  I create a pdf file from a web page.  When I click on a link in the new pdf file, it automatically opens that link in a web browser.  Previously, in v 6.x, it defaults to "Append to the Document".  How can I set Acrobat X Pro to default to "Append to Document" ?
    2.  I find the pdf file created from a web page has no page numbers.  Again, in v6.x, there was page numbers in those files.  How can I get page numbers included in the header/footer?  Is the header/footer configurable?
    3.  In v6.x, when I want to convert a web page (into pdf) that is behind a password -- because it includes links, whereas printing to pdf does not -- I would first get the login page (in pdf).  Then I can type in my password in the pdf file and click on go (right click and select Append) and I would get the next page in pdf.  Now, v10 no longer does that.  I keep getting different errors depending on the web site.  e.g. I was testing on this web site, and get "SyntaxError: invalid XML tag syntax".  Am I missing something or is there a "new" way to get the same result in v10?
    TIA

    Hi paulp14382584,
    It seems that you have removed the Create PDF from webpage tool from the toolbar by mistake. Please don't worry I will help you to get this issue fixed.
    1) Open the Acrobat on your computer.
    2) Right click on the toolbar & select Edit Current Tool Set form the list.
    3) Edit tool set window will pop up on your screen.
    4) Please Click on the 'Create'  option from the list on the left hand side & then select ' PDF from Web-page' from the drop down list.
    5) Then click on the small button ( + & arrow sign towards up ) to add it to the tool bar.
    6) Hit Save to confirm the changes.
    This will add the Create PDF from web-page tool on the tool bar.
    Let me know if you experience any issue.
    Regards,
    Aadesh

  • Creating a pdf from selection of pages from multiple pdfs

    I have a secured collection of pdfs. I would like to create a new pdf from selected pages of this collection.  I think the way I'm doing it now is contorted.  I screen capture a page, create a new pdf from the clipboard and insert the new pdf to the summary pdf.  Is there a better way?  I think I'm hampered by the fact that the pdf collection is secured, so my options are limited.  I would like to select a page from a pdf and cut and paste the page into a new pdf directly without all these steps.  Thanks in advance.

    Forgot to mention, using Acrobat Professional 8.

  • Acrobat 8.0 Creating a pdf from a Webpage--Pages smallish

    I created a pdf of 100+ pages from a webpage. When I print them, a pdf
    page appears about 1/2 the size of the paper. According to Help, one
    should go to Print and see some was to enlarge the printed material.
    I see a picture of a page with 73% below it. There seems no way to
    change the 73%

    When you select to create PDF from Web Page, the window that requests the URL should have a conversion settings button. Select that button and adjust items accordingly. THere are options for the headers and such (includng the URL) as well as a layout with margins and such. This may not be enough variation to meet your need. In that case, try to print to a PDF from your browser and see if that is acceptable. In this latter case, the layout would defined by your browser, not Acrobat.

  • Can't create a PDF from a Web page using acrobat 8.0

    I am using Acrobat 8.0, + Mac 10.5. When, in Acrobat, the dialog box comes up (File>Create PDF from Web) I first enter the URL, then try to click on "Settings" but nothing happens. Then I get an error message. Is this a known problem?

    If the url is for a secured web site Acrobat can not always get the data as it is not logged into the web site. Some web features can not be converted to the PDF format. Is the web address correct? I would use cut and paste since some web addresses can be quite hard to type in.

  • Acrobat crashes whenever attempting to create a PDF from a web page

    Windows 7 SP1
    Acrobat X 10.1.9
    This problem only occurs in Windows.  The Mac version works perfectly.  The crash occurs immediately on executing the command, without any wait while the Web page is processed.

    ...but unfortunately it has resurfaced, despite using Repair to mend Acrobat.  I am out of ideas, except to create PDF's from Web pages using my Mac.
         It worked for two pages, but crashed on the third.

  • When attempting to "print" to Adobe or create a pdf from a web page, the "pring/pdf" result has a bunch of unrecognizable characters on the page rather than letters/numbers

    here is an example
    !@#$$$%#@!@$%^^%

    You could open it in the XPS application and check print preview to see if it comes out as TSN suggests (and likely will). You can go to the printer properties and adjust the page size accordingly.
    You can also use the cropping in Acrobat to size all the pages and then use the Protect>Remove Hidden option to remove the cropped area.

  • When attempting to "print" to Adobe or create a pdf from a web page, the "print/pdf" result has a bunch of characters/jibberish on the page rather than recognizable letters/numbers

    What is causing this?

    You could open it in the XPS application and check print preview to see if it comes out as TSN suggests (and likely will). You can go to the printer properties and adjust the page size accordingly.
    You can also use the cropping in Acrobat to size all the pages and then use the Protect>Remove Hidden option to remove the cropped area.

  • Create a pdf from an arabic wiki page

    hello there!
    I come across a nasty probleme whil trying to create a pdf from a wikipedia page:
    I go to File--> Create PDF --> From web page, then I choose an arabic page (example adobe entry from wiki http://ar.wikipedia.org/wiki/%D8%B4%D8%B1%D9%83%D8%A9_%D8%A3%D8%AF%D9%88%D8%A8%D9%8A )
    the result is a missed up, ther's no arabic text, only latin text appears!
    I have installed arabic/hebrew language support to windows from regional settings.
    hebrew displays good but arabic not.
    I use Acrobat 9 Pro version 9.1.0 on a Windows XP SP3 English.
    from some searches on the net i found that i must buy the adobe CS4 Middel east version, and that will be bad to buy two versions of the same product just for one littel thing such as arabic/hebrew .
    is there any solution other than this hard choise?
    thank you.

    As I said above, non of the adobe cs4 Master Collection supports fully arabic type.
    I need to be able to write arabic in Photoshop, indesign, Illustrator, After Effects, Premiere..
    I taught CS4 will come out with this option of arabic typing included, but I found that you must by another set of Adobe products arabic enables from the Winsoft company.
    a temporary solution is to download the arabic trials found here; http://www.winsoft-international.com/en/downloads/trials/ and use them to make the things that you need in arabic, then  delete them and keep using the English CS4.. this is helpful when you have only to work with one project with arabic type, but, this doesn't work, as the trials wil expire and you have to buy licenes again.

  • Where are files downloaded to on the mac when creating a pdf from web pages?

    where on the mac HD are files downloaded to  when creating a pdf from web pages?
    Im creating web pages from the whole site so creating a large document, so wondered where these fiels are stored on the mac so I can delete when finished as dont want to clog up the hard drive.

    Look at the LiveCycle server products.

  • How do I create a pdf from just one or two pages of an existing pdf?

    I just purchased this product (acrobat online)
    and it is not allowing me to do the things it promised, e.g. saving portions of one pdf to another, combining pages or entire docuements to create, even typing into a document (editing)! I am so frustrated - can someone please help!?

    But I jut paid $89.00 for the adobe pack - if I subscribe to Acrobat Plus, will that be credited?
    Date: Thu, 19 Sep 2013 15:50:14 -0700
    From: [email protected]
    To: [email protected]
    Subject: Files.Acrobat.com How do I create a pdf from just one or two pages of an existing pdf?
        Re: How do I create a pdf from just one or two pages of an existing pdf?
        created by H.Spector in Files.Acrobat.com - View the full discussion
    Hi,
    Thank you for your subscription.  If you are Acrobat Plus subscriber then you can extract the pages from the PDF file using Tools> Pages> Extract pages.
    You can find "Tools" at right top once you open your PDF file in Acroat.
    If you are subscriber to PDF Pack then please download Acrobat XI Plus from www.adobe.com.
    PDF Pack service offers "Convert to PDF", "Export from PDF"(to Word/PowerPoint/Excel/RTF formats so that you can edit the exported files) and "Combine Files" (combine your files into a single PDF file).
    Please let me know if you have any quesitons.
    thank you.
    hisami
         Please note that the Adobe Forums do not accept email attachments. If you want to embed a screen image in your message please visit the thread in the forum to embed the image at http://forums.adobe.com/message/5697921#5697921
         Replies to this message go to everyone subscribed to this thread, not directly to the person who posted the message. To post a reply, either reply to this email or visit the message page: http://forums.adobe.com/message/5697921#5697921
         To unsubscribe from this thread, please visit the message page at http://forums.adobe.com/message/5697921#5697921. In the Actions box on the right, click the Stop Email Notifications link.
         Start a new discussion in Files.Acrobat.com by email or at Adobe Community
      For more information about maintaining your forum email notifications please go to http://forums.adobe.com/message/2936746#2936746.

Maybe you are looking for

  • Voice Memos won't transfer from Iphone

    I have an Iphone 4 and I am trying to transfer some voice memos to my computer from the phone, the problem is none of the voice memos will transfer.  I have consulted user guides and other manuals hoping that I would be able to find the solution but

  • Download box popped up

    While I was online the download box appeared asking if I wanted to download three media files that I never requested to download.  I clicked clear.  I see they are still in my downloads. What should I do and do I have a virus?

  • Tx2500 Problems in Vista

    Recently I've been having problems with my tx2500 notebook. The Touch-Screen stopped accepting input from my fingers but still worked with the pen/stylus. I tried updating the drivers but then it stopped working with the pen too  Its a Vista-64 Bit i

  • Planning App Settings - Shared Services URL grayed out

    I am int he process of doing a clean install of epm 11.1.2.2. I have created a planning app in and the shared services url under application settings is incorrect. The name of the RDB server was picked up instead of the planning server. I need to cha

  • Automated TR creation while release the Process Order

    I have to split the quantity into smaller units based on the 'LE quantity' before TR creation. In transaction LB03, there should be additional line items after the quantity split. I am using the EXIT 'EXIT_SAPLLCPP_001'. It is triggering during the t