Changeset 45eddeb7 in sasview for src


Ignore:
Timestamp:
Feb 16, 2018 3:39:35 PM (7 years ago)
Author:
wojciech
Children:
250f2393
Parents:
2aba0a4
Message:

hardcoded string to check if anything works

File:
1 edited

Legend:

Unmodified
Added
Removed
  • src/sas/sasgui/guiframe/report_dialog.py

    r2aba0a4 r45eddeb7  
    127127        try: 
    128128            from xhtml2pdf import pisa 
     129            data = "<html><body><p>To PDF or not to PDF</p></body></html>" 
    129130            # open output file for writing (truncated binary) 
    130131            resultFile = open(filename, "w+b") 
    131132            # convert HTML to PDF 
    132             pisaStatus = pisa.CreatePDF(data, dest=resultFile, encoding='utf-8', show_error_as_pdf=True) 
     133            pisaStatus = pisa.CreatePDF(data, dest=resultFile) 
    133134            # close output file 
    134135            resultFile.close() 
Note: See TracChangeset for help on using the changeset viewer.