Solved! Go to Solution.
Thanks for the reply. Does anyone know how to get a geo pdf from the arcgis server from javascript?
Thanks for the reply. Does anyone know how to get a geo pdf from the arcgis server from javascript?
How about using Python in a Geoprocessing task?
I haven't tried this but I wonder if it would work. You could first use:
http://resources.arcgis.com/en/help/main/10.1/index.html#//00s30000006n000000
"Convert Web Map to Map Document"
Then feed that map document into ArcPy's ExportToPDF:
http://resources.arcgis.com/en/help/main/10.1/#/ExportToPDF/00s300000027000000/
which looks like it can create GeoPDFs.
Hi Tammy, did you get this working? I am trying to do the exact same thing, but just starting the process..so trying to sef if it exists first.
Tammy,
This is available just add some extra parameters. Here is how it works
Printparams.extraParameters = { Georef_info: "True" };
Tammy, are you accessing the default Print service that you can create in ArcGIS Server 10.2.2? I have been messing around with creating a custom print service, which I may still need to do to get some additional text on the map. In doing so, I tested the output pdf and realized that is it in fact a geoPDF. this is the case using when using my print service thru ArcGIS Online too (as AGOL administrator, I set my organization to point to our local service).
To test, save the .pdf and open it in Adobe Reader or Acrobat Pro.
On my mobile device (ipad) I was able to open up in the free Avenza app by using the built in "open in" options of both Safari and Chrome.
I also tested this using some of the samples in Print webmap | ArcGIS API for JavaScript In particular I explored this one, "print webmap" using the "explorer in the sandbox" option. I changed 1) the mapid to one of my own (from ArcGIS Online), 2) the extent and special reference (mine is not the standard web mercator). and 3) I again pointed to my local service). I then test this, and it also came out as a geoPDF. My guess is it would do the same with the Print | ArcGIS API for JavaScript sample, but that will take a bit more testing to get my data and service inserted.
I hope this helps.
-b
(p.s,..IF this does answer the question, please make it as such so others can find it.)