Hello,
I have a piece of code that does the following.
TextFragmentAbsorber textFragmentAbsorber = new TextFragmentAbsorber(searchText);
pdfDocument.Pages.Accept(textFragmentAbsorber); // Taking good 3-4 seconds
When I try to add the “textFragmentAbsorber” to the pdfDocument object, it’s taking good 3 seconds or more. Is there a better and faster way to handle this to improve performance? After doing some load testing, it seems to cause memory leaks and crashing the server.
Also, this runs pretty quick on my local machine (Mac OS), however it’s taking 3-4 seconds on an Ubuntu Server (EC2 instance). The PDF contains 18 pages.
Thank you
Harish