editor and pdf task related code