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.

Source Distribution

webpage2pdf-1.1.1.tar.gz (2.8 kB view details)

Uploaded Source

Built Distribution

If you're not sure about the file name format, learn more about wheel file names.

webpage2pdf-1.1.1-py3-none-any.whl (15.8 kB view details)

Uploaded Python 3

File details

Details for the file webpage2pdf-1.1.1.tar.gz.

File metadata

  • Download URL: webpage2pdf-1.1.1.tar.gz
  • Upload date:
  • Size: 2.8 kB
  • Tags: Source
  • Uploaded using Trusted Publishing? No
  • Uploaded via: twine/1.13.0 pkginfo/1.5.0.1 requests/2.18.4 setuptools/41.0.1 requests-toolbelt/0.9.1 tqdm/4.32.1 CPython/3.6.4

File hashes

Hashes for webpage2pdf-1.1.1.tar.gz
Algorithm Hash digest
SHA256 ac8c710d7bcd32ecd25d15cc9e3e968a8cffc28c2658a6dbf40a3072437bd9b6
MD5 46589746ca4760a71caa4c82894f1234
BLAKE2b-256 22daf16d4d989bf8a81344fe5e2f6dc46a9a7b43b180361937d63343bc883a1b

See more details on using hashes here.

File details

Details for the file webpage2pdf-1.1.1-py3-none-any.whl.

File metadata

  • Download URL: webpage2pdf-1.1.1-py3-none-any.whl
  • Upload date:
  • Size: 15.8 kB
  • Tags: Python 3
  • Uploaded using Trusted Publishing? No
  • Uploaded via: twine/1.13.0 pkginfo/1.5.0.1 requests/2.18.4 setuptools/41.0.1 requests-toolbelt/0.9.1 tqdm/4.32.1 CPython/3.6.4

File hashes

Hashes for webpage2pdf-1.1.1-py3-none-any.whl
Algorithm Hash digest
SHA256 5364f84021874393d48fd28a585a7257aa14fc7999133d0002073a698741f4c6
MD5 def2730b9ba1dac584f4d8a3bfcac8c3
BLAKE2b-256 59df06cc00c1953d0cabf934534bbf99d702a3f50429e3a4f1e4bbe029adcc5e

See more details on using hashes here.

Supported by

AWS Cloud computing and Security Sponsor Datadog Monitoring Depot Continuous Integration Fastly CDN Google Download Analytics Pingdom Monitoring Sentry Error logging StatusPage Status page