In my app, I am drawing a new PDF and filling it with data every time a user needs to fill out a new form. This works perfectly fine, however the PDF creation slows down significantly each time it is drawn even though it is done from scratch. This is an issue for me as my PDF's are much larger than the one shown in my example, and has many more fields.
Since the PDF is created from scratch each time, there should be little to no variance in time. However, it slows down significantly each time. It can take a minute or longer eventually, where as the first time is near instantaneous.
IJIrfana Jaffer Sadhik Syncfusion Team January 11, 2023 04:56 AM UTC
On analysis, we found that the performance issue occurs since the PdfDocument instance is not disposed after being created multiple times. To resolve this performance lack, kindly dispose the Pdf document instance after saving the pdf as bytes.
Kindly refer the following code snippet for reference,