Unexpected missing line breaks in text box in utils.downloadpage

I am downloading a bunch of apps through utils.downloadpage and I noticed that line breaks in text boxes disappear, which cuts of part of the text at the end of the textbox. See here first a screenshot of the app itself:

And here a screenshot of the downloaded pdf:

Would love to hear whether this is expected behaviour, or if there is a way to fix this.
Thank you!