Skip to content

Navigation Menu

Sign in
Appearance settings

Search code, repositories, users, issues, pull requests...

Provide feedback

We read every piece of feedback, and take your input very seriously.

Saved searches

Use saved searches to filter your results more quickly

Sign up
Appearance settings

Commit 2e9bcbd

Browse files
committed
no message
1 parent c01e500 commit 2e9bcbd

File tree

1 file changed

+11
-0
lines changed

1 file changed

+11
-0
lines changed
Lines changed: 11 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,11 @@
1+
import pypandoc
2+
import pdfkit
3+
4+
# web to pdf
5+
pdfkit.from_url(['www.baidu.com','www.bing.com'],'search.pdf')
6+
7+
# html to pdf
8+
pdfkit.from_file('/Users/xx/Desktop/html/baidu.html', 'html2pdf.pdf')
9+
10+
# html to word
11+
output = pypandoc.convert_file('/Users/xx/Desktop/html/baidu.html', 'docx', outputfile="baidu.doc")

0 commit comments

Comments
(0)

AltStyle によって変換されたページ (->オリジナル) /