<html><body><div style="color:#000; background-color:#fff; font-family:arial, helvetica, sans-serif;font-size:10pt"><div><span>Hi,</span></div><div><span><br></span></div><div><span>Thanks for the reply.</span></div><div><span><br></span></div><div><span>according to my research it is possible. gbrun managed to get this working with TMS services with the help of Matt Prior documented in the link below. The proof is in the online map here</span></div><div><span><br></span></div><div><a href="http://gis.catawbacountync.gov/gwc/print_gwc.html">http://gis.catawbacountync.gov/gwc/print_gwc.html</a></div><div><br></div><div><span><a href="http://www.mail-archive.com/users@geoext.org/msg01973.html">http://www.mail-archive.com/users@geoext.org/msg01973.html</a><br></span></div><div><br></div><div>yours,</div><div><br></div><div>Rob</div><div><br></div><div><br></div><div><br></div>  <div style="font-size: 10pt; font-family: arial, helvetica, sans-serif; "> <div
 style="font-size: 12pt; font-family: 'times new roman', 'new york', times, serif; "> <font size="2" face="Arial"> <hr size="1">  <b><span style="font-weight:bold;">Von:</span></b> Toby R &lt;ramotswa@gmail.com&gt;<br> <b><span style="font-weight: bold;">An:</span></b> Robert Buckley &lt;robertdbuckley@yahoo.com&gt; <br><b><span style="font-weight: bold;">Cc:</span></b> "geoserver-users@lists.sourceforge.net" &lt;geoserver-users@lists.sourceforge.net&gt;; "users@mapfish.org" &lt;users@mapfish.org&gt;; "users@geoext.org" &lt;users@geoext.org&gt;; "users@openlayers.org" &lt;users@openlayers.org&gt; <br> <b><span style="font-weight: bold;">Gesendet:</span></b> 8:25 Donnerstag, 24.November 2011<br> <b><span style="font-weight: bold;">Betreff:</span></b> Re: [OpenLayers-Users] pdf export: why the request for tile dimensions of 625x458<br> </font> <br><div id="yiv1242764074"><div><div>Hi Robert,&nbsp;</div><div>This may not be entirely helpful however I don'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.&nbsp;</div>
<div>The reason you are getting that tile size is because that's the size of the window you are trying to print (I presume).&nbsp;</div><div>As a test, if you were to point your layer_topo straight to the wms does printing work?&nbsp;<br>
<br></div><div>Toby<br><br></div><div><br>On 24 Nov 2011, at 06:53, Robert Buckley &lt;<a rel="nofollow" ymailto="mailto:robertdbuckley@yahoo.com" target="_blank" href="mailto:robertdbuckley@yahoo.com">robertdbuckley@yahoo.com</a>&gt; wrote:<br><br></div><blockquote type="cite"><div>
<div style="color: rgb(0, 0, 0); background-color: rgb(255, 255, 255); font-size: 10pt; font-family: arial, helvetica, sans-serif; "><div><div><font class="yiv1242764074Apple-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&nbsp;</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("map", {</div><div>&nbsp; &nbsp; &nbsp; &nbsp; id: 'map',</div><div>&nbsp; &nbsp; &nbsp; &nbsp; projection: new OpenLayers.Projection("EPSG:900913"),</div>
<div>&nbsp; &nbsp; &nbsp; &nbsp; displayProjection: new OpenLayers.Projection("EPSG:4326"),</div><div>&nbsp; &nbsp; &nbsp; &nbsp; units: "m",</div><div>&nbsp; &nbsp; &nbsp; &nbsp; maxResolution: 156543.0339,</div><div>&nbsp;
 &nbsp; &nbsp; &nbsp; maxExtent: new OpenLayers.Bounds(-20037508, -20037508, 20037508, 20037508.34),</div><div>&nbsp; &nbsp; &nbsp; &nbsp; numZoomLevels: 17,</div><div>&nbsp; &nbsp; &nbsp; &nbsp; controls: [new OpenLayers.Control.MouseDefaults(), new OpenLayers.Control.PanZoomBar(), new OpenLayers.Control.MousePosition(), new OpenLayers.Control.ScaleLine({</div>
<div>&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; geodesic: true</div><div>&nbsp; &nbsp; &nbsp; &nbsp; })]</div><div>&nbsp; &nbsp; });</div></div><div><br></div><div>// layer GWC</div><div><div>var layer_topo = new OpenLayers.Layer.WMS("Topographischekarte", "<a rel="nofollow" target="_blank" href="http://maps.zgb.de/geoserver/gwc/service/wms/">http://maps.zgb.de/geoserver/gwc/service/wms/</a>", {</div>
<div>&nbsp; &nbsp; &nbsp; &nbsp; layers: 'zgb:tk50',</div><div>&nbsp; &nbsp; &nbsp; &nbsp; projection: "EPSG:900913",</div><div>&nbsp; &nbsp; &nbsp; &nbsp; format: 'image/png',</div><div>&nbsp; &nbsp; &nbsp; &nbsp; transparent: true,</div><div>&nbsp; &nbsp; &nbsp; &nbsp; singleTile:
 false</div><div>&nbsp; &nbsp; }, {</div><div>&nbsp; &nbsp; &nbsp; &nbsp; 'buffer': 0,</div><div>&nbsp; &nbsp; &nbsp; &nbsp; 'opacity': 1,</div><div>&nbsp; &nbsp; &nbsp; &nbsp; 'isBaseLayer': true,</div><div>&nbsp; &nbsp; &nbsp; &nbsp; visibility: true</div><div>&nbsp; &nbsp; });</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 rel="nofollow" target="_blank" href="http://maps.zgb.de/geoserver/gwc/service/wms"></a><a rel="nofollow" target="_blank" href="http://maps.zgb.de/geoserver/gwc/service/wms">http://maps.zgb.de/geoserver/gwc/service/wms</a></div>
