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

Free Support Forum - aspose.com

Hyperlink font


I have Word 97-2003 document with hyperlinks, and as You can see from attached screenshot it is not bolded. When I use following code:

private class MyDocumentVisitor extends DocumentVisitor {

private int _runCounter = 0;

public int visitRun(Run run) throws Exception {

if (getRunCounter() == 7) {
System.out.println("RUN TEXT: " + run.getText());

System.out.println("RUN IS BOLD: " + run.getFont().getBold());

return super.visitRun(run);

private int getRunCounter() {
return _runCounter;

private void incrementRunCounter() {

public void test() throws Exception {
String filePath = “hyperlink.doc”;

Document doc = new Document(filePath);

doc.accept(new MyDocumentVisitor());

I am getting following output:

RUN TEXT: www.mpic.gov.lv

Mentioned Word file is attached to this post too. Can You help me here?

Best regards,

Hi Zeljko,

Thanks for your inquiry. I have tested the scenario and have managed to reproduce the same issue at my side. For the sake of correction, I have logged this problem in our issue tracking system as WORDSNET-11112. I have linked this forum thread to the same issue and you will be notified via this forum thread once this issue is resolved.

We apologize for your inconvenience.

Thank You Tahir!


The issues you have found earlier (filed as WORDSNET-11112) have been fixed in this .NET update and this Java update.

This message was posted using Notification2Forum from Downloads module by aspose.notifier.