<html><body bgcolor="#FFFFFF"><div>Hi Robert, </div><div>This may not be entirely helpful however I don&#39;t think that mapfish supports printing from a tile cache. The way it works normally is that it sends the request straight to the wms server which can obviously respond to the size it requires. </div>
<div>The reason you are getting that tile size is because that&#39;s the size of the window you are trying to print (I presume). </div><div>As a test, if you were to point your layer_topo straight to the wms does printing work? <br>
<br></div><div>Toby<br><br></div><div><br>On 24 Nov 2011, at 06:53, Robert Buckley &lt;<a href="mailto:robertdbuckley@yahoo.com">robertdbuckley@yahoo.com</a>&gt; wrote:<br><br></div><div></div><blockquote type="cite"><div>
<div style="color:#000; background-color:#fff; font-family:arial, helvetica, sans-serif;font-size:10pt"><div><div><font class="Apple-style-span" face="arial, helvetica, sans-serif" size="2"><div><br></div><div>Hi,</div><div>
Problem: I canīt print any tiles coming from geowebcache!</div><div>gridset: 900913</div><div>System: Linux Ubuntu 10.04 / tomcat6 / Geoserver 2.1.2 </div><div><br></div><div><span><b><u>Javscript</u></b></span></div><div>
<span><b><u><br></u></b></span></div><div><span><span>// map</span></span></div><div><div>var map = new OpenLayers.Map(&quot;map&quot;, {</div><div>        id: &#39;map&#39;,</div><div>        projection: new OpenLayers.Projection(&quot;EPSG:900913&quot;),</div>
<div>        displayProjection: new OpenLayers.Projection(&quot;EPSG:4326&quot;),</div><div>        units: &quot;m&quot;,</div><div>        maxResolution: 156543.0339,</div><div> 
       maxExtent: new OpenLayers.Bounds(-20037508, -20037508, 20037508, 20037508.34),</div><div>        numZoomLevels: 17,</div><div>        controls: [new OpenLayers.Control.MouseDefaults(), new OpenLayers.Control.PanZoomBar(), new OpenLayers.Control.MousePosition(), new OpenLayers.Control.ScaleLine({</div>
<div>            geodesic: true</div><div>        })]</div><div>    });</div></div><div><br></div><div>// layer GWC</div><div><div>var layer_topo = new OpenLayers.Layer.WMS(&quot;Topographischekarte&quot;, &quot;<a href="http://maps.zgb.de/geoserver/gwc/service/wms/">http://maps.zgb.de/geoserver/gwc/service/wms/</a>&quot;, {</div>
<div>        layers: &#39;zgb:tk50&#39;,</div><div>        projection: &quot;EPSG:900913&quot;,</div><div>        format: &#39;image/png&#39;,</div><div>        transparent: true,</div><div>        singleTile:
 false</div><div>    }, {</div><div>        &#39;buffer&#39;: 0,</div><div>        &#39;opacity&#39;: 1,</div><div>        &#39;isBaseLayer&#39;: true,</div><div>        visibility: true</div><div>    });</div></div><div>
<br></div><div><u><b>Geoserver log</b></u></div><div><u><b><br></b></u></div><div>2011-11-24 07:39:54,199 ERROR [geowebcache.GeoWebCacheDispatcher] - The requested tile dimensions 625x458 do not match those of the grid set (256x256) <a href="http://maps.zgb.de/geoserver/gwc/service/wms"><a href="http://maps.zgb.de/geoserver/gwc/service/wms">http://maps.zgb.de/geoserver/gwc/service/wms</a></a></div>
<div>2011-11-24 07:39:54,200 WARN [print.PDFUtils] - Server returned an error for
 <a href="http://maps.zgb.de/geoserver/gwc/service/wms?BBOX=1176787.0%2C6892762.5%2C1181754.1%2C6899536.0&amp;HEIGHT=625&amp;WIDTH=458&amp;map_resolution=75&amp;SERVICE=WMS&amp;REQUEST=GetMap&amp;STYLES=&amp;TILESIZE=%7B%22w%22%3A256%2C%22h%22%3A256%7D&amp;TRANSPARENT=true&amp;VERSION=1.1.1&amp;FORMAT=image%2Fpng&amp;PROJECTION=EPSG%3A900913&amp;format_options=dpi%3A75&amp;LAYERS=zgb%3Atk50&amp;SINGLETILE=false&amp;SRS=EPSG%3A900913:">http://maps.zgb.de/geoserver/gwc/service/wms?BBOX=1176787.0%2C6892762.5%2C1181754.1%2C6899536.0&amp;HEIGHT=625&amp;WIDTH=458&amp;map_resolution=75&amp;SERVICE=WMS&amp;REQUEST=GetMap&amp;STYLES=&amp;TILESIZE=%7B%22w%22%3A256%2C%22h%22%3A256%7D&amp;TRANSPARENT=true&amp;VERSION=1.1.1&amp;FORMAT=image%2Fpng&amp;PROJECTION=EPSG%3A900913&amp;format_options=dpi%3A75&amp;LAYERS=zgb%3Atk50&amp;SINGLETILE=false&amp;SRS=EPSG%3A900913:</a> Error (status=400) while reading the image from <a href="http://maps.zgb.de/geoserver/gwc/service/wms?BBOX=1176787.0%2C6892762.5%2C1181754.1%2C6899536.0&amp;HEIGHT=625&amp;WIDTH=458&amp;map_resolution=75&amp;SERVICE=WMS&amp;REQUEST=GetMap&amp;STYLES=&amp;TILESIZE=%7B%22w%22%3A256%2C%22h%22%3A256%7D&amp;TRANSPARENT=true&amp;VERSION=1.1.1&amp;FORMAT=image%2Fpng&amp;PROJECTION=EPSG%3A900913&amp;format_options=dpi%3A75&amp;LAYERS=zgb%3Atk50&amp;SINGLETILE=false&amp;SRS=EPSG%3A900913:">http://maps.zgb.de/geoserver/gwc/service/wms?BBOX=1176787.0%2C6892762.5%2C1181754.1%2C6899536.0&amp;HEIGHT=625&amp;WIDTH=458&amp;map_resolution=75&amp;SERVICE=WMS&amp;REQUEST=GetMap&amp;STYLES=&amp;TILESIZE=%7B%22w%22%3A256%2C%22h%22%3A256%7D&amp;TRANSPARENT=true&amp;VERSION=1.1.1&amp;FORMAT=image%2Fpng&amp;PROJECTION=EPSG%3A900913&amp;format_options=dpi%3A75&amp;LAYERS=zgb%3Atk50&amp;SINGLETILE=false&amp;SRS=EPSG%3A900913:</a> Bad Request</div>
</font></div><div><font class="Apple-style-span" face="arial, helvetica, sans-serif" size="2"><br></font></div><div><font class="Apple-style-span" face="arial, helvetica, sans-serif" size="2"><u><b>pdf error attatchment</b></u></font></div>
<div><font class="Apple-style-span" face="arial, helvetica, sans-serif" size="2"><u><b><br></b></u></font></div><div><font class="Apple-style-span" face="arial, helvetica, sans-serif" size="2">java.io.IOException: Error (status=400) while reading the image from <a href="http://maps.zgb.de/geoserver/gwc/service/wms?BBOX=1091694.4%2C6741760.5%2C1250642.0%2C6958507.0"><a href="http://maps.zgb.de/geoserver/gwc/service/wms?BBOX=1091694.4%2C6741760.5%2C1250642.0%2C6958507.0">http://maps.zgb.de/geoserver/gwc/service/wms?BBOX=1091694.4%2C6741760.5%2C1250642.0%2C6958507.0</a></a></font></div>
<div><font class="Apple-style-span" face="arial, helvetica, sans-serif" size="2"><br></font></div><div><font class="Apple-style-span" face="arial, helvetica, sans-serif" size="2">&amp;</font><span class="Apple-style-span" style="font-family: arial, helvetica, sans-serif; font-size: small; ">HEIGHT=625&amp;WIDTH=458</span></div>
<div><font class="Apple-style-span" face="arial,
 helvetica, sans-serif" size="2">&amp;map_resolution=75&amp;SERVICE=WMS&amp;REQUEST=GetMap</font></div><div><font class="Apple-style-span" face="arial, helvetica, sans-serif" size="2">&amp;STYLES=&amp;TILESIZE=%7B%22w%22%3A256%2C%22h%22%3A256%7D&amp;TRANSPARENT=true</font></div>
<div><font class="Apple-style-span" face="arial, helvetica, sans-serif" size="2">&amp;VERSION=1.1.1&amp;FORMAT=image%2Fpng&amp;PROJECTION=EPSG%3A900913&amp;format_options=dp</font></div><div><font class="Apple-style-span" face="arial, helvetica, sans-serif" size="2">i%3A75&amp;LAYERS=zgb%3Atk50&amp;SINGLETILE=false&amp;SRS=EPSG%3A900913: Bad Request<br>
</font></div><div style="font-family: arial, helvetica, sans-serif; font-size: 10pt; "><br></div><div style="font-family: arial, helvetica, sans-serif; font-size: 10pt; "><br></div><div style="font-family: arial, helvetica, sans-serif; font-size: 10pt; ">
<br></div><div style="font-family: arial, helvetica, sans-serif; font-size:
 10pt; "><div style="font-size: 13px; ">Can anyone tell me why the mapfish print is requesting tile dimensions  of 625x458?</div><div style="font-size: 13px; "><br></div><div style="font-size: 13px; "><br></div><div style="font-size: 13px; ">
<br></div><div style="font-size: 13px; ">Yours with thanks,</div><div style="font-size: 13px; "><br></div><div style="font-size: 13px; ">Rob</div><div><br></div></div></div></div></div></blockquote><blockquote type="cite">
<div><span>_______________________________________________</span><br><span>Users mailing list</span><br><span><a href="mailto:Users@lists.osgeo.org">Users@lists.osgeo.org</a></span><br><span><a href="http://lists.osgeo.org/mailman/listinfo/openlayers-users">http://lists.osgeo.org/mailman/listinfo/openlayers-users</a></span><br>
</div></blockquote></body></html>