Free Support Forum - aspose.com

Tooltip for text

Hi,

I have used InsertHyperLink for showing tool tip for text, which is showing the downloaded file path along with tool tip. Can you please provide sample code for giving tool tip to text in both Word and Pdf?

Thanks
Sowjanya

Hello

Thanks for your request. You can use code like the following to insert a hyperlink with tool-tip:

Document doc = new Document();

DocumentBuilder builder = new DocumentBuilder(doc);

builder.Font.StyleIdentifier = StyleIdentifier.Hyperlink;

builder.InsertField("HYPERLINK \"http://www.aspose.com\" \\o \"This is a tooltip\"", "Aspsoe web site");

doc.Save("C:\\Temp\\out.docx");

Also please note Adobe Acrobat does not show tool-tips.

Best regards,

Hi,

Thanks for the response. Is there anyway to show up tool tip in Pdf file?

Thanks
Sowjanya

Hi

Thanks for your request. No, unfortunately, there is no way to show tooltip of hyperlink in PDF document.

Best regards,