This demo demonstrate the use of the GeoExtPrintForm widget that connects to a MapFishPrint service to send print requests to produce PDF documents. Only visible and supported layers are printable.

Simply click on the left menu labeled "Print" to open the form.

In this demo, the legend option is set, so the PDF also has a legend block included in it. Only WMS layers have their icons included in the legend. The MapFishPrint service configuration file (.yaml) must be accordingly setup with the 'legends' block. Read MapFishPrint 'legends' documentation to know more about this.

See also the config.xml file used by this demo.