title: Print map in LeafletJS
body: <p>I am new in LeafletJS. I am trying to print map in LeafletJS. My code for print is like this:</p>
  
  <pre class="lang-js prettyprint-override"><code>     printProvider = L.print.provider({
        capabilities: printConfig,
        method: 'GET',
        dpi: 254,
        autoLoad: true,
        // outputFormat: 'pdf',
        customParams: {
            mapTitle: 'Print Test',
            comment: 'Testing Leaflet printing'
        }
    });
    // Create a print control with the configured provider and add to the map
    printControl = L.control.print({
        provider: printProvider
    });
    map.addControl(printControl);
  </code></pre>
  
  <p>But when I click the print button error comes like this</p>
  
  <pre><code>Proxy Error.
  The proxy server received an invalid response from an upstream server.
  The proxy server could not handle the request GET /mapfish-print/pdf/print.pdf.
  
  Reason: Error reading from remote server
  </code></pre>
  
  <p>Can anyone help me?</p>