Extract more metadata using pdfinfo

WIP, still testing this. Addresses #76. There will probably be a merge conflict with #84.
Previously I was only using byte arrays for both the command output and the
page count regular expression. That all worked out because everything was
ASCII characters only. With this PR, I switched to strings for both, so I
could handle squiggle quotes, em-dashes, etc. in the new fields.
On Jul 27, 2014 7:24 PM, "Eric Mill" <notifications@github.com> wrote:

> In inspectors/utils/utils.py:
>
> >      return None
> >
> >    real_pdf_path = os.path.join(data_dir(), pdf_path)
> >
> >    try:
> >      output = subprocess.check_output("pdfinfo \"%s\"" % (real_pdf_path), shell=True)
> > +    output = output.decode('utf-8')
>
> I'm curious, was the absence of this line a bug before, when just
> extracting page counts?
>
> —
> Reply to this email directly or view it on GitHub
> <https://github.com/unitedstates/inspectors-general/pull/88/files#r15443274>
> .
>