3
이 모듈에 대한 작업 설명서 또는 하우투 문서를 찾을 수 없습니다. 어딘가에 누군가 존재합니까? 여기xhtml2pdf python 모듈을 사용하기위한 현재 튜토리얼 또는 howto 문서가 있습니까?
은 "완료"절은 : https://github.com/chrisglass/xhtml2pdf/blob/master/doc/usage.rst
버그, 그리고 코드를 작업 포함하지 않는 것 같습니다. 수정,이 코드 시퀀스 후 :이 크게 ReportLab 유용한 find their tutorials을 할 수있다 기반으로하므로
from xhtml2pdf import pisa as pisa
filename = u'test.pdf'
pdf = pisa.CreatePDF("Hello <strong>World</strong>",file(filename, "wb"))
pisa.startViewer(filename)
는 (물론, 정확히 비어 있지, 그 내용이없는 pdf 파일입니다)