Am 17.11.2010 09:16, schrieb Brett Bowman:
> Good ideas, but I've tried them already:
> -No del command, or replacing it with a set-to-null, neither solve my file
> access problem.
> -PdfFileReader has no close() function, and causes an error. Weird, but
> true.
> -pdf_handle.close() on the other
Good ideas, but I've tried them already:
-No del command, or replacing it with a set-to-null, neither solve my file
access problem.
-PdfFileReader has no close() function, and causes an error. Weird, but
true.
-pdf_handle.close() on the other hand, fails to solve the problem.
On Tue, Nov 16, 2010
On 17/11/2010 01:37, Brett Bowman wrote:
I'm spawning a subprocess to fix some formating errors with a library of
PDFs with pdftk:
try:
sp = subprocess.Popen('pdftk.exe "%s" output %s' % (pdfFile,
outputFile))
sp.wait()
del sp
except Exception, e:
ret
I'm spawning a subprocess to fix some formating errors with a library of
PDFs with pdftk:
try:
sp = subprocess.Popen('pdftk.exe "%s" output %s' % (pdfFile,
outputFile))
sp.wait()
del sp
except Exception, e:
return "Unable to open file: %s with error: %s" % (p