Partial Differential Equations Invariant under Conformal or Projective Transformations