title: PDF as a map in Leaflet JS?
body: <p>I'm wondering if it's possible to upload a PDF document to use as a map in Leaflet, or if it needs to be converted to another format first? I've only seen examples that actually reference a map like this:</p>
  
  <pre><code> // initialize the map
  var map = L.map('map').setView([42.35, -71.08], 13);
  
  // base map
  L.tileLayer('http://tiles.mapc.org/basemap/{z}/{x}/{y}.png',
  {
    attribution: 'Tiles by &lt;a href="http://mapc.org"&gt;MAPC&lt;/a&gt;, Data by &lt;a href="http://mass.gov/mgis"&gt;MassGIS&lt;/a&gt;',
    maxZoom: 17,
    minZoom: 9
  }).addTo(map);
  
  // bike lanes
  L.tileLayer('http://tiles.mapc.org/trailmap-onroad/{z}/{x}/{y}.png',
  {
    maxZoom: 17,
    minZoom: 9
  }).addTo(map);
  </code></pre>
  
  <p>Docs: <a href="http://leafletjs.com/reference-1.3.0.html" rel="nofollow noreferrer">http://leafletjs.com/reference-1.3.0.html</a></p>