Skip to main content

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.')		
	

Metadata

Release files for webpage2pdf 1.1.1

For a detailed explanation of source distributions (sdists) and built distributions (wheels), please see the package formats documentation.

Source distribution (sdist)

Source distribution for webpage2pdf 1.1.1
File Size Uploaded
webpage2pdf-1.1.1.tar.gz 2.8 kB Details

Built distribution (wheel)

Table of built distributions (wheels) for webpage2pdf 1.1.1
File Interpreter ABI Platform
webpage2pdf-1.1.1-py3-none-any.whl Python 3 none any Details

Total release size: 18.7 kB

Release files / webpage2pdf-1.1.1.tar.gz

Download URL webpage2pdf-1.1.1.tar.gz
Size 2.8 kB
Tags Source
SHA-256 checksum
How to use checksums
ac8c710d7bcd32ecd25d15cc9e3e968a8cffc28c2658a6dbf40a3072437bd9b6
BLAKE2b-256 checksum
How to use checksums
22daf16d4d989bf8a81344fe5e2f6dc46a9a7b43b180361937d63343bc883a1b
Upload date
Uploaded using Trusted Publishing?
What is 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

Release files / webpage2pdf-1.1.1-py3-none-any.whl

Download URL webpage2pdf-1.1.1-py3-none-any.whl
Size 15.8 kB
Tags Python 3
SHA-256 checksum
How to use checksums
5364f84021874393d48fd28a585a7257aa14fc7999133d0002073a698741f4c6
BLAKE2b-256 checksum
How to use checksums
59df06cc00c1953d0cabf934534bbf99d702a3f50429e3a4f1e4bbe029adcc5e
Upload date
Uploaded using Trusted Publishing?
What is 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

Release history Release notifications | RSS feed

This release

1.1.1 This release

2 release files

1.1.0

2 release files

Anthropic, PBC Visionary sponsor Bloomberg Visionary sponsor Hudson River Trading Visionary sponsor Meta Visionary sponsor NVIDIA Visionary sponsor Microsoft Sustainability sponsor Depot Continuous Integration AWS Cloud computing and Security Sponsor Datadog Monitoring Fastly CDN Google Download Analytics Sentry Error logging StatusPage Status page