--- layout: example.html title: Print to scale example shortdesc: Example of printing a map to a specified scale. docs: > Example of printing a map to a specified scale. The print is exported as a PDF using the jsPDF library. Unlike the Export PDF example the on screen map is only used to set the center and rotation. The extent printed depends on the scale and page size. To print the scale bar and attributions the example uses the html2canvas library. tags: "print, printing, scale, scaleline, export, pdf" resources: - https://html2canvas.hertzen.com/dist/html2canvas.min.js - https://cdnjs.cloudflare.com/ajax/libs/jspdf/2.3.1/jspdf.umd.min.js ---
Page size
Resolution
Scale