outfp closing bug fixed

git-svn-id: https://pdfminerr.googlecode.com/svn/trunk/pdfminer@145 1aa58f4a-7d42-0410-adbc-911cccaed67c
pull/1/head
yusuke.shinyama.dummy 2009-10-31 02:09:36 +00:00
parent 736a69a4cd
commit 23b8058ad4
2 changed files with 4 additions and 2 deletions

View File

@ -19,7 +19,7 @@ Python PDF parser and analyzer
<div align=right class=lastmod> <div align=right class=lastmod>
<!-- hhmts start --> <!-- hhmts start -->
Last Modified: Tue Oct 27 00:22:22 JST 2009 Last Modified: Sat Oct 31 11:08:31 JST 2009
<!-- hhmts end --> <!-- hhmts end -->
</div> </div>
@ -353,6 +353,7 @@ no stream header is displayed for the ease of saving it to a file.
<hr noshade> <hr noshade>
<h2>Changes</h2> <h2>Changes</h2>
<ul> <ul>
<li> 2009/10/xx: Password encryption bug fixed. Thanks to Yannick Gingras.
<li> 2009/10/24: Charspace bug fixed. Adjusted for 4-space indentation. <li> 2009/10/24: Charspace bug fixed. Adjusted for 4-space indentation.
<li> 2009/10/04: Another matrix operation bug fixed. Thanks to Vitaly Sedelnik. <li> 2009/10/04: Another matrix operation bug fixed. Thanks to Vitaly Sedelnik.
<li> 2009/09/12: Fixed rectangle handling. Able to extract image boundaries. <li> 2009/09/12: Fixed rectangle handling. Able to extract image boundaries.
@ -376,7 +377,7 @@ no stream header is displayed for the ease of saving it to a file.
<li> 2008/06/29: HTML output added. Reorganized the directory structure. <li> 2008/06/29: HTML output added. Reorganized the directory structure.
<li> 2008/04/29: Bugfix for Win32. Thanks to Chris Clark. <li> 2008/04/29: Bugfix for Win32. Thanks to Chris Clark.
<li> 2008/04/27: Basic encryption and LZW decoding support added. <li> 2008/04/27: Basic encryption and LZW decoding support added.
<li> 2008/01/07: Several bugfixes. Thanks to Nick Fabry for his contribution. <li> 2008/01/07: Several bugfixes. Thanks to Nick Fabry for his vast contribution.
<li> 2007/12/31: Initial release. <li> 2007/12/31: Initial release.
<li> 2004/12/24: Start writing the code out of boredom... <li> 2004/12/24: Start writing the code out of boredom...
</ul> </ul>

View File

@ -88,6 +88,7 @@ def main(argv):
process_pdf(rsrc, device, fp, pagenos, maxpages=maxpages, password=password) process_pdf(rsrc, device, fp, pagenos, maxpages=maxpages, password=password)
fp.close() fp.close()
device.close() device.close()
outfp.close()
return return
if __name__ == '__main__': sys.exit(main(sys.argv)) if __name__ == '__main__': sys.exit(main(sys.argv))