surface = cairo.PDFSurface(file.name, map.width, map.height)
mapnik.render(map, surface)
surface.finish()
output_headers("application/pdf", "map.pdf", file_size(file))
output_file(file)
elif form.getvalue("format") == "ps":
surface = cairo.PDFSurface(file.name, map.width, map.height)
mapnik.render(map, surface)
surface.finish()
output_headers("application/pdf", "map.pdf", file_size(file))
output_file(file)
elif form.getvalue("format") == "ps":