Handle a readable stream

Instead of passing a file, we could pass a readable stream into pdinfo.