print without margins:

This commit is contained in:
Sanj 2011-05-18 19:49:57 +05:30
parent 0c28952f8a
commit e4f5a5050f

View File

@ -4,7 +4,7 @@ def print_url_list(urls, width, height, dpi, output_path):
clean_urls = []
for u in urls:
clean_urls.append("'" + u + "'")
cmd = "wkhtmltopdf --page-width %d --page-height %d -d %d %s '%s'" % (width, height, dpi, " ".join(clean_urls), output_path,)
cmd = "wkhtmltopdf -B 0 -L 0 -R 0 -T 0 --page-width %d --page-height %d -d %d %s '%s'" % (width, height, dpi, " ".join(clean_urls), output_path,)
# print cmd
os.system(cmd)
return output_path