For a web application with .NET Core, we'll need to generate PDF file with certain data. In some situations, the total pages could be over 1000. Is there any other way than generating in-memory PDF file and putting the total page after finishing it before turn to the web client?
EDIT: the process for getting the PDF file: client sends in request; server retrieves data and starts generating PDF file; puts page number out of total pages on each page; returns the finished PDF file stream to download to user's local computer.