# Can convert HTML TO PDF from flash/ actionscript?

**URL:** <https://forum.kirupa.com/t/can-convert-html-to-pdf-from-flash-actionscript/264753>\
**Category:** flash\
**Created:** [June 30, 2008, 4:56am UTC](https://forum.kirupa.com/t/can-convert-html-to-pdf-from-flash-actionscript/264753 "2008-06-30T04:56:45Z")\
**Posts on this page:** 1\
**Page:** 1

<div class="post-metadata">

**Author:** ![vennasa](https://avatars.discourse-cdn.com/v4/letter/v/4bbf92/32.png) [@vennasa](https://forum.kirupa.com/u/vennasa)\
**Post date:** [June 30, 2008, 4:56am UTC](https://forum.kirupa.com/t/can-convert-html-to-pdf-from-flash-actionscript/264753/1 "2008-06-30T04:56:45Z")

</div>

Hi all,  
I would like to know about the following case, Can we conver or save the current HTML to PDF by using Flash Actionscript?  
My idea is like this,I have a flash file which embbedded in the web page and in that flash file I have a button which called save\_btn,and if clicked on the button,can I save the current HTML page to PDF?

```auto

And the following are my sample code.
// ________________________ M Y C O D E F O R B U T T O N P R E S S

_root.save_btn.onPress= savePDF;
// _________________________
// ________________________ M Y C O D E F O R B U T T O N P R E S S F U N C T I O N

function savePDF()
{
    txt1.text="clicked to save PDF";
    
        //getURL("java script:window.close();");
       //can I put the code here to convert HTM TO PDF?
}
// _________________________

```

Thanks all, pls kindly help me out and thanks in adavance.
