Thanks for the clarification.
The alternative is to migrate your code to our API. The API has option setViewportHeight
. If it's set e.g. to 16000, the PDF is fine.