Skip to main content

Html2pdf.Batch processing.

Project description

This is a simple wrapper of the QWebEngineView(PyQt5) class.
It's base on the client/server model.

Requirements

  • python3
  • PyQt5

Errors will occur if the version of PyQt5 is too high.Cause PyQt5.QtWebEngineWidgets not exist.

	pip install PyQt5==5.10.1

Usage

	#! -*- coding:utf-8 -*-
	from webpage2pdf import RenderManager		
	#must start from __main__
	if __name__=='__main__':
		rm=RenderManager()
		rm.addRender(num=2,showUI=True)
		rm.from_url('http://www.baidu.com/','0.pdf')
		rm.from_html("Hello World!",'1.pdf')
		#rm.from_localFile('html/test.html','2.pdf')
		print('start.')
		rm.waitFinish()
		print('finish all.')		
	

Project details


Download files

Download the file for your platform. If you're not sure which to choose, learn more about installing packages.

Files for webpage2pdf, version 1.1.1
Filename, size File type Python version Upload date Hashes
Filename, size webpage2pdf-1.1.1-py3-none-any.whl (15.8 kB) File type Wheel Python version py3 Upload date Hashes View hashes
Filename, size webpage2pdf-1.1.1.tar.gz (2.8 kB) File type Source Python version None Upload date Hashes View hashes

Supported by

Elastic Elastic Search Pingdom Pingdom Monitoring Google Google BigQuery Sentry Sentry Error logging AWS AWS Cloud computing DataDog DataDog Monitoring Fastly Fastly CDN DigiCert DigiCert EV certificate StatusPage StatusPage Status page