Forum Discussion
_ivanovich_
7 years agoFrequent Contributor
Problem resolved.
The last line as outside the test.
I added this
document.add(p)
Now it works:
It gets the httpcode of my request then writes in pdf file with color chunk red or green depending the status.