forgot to add print_pdf
This commit is contained in:
parent
7fc694a2a6
commit
53cdc41780
9
edgware/editor/print_pdf.py
Normal file
9
edgware/editor/print_pdf.py
Normal file
|
@ -0,0 +1,9 @@
|
|||
import os
|
||||
|
||||
def print_url_list(urls, width, height, output_path):
|
||||
clean_urls = []
|
||||
for u in urls:
|
||||
clean_urls.append("'" + u + "'")
|
||||
cmd = "wkhtmltopdf --page-width %d --page-height %d %s '%s'" % (width, height, clean_urls.join(" "), output_path,)
|
||||
os.system(cmd)
|
||||
return output_path
|
Loading…
Reference in New Issue
Block a user