Fix typo in pdf.py
Fixed example code.
Modified merger.py so that files can be closed after they are appended/merged to a PdfFileMerger object and before the merged PDF is written out. This is accomplished by creating a StringIO stream of the content of the file and using that as the source for the merge. The same is done with PdfFileReader objects that are to be merged/appended; the stream is wrapped into a separate StringIO object.
Merge pull request #3 from jerem/patch-1

Fixed example code. (jerem)
Merge pull request #2 from flyser/patch-1

Fix typo in pdf.py (flyser)
Fixed example code.
Fix typo in pdf.py
Merge branch 'master' of https://github.com/knowah/PyPDF2
Added warning to PdfFileReader constructor; if it is passed a stream object that is not in binary mode, the user is warned of this and of the fact that the stream may not be read correctly.
Changed README to use open() instead of file() [for Python 3 compatibility]
A PDF was unable to be read due to a non-standard Xref table. Evidently, some programs will create an xref table with 21-byte entries due to the use of CR+LF endlines instead of single-character ones. As per the standard, PyPDF2 reads Xref entries in 20-byte chunks, regardless of endlines. Thus, each line (after the first) of the 21-byte Xref table contained the LF character from the end of the previous line. To remedy this, if a line starts with a CR or LF character, the 20-byte line is re-read, starting one byte further than before.
Added support for getNumPages() for encrypted PDF's; this uses the /Count of the Page Tree object of the Root catalog. For non-encrypted PDF's, the implementation is unchanged.
Added support for converting FloatObject to a float and NumberObject to an int; method is called as_numeric() in both classes.
For page merging, added additional argument to _mergePage so that it can access the CTM (transformation matrix); also added 'expand' argument to allow the new page to adopt the dimensons of the merged (and possibly transformed) page; defaults to false and is currently not used by any function, but will be once other methods are adapted to take the 'expand' parameter.
Added support for constructing PdfFileReader object with string of PDF file path. Previously a file/stream instance of the PDF was required; now one is created within the constructor to provide this functionality.
In reading a DictionaryObject, a \r character was assumed to be followed by a \n character, and the latter was read over if a \r was found. However, this is not always the case. The character after the \r is now checked of it is actually \n, and if not, then the stream is seeked backwards one byte to compensate for the erroneous read.
Correcting syntax error from last commit upon notification by github user rippedathlete.
Defined 'PyPDF2.__version__'. 'PyPDF2/__init__.py' and 'setup.py' were modified to handle the new file 'PyPDF2/_version.py'. The official version number has been set to '1.9.0'
Merge branch 'master' of https://github.com/knowah/PyPDF2
Corrected version number.