replace pdf_file_update_* with pdf_write_document