delete log if pdf