Suppose $f:\mathbb R \to \mathbb R$ be a Schwartz function. Then the Hilbert transform $Hf\in L^1(\mathbb R)$ iff $\int_{\mathbb R} f(x) \mathrm dx=0$.
I could prove $Hf\in L^1(\mathbb R)$ implies $\int_{\mathbb R} f(x) \mathrm dx=0$ using the fact $\lim_{|x|\to \infty}xHf(x)=\frac{1}{\pi}\int_{\mathbb R}f(x)\mathrm dx$.
But I couldn't prove the converse, please help.
Context (from comments): I have seen Integrability of the Hilbert transform of a Schwartz function but I couldn't undestand how it is done there. I had seen that before posting the question