I've searched a lot and tried many ways to export a web map to PDF. I need to export a web map and all active layers. Can anyone help me?
I think that this is a hot issue for arcGis developers. The need for a map printing and exporting ability is discussed in this forum, where it is announced from the Esri experts that
Thanks all the great feedback and comments. ArcGIS for Server at version 10.1 now includes print tools. The PrintingTool is a geoprocessing service that you can deploy along with templates to achieve high quality web map printing. ArcGIS Web APIs will be able to communicate with this service to achieve printing via the web in a variety of popular formats such as JPG, PNG and PDF. Here are more links for further reading.
Printing in Web Applications http://resources.arcgis.com/en/help/main/10.1/index.html#//0154000004w5000000
Using Your Own Layouts for Printing http://resources.arcgis.com/en/help/main/10.1/index.html#/Using_your_own_lay
For more advanced printing and exporting you could also look at the advanced printing topic.