Put overlay image on all hard copies: overlay
(self, arg)
| 541 | |
| 542 | # ------------------------[ overlay <file> ]-------------------------- |
| 543 | def do_overlay(self, arg): |
| 544 | "Put overlay image on all hard copies: overlay <file>" |
| 545 | if not arg: |
| 546 | arg = eval(input('File: ')) |
| 547 | if arg.endswith('ps'): |
| 548 | data = file().read(arg) # already ps/eps file |
| 549 | else: |
| 550 | self.chitchat( |
| 551 | "For best results use a file from the overlays/ directory") |
| 552 | data = self.convert(arg, 'eps') # try to convert other file types |
| 553 | if data: |
| 554 | self.overlay(data) |
| 555 | |
| 556 | # define alias |
| 557 | complete_overlay = printer.complete_lfiles # files or directories |