Resets the state of this component.
The library performs 2 passes when generating the document. First time, the library calculates the total number of pages in the document. Second time, the library renders the content of the document. This method is called before each pass.
You can use this method to reset some internal state of this component.