Skip to content

feiqiangs/html2pdf

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

3 Commits
 
 
 
 
 
 
 
 

Repository files navigation

Html2pdf

##description: A python object . Converting HTML to PDF. ##Python version: python 2.x ##Operating system (OS): windows ##Usage: 1.URL type:

from html2pdf import html2pdf
url='http://news.163.com/photoview/00AP0001/2186853.html#p=BPC3QKHP00AP0001'
temp = html2pdf(url)
temp.getpdf()
  1. Local HTML file type:
from html2pdf import html2pdf
file_path='./test.html'
temp = html2pdf(file_path)
temp.getpdf()

###output A pdf file 'result.pdf' will been created with the HTML's rendering result.

About

python object . Convert HTML to PDF.

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

 
 
 

Contributors