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.
I have created a sample project here to demonstrate my issue: https://github.com/isenbj/Syncfusion_slow_pdf_creation/blob/master/lib/main.dart
Simply click the button in the bottom right to see.
Initial drawing of the PDF takes .13 seconds to draw.
https://prnt.sc/HDfIwqsvDOie
After 16 drawings the pdf takes 1.1 seconds to draw to draw a single pdf
.
https://prnt.sc/bLdWVMJGt9oX
After 23 draws, the pdf takes 2.77 seconds to draw a single pdf.
https://prnt.sc/ZiMFrWCOQM2L
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.