index.rst 2.6 KB

12345678910111213141516171819202122232425262728293031323334353637383940414243444546474849505152535455565758596061626364
  1. GeoServer Printing Module
  2. =========================
  3. The ``printing`` module for GeoServer allows easy hosting of the Mapfish
  4. printing service within a GeoServer instance. The Mapfish printing module
  5. provides an HTTP API for printing that is useful within JavaScript mapping
  6. applications. User interface components for interacting with the print service
  7. are available from the Mapfish and GeoExt projects.
  8. Reference:
  9. * https://mapfish.github.io/mapfish-print-v2/ (mapfish-print-lib documentation)
  10. Installation
  11. ------------
  12. * Visit the :website:`website download <download>` page, locate your release, and download: :download_extension:`printing`
  13. * Extract the contents of the ZIP archive into the :file:`/WEB-INF/lib/` in the
  14. GeoServer webapp. For example, if you have installed the GeoServer binary to
  15. :file:`/opt/geoserver/`, the printing extension JAR files should be
  16. placed in :file:`/opt/geoserver/webapps/geoserver/WEB-INF/lib/`.
  17. * After extracting the extension, restart GeoServer in order for the changes to
  18. take effect. All further configuration can be done with GeoServer running.
  19. Verifying Installation
  20. ----------------------
  21. On the first startup after installation, GeoServer should create a print module
  22. configuration file in :file:`{GEOSERVER_DATA_DIR}/printing/config.yaml`.
  23. Checking for this file's existence is a quick way to verify the module is
  24. installed properly. It is safe to edit this file; in fact there is currently
  25. no way to modify the print module settings other than by opening this
  26. configuration file in a text editor.
  27. If the module is installed and configured properly, then you will also be able
  28. to retrieve a list of configured printing parameters from
  29. http://localhost:8080/geoserver/pdf/info.json . This service must be working
  30. properly for JavaScript clients to use the printing service.
  31. Finally, you can test printing in this :download:`sample page
  32. <files/print-example.html>`. You can load it directly to attempt to produce a
  33. map from a GeoServer running at http://localhost:8080/geoserver/. If you are
  34. running at a different host and port, you can download the file and
  35. modify it with your HTML editor of choice to use the proper URL.
  36. .. warning::
  37. This sample script points at the development version of GeoExt. You can
  38. modify it for production use, but if you are going to do so you should also
  39. host your own, minified build of GeoExt and OpenLayers. The libraries used
  40. in the sample are subject to change without notice, so pages using them may
  41. change behavior without warning.
  42. MapFish documentation
  43. --------------------------------------
  44. .. toctree::
  45. :maxdepth: 1
  46. configuration
  47. protocol
  48. faq