PDF editor not working properly