We're sorry Aspose doesn't work properply without JavaScript enabled.

Free Support Forum - aspose.com

TextFragment annotation before conversion to HTML

Can I distinguish somehow (maybe some kind of annotation) my custom TextFragment in PDF after converting to HTML, for example, custom tag or div with custom id?

Example flow:

  1. Loading PDF to Document object.
  2. Adding TextFragments to Document.
  3. Converting PDF to HTML using document.save function with HtmlSaveOptions parameter.
  4. Retrieving selected divs/spans (marked/annotated before or during conversion).
1 Like


We regret to share that there is no such functionality offered by the API at the moment. However, we have logged a feature request as PDFNET-46389 in our issue tracking system for your requirements. We will further investigate the feasibility of your requirements and keep you posted with the status of ticket resolution. Please be patient and spare us little time.

We are sorry for the inconvenience.