logo
Welcome Guest! To enable all features please Login or Register.

Notification

Icon
Error

Options
Go to last post Go to first unread
gffranca  
#1 Posted : Monday, February 26, 2024 6:53:19 PM(UTC)
gffranca

Rank: Member

Groups: Registered
Joined: 11/1/2019(UTC)
Posts: 19
Brazil
Location: Rio de Janeiro

Thanks: 2 times
Was thanked: 1 time(s) in 1 post(s)
DrawTextHighlight() takes around 10ms for each entry in the HighlightInfo list. With 40 distinct highlights, interaction with the viewer is practically impossible, taking around 400ms. How can I adjust the PdfViewer to optimize the OnPaint event when there is more than one HighlightInfo?

The current implementation seems somewhat inconsistent. Painting 40 highlights, each with one word selected, takes longer than painting the entire document (covered in 1 HighlightInfo).

I currently use version 4.54.2704. However, I haven't found any differences compared to the latest version.

Perhaps this issue is related to the following functions:
GetRectsFromTextInfoWithoutSpaceCharacter()
PadRectangles()

Could anyone help resolve this issue?
Users browsing this topic
Forum Jump  
You cannot post new topics in this forum.
You cannot reply to topics in this forum.
You cannot delete your posts in this forum.
You cannot edit your posts in this forum.
You cannot create polls in this forum.
You cannot vote in polls in this forum.