This commit is contained in:
sanj 2010-07-30 20:51:30 +05:30
parent e776b1ab66
commit 2ab3075ff8

View File

@ -3,8 +3,8 @@ import os
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,)
clean_urls.append("'" + u + "'")
cmd = "wkhtmltopdf --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