Changeset a67d674 in sasview
- Timestamp:
- Feb 15, 2018 2:02:42 PM (7 years ago)
- Children:
- 42fe90c
- Parents:
- 18d50612
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
src/sas/sasgui/guiframe/report_dialog.py
r18d50612 ra67d674 127 127 try: 128 128 from xhtml2pdf import pisa 129 from StringIO import StringIO130 129 # open output file for writing (truncated binary) 131 130 resultFile = open(filename, "w+b") 132 131 # convert HTML to PDF 133 pisaStatus = pisa.CreatePDF( StringIO(data.encode('utf-8'), dest=resultFile)132 pisaStatus = pisa.CreatePDF(data, dest=resultFile, encoding='utf-8') 134 133 # close output file 135 134 resultFile.close()
Note: See TracChangeset
for help on using the changeset viewer.