These forums are now Read Only. If you have an Acrobat question, ask questions and get help from one of our experts.

printing out of flash using javascript

ezclips
Registered: Feb 10 2009
Posts: 3

Hi all,

I have a pdf which contains several swf. I use the the following script for printing

function PrintOut()
{
getURL("FSCommand:print", null);

and in html

\n');
document.write('on error resume next \n');
document.write('Sub W49777bdd2fed7b24_FSCommand(ByVal command, ByVal args)\n');
document.write(' call W49777bdd2fed7b24_DoFSCommand(command, args)\n');
document.write('end sub\n');
document.write(' \n');
}
//-->

is there a way to implement the html script so that the printing function works out of pdf and then in a Portfolio. I am very new to this (copy and paste) so any help would be appreciated.

My Product Information:
Acrobat Pro Extended 9.0, Windows
thomp
Expert
Registered: Feb 15 2006
Posts: 4411
Please explain your setup in a little more detail. You said you have SWF in a PDF, is this a Rich Media Annotation? But then you show HTML JS code. What does this have to do with the PDF? Was the SWF originally in an HTML page?

First off, forget about HTML code. There's nothing here that's usable in a PDF. Just tell us your sitution and what it is you what to do.

Where is the print button? in the SWF? in the PDF? So you want to Push on a Print button in the PDF and Print the PDF with the current Flash display?

What does a Portfolio have to do with this?

Thom Parker
The source for PDF Scripting Info
[url=http://www.pdfScripting.com]pdfscripting.com[/url]

The Acrobat JavaScript Reference, Use it Early and Often
[url=http://www.adobe.com/devnet/acrobat/javascript.php]http://www.adobe.com/devnet/acrobat/javascript.php[/url]

Thom Parker
The source for PDF Scripting Info
www.pdfscripting.com
Very Important - How to Debug Your Script