Advanced print solution

37005
296
02-19-2011 10:52 AM
TomSchuller
Occasional Contributor III
Please find in the codegallery my first version of an advanced print solution:
http://www.arcgis.com/home/item.html?id=6809086326ea4c76bf026a32bb9dd698

The backend is developed in Java as a ServerObjectExtension: PChPrintSOE

The communication to the SOE is realized by the REST.
So, any client can be used Flex, Javascript, ...
I just created a simple FlexWidget.

Some features:
- full print over the rest api (usable by any client)
- export to pdf,jpeg,png,emf and mxd!
- view paper layout extent live on map
- make print on a "template" mapservice by keeping the predefined layout
- multi-mapservices/multi-server support
- add graphics on the map view positioned in map units
- add elements on the layout view positioned in paper units like scalebar, scaletext


The code is under full development:
- support for wms layer
- code clean up and reorganization

Any suggestions, remarques or help is welcome.

Live demo with public Esri mapservices (last print button):
http://gis.pch.etat.lu/flexViewerPrint/
   - use this print widget with your PChPrintSOE-enabled mapservices for high quality
   - draw first some graphics with the DrawWidget prior making your print (in mxd format)
Tags (2)
0 Kudos
296 Replies
AlexanderBrown1
New Contributor II
Tom,

I downloaded the latest code and it took the error away.  My only issue now is my users can not access the path:
outputFile: http://gis/arcgisoutput/PrintTask_layout_1307476698542_map.pdf


They can view the file but the path needs to be

outputFile: http://gis.wff.nasa.gov/arcgisoutput/PrintTask_layout_1307476698542_map.pdf


Is there any way that I can re-route the final url to reflect the full path?
0 Kudos
TomSchuller
Occasional Contributor III
albroham,
you have to modify your virtual directory of your outputdirectory in ArcGIS server.

Further information can be found here:
http://help.arcgis.com/en/arcgisserver/10.0/help/arcgis_server_dotnet_help/0093/0093000000nv000000.h...

Tom
0 Kudos
AlexanderBrown1
New Contributor II
Tom,

Yep, that did it.  Thanks for your support! Great widget.
0 Kudos
EricVenden
Occasional Contributor II
Tom,
I've downloaded the latest code (5-30-11) and the issue that I previously had is gone (output mxd/pdf would leave off 1 map service).  This is good.  However, I now have a different issue.  I have attached 2 images.  The output PDF legend is not rendering the symbology well at all.  The mxd legend symbology is good, but not the PDF.  I have also tried exporting the MXD to a PDF (from within ArcMap) and get the same (poor) results.

Thanks Tom
Eric V
Gurnee, IL
0 Kudos
TomSchuller
Occasional Contributor III
ericv,
does the legend print correctly out when your are making an export in ArcMAP manually using the generated mxd?
Could you try with other formats (png/jpeg)?

Tom
0 Kudos
EricVenden
Occasional Contributor II
ericv,
does the legend print correctly out when your are making an export in ArcMAP manually using the generated mxd?
Could you try with other formats (png/jpeg)?

Tom


Hi Tom,
The other image I attached in the previous email was the generated pdf output from the mxd generated by the print function.  I will test exporting to image...
Thanks
Eric
0 Kudos
EricVenden
Occasional Contributor II
Tom,
It appears that only the output to pdf has the diminished quality with regards to legend symbology.  I have attached the png output....I've also attached a pdf that was exported from the generated mxd.
Any ideas?
Thanks
Eric
0 Kudos
EricVenden
Occasional Contributor II
Tom,
It appears that only the output to pdf has the diminished quality with regards to legend symbology.  I have attached the png output....I've also attached a pdf that was exported from the generated mxd.
Any ideas?
Thanks
Eric


Tom,
I need to modify my previous post.  Using your print function, I get the same (poor) legend results with the pdf, jpg, or png.  If I use the generated mxd, and then export from within ArcGIS, the jpg & png outputs are fine.  The pdf, however, is still of poor quality.
Thanks
Eric
0 Kudos
TomSchuller
Occasional Contributor III
ericv,
could you post a good and a bad example of a jpg-file and the associated mxd file?
I would like to make some tests on it.

Thanks,
Tom
0 Kudos
EricVenden
Occasional Contributor II
ericv,
could you post a good and a bad example of a jpg-file and the associated mxd file?
I would like to make some tests on it.

Thanks,
Tom


Tom,
The poor output only occurs on the landscape output.  Portrait output is fine.  I will post the files you requested shortly...my pc is having some issues currently.
Thanks
Eric
0 Kudos