mfenniak / pyPdf

Pure-Python PDF Library; this repository is no longer maintained, please see https://github.com/knowah/PyPDF2/ insead.
https://github.com/knowah/PyPDF2/
Other
276 stars 85 forks source link

PDF never finishes writing #35

Open rranshous opened 12 years ago

rranshous commented 12 years ago

Patch adds empty string to the NamedObject readFromStream deliminator list.

I have an example PDF that when writing the readFromStream would never return because no deliminator could be found, which caused it to keep pulling empty strings off the StringIO buffer.

I have no doubt that the update I've made is not the best solution, but it results in seemingly correct PDFs for me in this case.

I have the example PDF and could email it to you upon request.