Performance Issue with PDF API doc.Pages[1].Accept()

Hi,
We are using Aspose PDF .net library and we are facing performance issue with PDF API doc.Pages[1].Accept(). Can you help in reducing the time taken.

Aspose PDF API doc.Pages[1].Accept() ( This method used to get 1st PDF page text)taking 6sec (start time : 20:37:33:778 and end time : 20:37:39:705)

Same method for the next iterations it takes almost 500ms (start time : 20:38:38:611 and end time : 20:38:39:26 )

@siqbal

Thank you for contacting support.

We would like to share with you that first instance of the method includes allocation of necessary resources for the first and following calls of the specific method. In the second call, resource allocation is not necessary so improved performance of can be noted. You may call Accept method for the second page first, and then for the first page and notice it is the first call of method that needs comparatively more seconds.

We hope this will clarify any ambiguity. Please feel free to contact us if you need any further assistance.