multithread read/write works with pdf now