Hi, this is Peter, the founder of PSPDFKit.
The issue you see here affects very old versions of PSPDFKit from 2014 and earlier. We indeed use a few tricks to work around bugs and, in the above case, improve the HTML to PDF conversion experience via checking page sizes. None of these features are essential and this has been resolved in later versions (the HTML to PDF conversion is marked as an experimental feature for that reason.)
Honestly, I'm surprised that a 4-year old version still works at all - thinking alone about all the changes we had to do to support the iPhone X.
iOS is a fast-moving platform and we are constantly improving and updating our product so things keep working.
If you update from the mentioned version 3.7.5 from June 2014 to our current v7, this issue is resolved.
Reminder: Our license model is subscription-based, so you will need to enter a new agreement to get the updated version.
We also regularily check and submit SDK versions via our free PDF Viewer app before releasing them to ensure everything is correct and passes review.
We're can respond even faster if you reach out to our support platform for technical issues.