from _pyhtmldoc import *
pdf = file2pdf('file.html'.encode(), None) # FILE PDF ps = file2ps('file.html'.encode(), None) # FILE PS file2pdf('file.html'.encode(), 'file.pdf') # FILE PDF file2ps('file.html'.encode(), 'file.pdf') # FILE PS PDF pdf = file2pdf(['file1.html'.encode(), 'file2.html'.encode()], None) # FILE PDF ps = file2ps(['file1.html'.encode(), 'file2.html'.encode()], None) # FILE PS file2pdf(['file1.html'.encode(), 'file2.html'.encode()], 'file.pdf') # FILE PDF file2ps(['file1.html'.encode(), 'file2.html'.encode()], 'file.pdf') # FILE PS PDF pdf = html2pdf(', !'.encode(), None) # HTML PDF ps = html2ps(', !'.encode(), None) # HTML PS html2pdf(', !'.encode(), 'file.pdf') # HTML PDF html2ps(', !'.encode(), 'file.pdf') # HTML PS PDF pdf = html2pdf([', !'.encode(), ' , !'.encode()], None) # HTML PDF ps = html2ps([', !'.encode(), ' , !'.encode()], None) # HTML PS html2pdf([', !'.encode(), ' , !'.encode()], 'file.pdf') # HTML PDF html2ps([', !'.encode(), ' , !'.encode()], 'file.pdf') # HTML PS PDF pdf = url2pdf('https://google.com'.encode(), None) # URL PDF ps = url2ps('https://google.com'.encode(), None) # URL PS url2pdf('https://google.com'.encode(), 'file.pdf') # URL PDF PDF url2ps('https://google.com'.encode(), 'file.pdf') # URL PS PDF pdf = url2pdf(['https://google.com'.encode(), 'https://google.ru'.encode()], None) # URL PDF ps = url2ps(['https://google.com'.encode(), 'https://google.ru'.encode()], None) # URL PS url2pdf(['https://google.com'.encode(), 'https://google.ru'.encode()], 'file.pdf') # URL PDF PDF url2ps(['https://google.com'.encode(), 'https://google.ru'.encode()], 'file.pdf') # URL PS PDF
Source: https://habr.com/ru/post/zh-CN464613/More articles:流协议作为监视内部网络安全性的工具酒精中毒后期大型团队的均衡发展。 Yandex报告虚假人工智能的虚假工业情结TechTrain 2019:免费直播Google Chrome的阴暗面程序员如何选择银行并阅读合同使用联合而不是OR应用看板板作为当前软件开发趋势的10个理由信息安全分析师-他是谁? 沉浸在专业中All Articles