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

Free Support Forum - aspose.com

Aspose.Pdf: Hyperlink on a sentence breaks down on each word of the sentence after saving doc or docx from a pdf

Dear Aspose Team,

Our issue is as follows:

We have a .pdf document which we are saving as .doc and .docx too with Aspose.Pdf. The Aspose version that we use is Version=20.8.0.0. There is a hyperlink on a sentence “How to report memoQ bugs”:

image.png (7.2 KB)

If we save the document as .doc or .docx with Aspose.Pdf, the hyperlink will be set on each word of the sentence separately (not for the entire sentence once):

image.png (41.8 KB)
image.png (14.7 KB)

This is causing us an issue. Simple code snippet is:

DocSaveOptions saveOptions = new DocSaveOptions();
saveOptions.Mode = DocSaveOptions.RecognitionMode.Flow;

Aspose.Pdf.Document pdfDoc = new Document(Path.Combine(docDir.FullName, TestFileName + TestFileExtension));

saveOptions.Format = DocSaveOptions.DocFormat.Doc;
pdfDoc.Save(Path.Combine(docDir.FullName, SaveFileName1), saveOptions);

saveOptions.Format = DocSaveOptions.DocFormat.DocX;
pdfDoc.Save(Path.Combine(docDir.FullName, SaveFileName2), Aspose.Pdf.SaveFormat.DocX);

Attaching also the .pdf document and the saved ones with Aspose.Pdf.
ImpExpData.zip (333.8 KB)

Please let us know if You can fix this issue.

We are waiting for Your findings/answer.

Kind regards,
Bordi Tamas

[BUG-3604]

@tbordi

We have logged an issue as PDFNET-48668 in our issue tracking system after replicating it in our environment. We will investigate it further and keep you posted with its rectification status. Please be patient and spare us some time.

We are sorry for the inconvenience.