Skip to content

Instantly share code, notes, and snippets.

View kylemoseby's full-sized avatar

Kyle Moseby kylemoseby

View GitHub Profile
@gka
gka / map2pdf.js
Created March 22, 2012 18:44
Rendering a Kartograph map to PDF using PhantomJS
var page = new WebPage(),
url = "http://kartograph.org/showcase/italia/",
output = "italia.pdf";
page.viewportSize = { width: 1100, height: 750 };
page.open(url, function (status) {
if (status !== 'success') {
console.log('Unable to load the address!');
} else {