This would have to be done via some server side script that created a pdf file on the fly.
What operating system would the server be? (Windows NT/2000, Linux, etc?) If you were using linux, for example, you'd need the flash program to automatically execute a script which would run a program on the server in the background which generated the image.
I'm not exactly sure how to go about doing this or how it would be done. I just know it seems pretty complicated ...
cscgal
The Queen of DaniWeb
19,432 posts since Feb 2002
Reputation Points: 1,474
Solved Threads: 230
I'm an owner of Adobe Acrobat 5.0, and I swear my life by it. The way we create PDF files with Acrobat 5 is by printing to an Actobat Printer. In theory, you would need to create a little program that captures the screen and prints it to the PDF printer.
Tekmaven
Software Architect
1,274 posts since Feb 2002
Reputation Points: 322
Solved Threads: 28
What you're trying to do I think is impossible, within Flash anyways. If you're trying to automate this process, all from within Flash, and by that I mean, when you press a Flash button, it takes a screen shot and saves it as a PDF in the background. If this is the case, then Flash would need some system access, which it doesn't have for security reasons, and thank God for that. It would suck if I went to a Flash web site, while I had another window open with passwords, and this Flash web site took a screenshot of everything and processed it on the server.
What you're trying to do though, if I follow correctly, can be done with ActiveX. You'd have to code this control yourself. The browser would ask the user if it's safe to download the control. Once this is downloaded by the user, it can take the snapshot, send it back to the server, and you can use another process to convert to PDF. There are SDKs out there to convert images to PDFs on the fly.
samaru
a.k.a inscissor
1,256 posts since Feb 2002
Reputation Points: 262
Solved Threads: 18
rajarajan07
Nearly a Posting Virtuoso
1,447 posts since May 2008
Reputation Points: 167
Solved Threads: 239
it does not work for me .. what did I did wrong?
matricol
Junior Poster in Training
98 posts since Jun 2011
Reputation Points: 2
Solved Threads: 9