I'm trying to take an existing PDF that has a lot of Text Comments, and make them searchable.
I'm reading each text comment, then creating a TextBlock to represent it, including position, etc.
My code is working fine, however, it is painfully slow.
It takes 2+ minutes to process a single page with 568 comments.
I've tested the same process by reusing my code with a competing library and it processes in under 2 seconds.
When I analyze my code performance in Visual Studio, the slowdown occurs with this statement which takes over 85%
of the code processing time:
Code: Select all
How can I speed this up?