Original User: philipp37
with the addition of this import statement:
import com.esri.viewer.ViewerContainer;
and changing this line (line 296):
landPDF.addImage(map,rsLand,2,35,0,0,0,1,false,ImageFormat.PNG,100,Blend.NORMAL,null);
to this:
landPDF.addImage(ViewerContainer.getInstance(),rsLand,2,35,0,0,0,1,false,ImageFormat.PNG,100,Blend.NORMAL,null);
it is possible to print everything that is visible on your map (ie, open widgets, legend, scalebar, navigation control and header). What I would like to do is to remove the header and navigation widgets from the resulting pdf....anyone have any ideas? Also, while I'm on the topic it would also be nice to see a north arrow in there....I guess that could be done now using the StaticImageWidget.....
Thanks!