You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Currently, the paint method in the FormComponent class is triggered every time a component field is changed. This behavior needs to be updated so that the paint method is called only once before saving the document. One possible solution is to track field changes in the component, iterate over all the components when the document is saved, and call paint only for those components that need it.
When implementing this task, it is necessary to take into account the lifespan of each component. Since each component is a wrapper around certain types of PDFDictionary, it may be necessary to cache these objects in order to provide access to the component fields and invoke the "paint" method when saving the document.
Currently, the paint method in the FormComponent class is triggered every time a component field is changed. This behavior needs to be updated so that the paint method is called only once before saving the document. One possible solution is to track field changes in the component, iterate over all the components when the document is saved, and call paint only for those components that need it.
Proposed solution
The text was updated successfully, but these errors were encountered: