View Full Version : Print pdf file from Flash?
sineadhartley
05-31-2004, 12:02 PM
Hi there
I have been searching the forums but haven't come across what am lookin for. I want to be able to print a pdf file from my Flash movie. Basically, the pdf files are external and I want to click a button within Flash and the pdf will print. Is this possible??
Any help wouldbe great.
Thanks :rolleyes:
J_Miller
05-31-2004, 09:36 PM
Not sure this is possible via ActionScript (could be wrong), but I know that with a fairly simple server-side script you could do this (i.e. ASP.NET, ColdFusion, etc.). I had to do something similar for a project at work, but it dealt with the printing of Word documents. Anyways, to make a long story short, in researching how to do it, I ran accross alot of information on how to print PDF files from server-side scripts. So with a little research you should be able to find it as well, and then of course calling that server-side script from Flash will be a no-brainer!
Hope any of that helped!
sineadhartley
06-01-2004, 04:37 AM
Cheers J Miller, am using PHP with my Flash movie so will go and research printing usng a PHP script! Thanks for your help!
farafiro
06-02-2004, 06:08 AM
me also don't think this is possible, but if u have MX 2004 why don't u import the PDF file into a flash movie and print it from there
sineadhartley
06-04-2004, 11:17 AM
Yeah i think i will just do that. There just doesn;t seem to be a way to activate the pdf to print from flash. Thanks! I didn't know you could import pdfs into flash. Am learning so much in this forum!!
Jmszc1
11-17-2008, 11:24 PM
all you need to do is create a simple button that takes you to a labled frame called #p where you want to start printing
On(release){ gotoAndPlay("#p")}
then on that frame enter the action frame and enter the following command
getURL("print:", "/");
stop();
farafiro
12-14-2008, 12:06 PM
Thanks Jmszc1, and welcome to the community
but this is a 4 years old post and I think most of the members of this thread (me at least) quit developing flash anymore :D
|
vBulletin® v3.8.4, Copyright ©2000-2009, Jelsoft Enterprises Ltd.