84 | | pdlhandler.convertToTiffMultiPage24NC(self.filename, self.options.resolution) |
85 | | result = inkcoverage.getInkCoverage(self.filename, cspace) |
| 84 | (handle, filename) = tempfile.mkstemp(".tmp", "pkpgcounter") |
| 85 | os.close(handle) |
| 86 | try : |
| 87 | pdlhandler.convertToTiffMultiPage24NC(filename, self.options.resolution) |
| 88 | result = inkcoverage.getInkCoverage(filename, cspace) |
| 89 | finally : |
| 90 | try : |
| 91 | os.remove(filename) |
| 92 | except OSError : |
| 93 | sys.stderr.write("Problem while trying to remove temporary file %s\n" % filename) |