Hi,
The feature is currently on the
roadmap for Sitefinity 5.1. Until then you can modify the TxtDocumentSearchInboundPipe pipe and use it to search through different types of content. I've attached a sample, which is modified to search through .pdf files. For this purpose we're using a third-party library called iTextSharp.text. The sample pipe also searches in one library only (take a look at the PushData() method), so that it suits your second requirement. What is different from the sample in my colleague's blog post is that in the CanProcessItem() method we check whether the item we process has a .pdf extension, instead of a .txt extension.
Then in the GetFileLink() method we get the url:
The last thing we do is pass its value to the OpenPDF()method and the .pdf content is retrieved, using a sample method from the page of the iTextSharp.text library :
I have attached the modifications made to the project form
this blog post.
Regards,
Stanislav Velikov
the Telerik team
Do you want to have your say in the Sitefinity development roadmap? Do you want to know when a feature you requested is added or when a bug fixed? Explore the
Telerik Public Issue Tracking system and vote to affect the priority of the items