Geographic Information Systems Stack Exchange is a question and answer site for cartographers, geographers and GIS professionals. Join them; it only takes a minute:

Sign up
Here's how it works:
  1. Anybody can ask a question
  2. Anybody can answer
  3. The best answers are voted up and rise to the top

I am using OpenGeo Suite 3.0.2. I created an app using Client SDK and stored the raster and vector data on postgreSQL/PostGIS.

The print tool is not working, giving error the following error: the byte array is not recognized imageformat.

These are the dependencies, I included:

  • @require plugins/Print.js
  • @require GeoExt.ux/PrintPreview.js
  • @require GeoExt/widgets/PrintMapPanel.js
  • @require GeoExt/plugins/PrintProviderField.js
  • @require GeoExt/plugins/PrintPageField.js
  • @require OpenLayers/Control/ScaleLine.js

This is the code I included for print service:

   ptype: "gxp_print",
   customParams: {outputFilename: 'DAA Map-PDF'},
   printService: "/geoserver/pdf/",
   actionTarget: "map.tbar",
   showButtonText: true
share|improve this question
Can you show the part of your code that it's failing? – pconcepcion Jun 4 '13 at 14:31
please add a fuller description of your set up – iant Jun 4 '13 at 14:48
I am not able to post here so I edited the Question – user2273001 Jun 4 '13 at 16:23
It looks like the error is occurring in GeoServer. Could you check the layer in the GeoServer layer preview? Take a look in the GeoServer logs for a more complete error message and supporting information (INFO and WARN messages preceding the error) – smithkm Jun 4 '13 at 18:24
Also, how exactly did you load the data into PostGIS and how do you set up the layer in GeoServer? – smithkm Jun 4 '13 at 18:27

You must resolve the dependencies, so, you need to activate the printing module in geoserver. Please, follow the steps in

share|improve this answer

Your Answer


By posting your answer, you agree to the privacy policy and terms of service.

Not the answer you're looking for? Browse other questions tagged or ask your own question.