How to get layer definition from web map and pass to python to print PDF?

Discussion created by cindylu on May 9, 2014

I am trying to do a print PDF function on a web application using python. I got the sample here ( ). But I could not find anywhere that I can get the layer selection (or layer definition) from webpage and pass this parameter to geoprocessing and get that paramter in python, then export to PDF. Could someone help me with this?

I am using the sample, but when I tried 'edit' exportPDF geoprocessing, I could not edit it. I tried to add an input paramter (for layers definitions) in 'exportPDF' geoprocessing, but I don't know how to do that (I am not so familiar with geoprocesing and python). Can someone tell me how can I get the web map layers defintions in python?

I highly appreciate your help!