Allow to parse PDFs directly from buffers

I added a function which allows to directly pass buffers into pdf2json, as we need that and can avoid writing them to temp files to have them parsed. I thought maybe you want to integrate that into your module.