<div>2011-11-24 07:39:54,200 WARN [print.PDFUtils] - Server returned an error for
 <a rel="nofollow" target="_blank" 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 rel="nofollow"
 target="_blank" 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="yiv1242764074Apple-style-span" face="arial, helvetica, sans-serif" size="2"><br></font></div><div><font class="yiv1242764074Apple-style-span" face="arial, helvetica, sans-serif" size="2"><u><b>pdf error attatchment</b></u></font></div>
<div><font class="yiv1242764074Apple-style-span" face="arial, helvetica, sans-serif" size="2"><u><b><br></b></u></font></div><div><font class="yiv1242764074Apple-style-span" face="arial, helvetica, sans-serif" size="2">java.io.IOException: Error (status=400) while reading the image from <a rel="nofollow" target="_blank" href="http://maps.zgb.de/geoserver/gwc/service/wms?BBOX=1091694.4%2C6741760.5%2C1250642.0%2C6958507.0"></a><a rel="nofollow" target="_blank" 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></font></div>
<div><font class="yiv1242764074Apple-style-span" face="arial, helvetica, sans-serif" size="2"><br></font></div><div><font class="yiv1242764074Apple-style-span" face="arial, helvetica, sans-serif" size="2">&amp;</font><span class="yiv1242764074Apple-style-span" style="font-size: small; font-family: arial, helvetica, sans-serif; ">HEIGHT=625&amp;WIDTH=458</span></div>
<div><font class="yiv1242764074Apple-style-span" face="arial,
 helvetica, sans-serif" size="2">&amp;map_resolution=75&amp;SERVICE=WMS&amp;REQUEST=GetMap</font></div><div><font class="yiv1242764074Apple-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="yiv1242764074Apple-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="yiv1242764074Apple-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-size: 10pt; font-family: arial, helvetica, sans-serif; "><br></div><div style="font-size: 10pt; font-family: arial, helvetica, sans-serif; "><br></div><div style="font-size: 10pt; font-family: arial, helvetica, sans-serif; ">
<br></div><div style="font-size: 10pt; font-family: arial, helvetica, sans-serif; "><div style="font-size:13px;">Can anyone tell me why the mapfish print is requesting tile&nbsp;dimensions &nbsp;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 rel="nofollow" ymailto="mailto:Users@lists.osgeo.org" target="_blank" href="mailto:Users@lists.osgeo.org">Users@lists.osgeo.org</a></span><br><span><a rel="nofollow" target="_blank" href="http://lists.osgeo.org/mailman/listinfo/openlayers-users">http://lists.osgeo.org/mailman/listinfo/openlayers-users</a></span><br>
</div></blockquote></div>
</div><br><br> </div> </div>  </div></body></html>