555 self.pr.fontSize += fontSize |
555 self.pr.fontSize += fontSize |
556 else: |
556 else: |
557 self.pr.fontSize = PDF_FONTSIZE_DEFAULT |
557 self.pr.fontSize = PDF_FONTSIZE_DEFAULT |
558 |
558 |
559 with EricOverrideCursor(), open(filename, "w", encoding="cp1250", |
559 with EricOverrideCursor(), open(filename, "w", encoding="cp1250", |
560 errors="backslashreplace") as f: |
560 errors="backslashreplace") as f: |
561 # save file in win ansi using cp1250 |
561 # save file in win ansi using cp1250 |
562 try: |
562 try: |
563 # initialise PDF rendering |
563 # initialise PDF rendering |
564 ot = PDFObjectTracker(f) |
564 ot = PDFObjectTracker(f) |
565 self.pr.oT = ot |
565 self.pr.oT = ot |