pdf rewrite