modify editor function in pdf