#!/usr/bin/env python
# -*- coding: utf-8 -*-
# @Time    : 2018/6/7 22:10
# @Author  : lingxiangxiang
# @File    : demon4.py


import pdfkit

# pdfkit.from_url("https://www.jd.com", 'jdindex.pdf')
# pdfkit.from_file("test.html", 'test.pdf')
pdfkit.from_string('sasdlfjalsdfjlsda;jfl;sdajfl;asdjflasdjfl;sdajfla;sdjfl;asdjf', 'str.pdf')