<div dir="ltr">Hello<br><br>i tried the exemple:  <a href="http://api.geoext.org/1.0/examples/print-extent.html" target="_blank">http://api.geoext.org/1.0/examples/print-extent.html</a>     (i&#39;m using geoserver 2.1.0)<br>

<br>but i got in the pdf just the title but not the map (i joined it).  with the layer  <br><pre>(&quot;Tasmania&quot;, &quot;<a href="http://demo.opengeo.org/geoserver/wms">http://demo.opengeo.org/geoserver/wms</a>&quot;,<br>
            {layers: &quot;topp:tasmania_state_boundaries&quot;}, {singleTile: true})],  <br></pre>it works, but with mine it doesn&#39;t<br><br>this is the code:<br><br>var mapPanel, printProvider;<br><br>Ext.onReady(function() {<br>
    // The printProvider that connects us to the print service<br>
    printProvider = new GeoExt.data.PrintProvider({<br>        method: &quot;GET&quot;, // &quot;POST&quot; recommended for production use<br>        capabilities: printCapabilities, // from the info.json script in the html<br>

        customParams: {<br>            mapTitle: &quot;Printing Demo&quot;,<br>            comment: &quot;This is a map printed from GeoExt.&quot;<br>        }<br>    });<br><br>    var printExtent = new GeoExt.plugins.PrintExtent({<br>

        printProvider: printProvider<br>    });<br><br>    // The map we want to print, with the PrintExtent added as item.<br>    mapPanel = new GeoExt.MapPanel({<br>        renderTo: &quot;content&quot;,<br>        width: 450,<br>

        height: 320,<br>        layers: [new OpenLayers.Layer.WMS(&quot;<div dir="ltr">province&quot;,     &quot;<a href="http://localhost:8080/geoserver/wms" target="_blank">http://localhost:8080/geoserver/wms</a>&quot;,<br>
            {layers: &quot;sf:province&quot;}, {singleTile: true})],<br>
        center: [-7.50,33.5],<br>        zoom: 6,<br>        plugins: [printExtent],<br>        bbar: [{<br>            text: &quot;Create PDF&quot;,<br>            handler: function() {<br>                // the PrintExtent plugin is the mapPanel&#39;s 1st plugin<br>

                mapPanel.plugins[0].print();<br>            }<br>        }]<br>    });<br>    printExtent.addPage();<br>});<br><br><br>thank you</div><br></div>