Accurate PDF-to-DOC transformation