Uhm... I cannot see anything strange in the pdf, apart from the fact that it does not include the legend items.
Do you have any errors / warning in GeoServer logs when you print? Mauro 2015-07-23 9:22 GMT+02:00 Wondimagegn Tesfaye <[email protected]>: > Hello Mauro, > > Yes, it produces a valid image. > I have attached the pdf file. > > Thanks! > > On Thu, Jul 23, 2015 at 9:59 AM, Mauro Bartolomeoli < > [email protected]> wrote: > >> Hi, >> does the legend url ( >> http://localhost:8080/geoserver/malawi_vulnerabilitytool/wms?TRANSPARENT=TRUE&SERVICE=WMS&VERSION=1.1.1&REQUEST=GetLegendGraphic&EXCEPTIONS=application%2Fvnd.ogc.se_xml&LAYER=malawi_national_vulnerability_index&FORMAT=image%2Fpng) >> produce a valid image? >> >> Can you attach the produced pdf, so that I can take a look? >> >> Thanks >> Mauro >> >> >> 2015-07-23 8:30 GMT+02:00 Wondimagegn Tesfaye <[email protected]>: >> >>> Dear Members, >>> >>> I was trying to include legend in the pdf file but it is not being >>> included. I see an empty box in place of the legend. Below is my code. >>> >>> Spec. >>> >>> "legends": [ >>> { >>> "classes": [ >>> { >>> "icons": [ >>> >>> "http://localhost:8080/geoserver/malawi_vulnerabilitytool/wms?TRANSPARENT=TRUE&SERVICE=WMS&VERSION=1.1.1&REQUEST=GetLegendGraphic&EXCEPTIONS=application%2Fvnd.ogc.se_xml&LAYER=malawi_national_vulnerability_index&FORMAT=image%2Fpng" >>> ], >>> "name": 'icon name', >>> "iconBeforeName": true >>> } >>> ], >>> "name": 'Legend' >>> } >>> ], >>> >>> >>> config.yaml >>> >>> - !columns >>> # columns can have an absolute position. In that case, they need the 3 >>> following fields: >>> absoluteX: 50 >>> absoluteY: 300 >>> width: 440 >>> items: >>> - !legends >>> backgroundColor: #FFFFFF >>> borders: true >>> align: left >>> inline: true >>> maxHeight: 700 >>> maxWidth: 200 >>> defaultScale: 0.5 >>> iconMaxWidth: 80 >>> iconMaxHeight: 80 >>> iconPadding: 3 0 0 0 >>> columnMargin: 10 >>> classIndentation: 3 >>> classSpace: 5 >>> backgroundColor: white >>> layerFontSize: 9 >>> - !scalebar >>> type: bar_sub >>> >>> >>> Thanks! >>> >>> >>> >>> >>> >>> >>> >>> >>> >>> >>> >>> >>> >>> ------------------------------------------------------------------------------ >>> >>> _______________________________________________ >>> Geoserver-users mailing list >>> [email protected] >>> https://lists.sourceforge.net/lists/listinfo/geoserver-users >>> >>> >> >
------------------------------------------------------------------------------
_______________________________________________ Geoserver-users mailing list [email protected] https://lists.sourceforge.net/lists/listinfo/geoserver-users
