We are also implementing a search in the pdf viewer. Thank you for your sample code.
We do a custom layer builder and register it with ExtensibilityManager.RegisterLayersBuilder. This looks
like a process wide registration (singleton). That means, that different
instances of the RadPdfViewer share the same custom layer builder.
This singleton cannot be removed easily. It cannot be replaced, as the time
of the usage is not known. It must remain in memory, even if the instance of RadPdfViewer
is not used anymore.
We would like to have the possibility to configure an instance of the
RadPdfViewer with layers. I have found an example for RadRichTextBox
Would that be possible? Or is there already a way without ExtensibilityManager.RegisterLayersBuilder?