Urgent advice - how to output to PDF?

hi,

i was tasked to work on this, and would like your advice on how to do it the most effective way.

We’re developing a web based postcard / name card site.

Customers go in, use some templates to choose background / fonts etc.

They can then output to a page to print out on their own printers at home/office.

BUT at the same time, this outpage page, has to print to a high res PDF file fit to be sent for offset / digital printing at a commercial printer. This would be routed to them via email.

How can this be done? Flash? Director? Shockwave?

thanks.