I have a requirement from a customer to display an "image" in a window to a client in a hosted ASP.NET environment and give the client the ability to highlight text that he/she likes or dislikes. When they hit submit, this text needs to be extracted and sent back to the server. The "image" can be in any print format including pdf and will be determined by my client.
Is this something that seems doable with aspose pdf kit? It seems to me it would be. Here are the prerequisites for my choosing aspose for this solution:
able to display pdf in web-based viewer. (preferably without a toolbar)
ability to select text including multi-line blocks.
ability to select images within the document seperate from text.
ability to extract only selected items for storage in db.
Can be used in hosted (SAAS) environment.
Let me know if you need any further clarification.
Currently Aspose.Pdf.Kit offers the capability to extract the complete text from Pdf file. As per your requirement, you need to get the specific text portion programmatically, and I am afraid its currently not yet supported. Regarding rest of your queries,
2) Regarding your requirement to highlight the text, you can use CreateMarkup feature present in PdfContentEditor class, which offers the capability to draw mark in the Pdf document, such as Highlight, Underline, Squiggly and StrikeOut. You can use the mouse coordinates to specify the region where you need to create the markup. And in order to display the highlighted area, once you have created markup, you need to again reload the Pdf file.