I found it difficult to please her.

Literal

Her please [nominalizer-こと] [topic-は] difficult [quotative-と] understood.

喜ばせることは難しい means 'pleasing her is difficult.' と分かった means 'I came to understand.'