Map2PDF PrintMap.js

Discussion created by boroan01 on Jan 24, 2011
Latest reply on Feb 18, 2011 by kleinmann
I am a fairly new JSAPI programmer and I am trying to utilize the Map2PDF service in an application.  However it doesn't seem to be working completely.  I don't think I am calling the PrintMap.js function correctly as nothing is being returned for the layers parameter.  I keep receiving the error: "Invalid input json 'layers': A JSONObject text must begin with '{' at character 1 of   ." 

Any advice?