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

Free Support Forum - aspose.com

Convert PDF to DOC with text underline

Aspose.Pdf Java v17.6

It seems that a text underline in PDF is converted to a strikeThrougn text to DOC.
Please see attached the files that I use to reproduce the issue. How to fix that?

import com.aspose.pdf.Document;
import com.aspose.pdf.SaveFormat;

public class TestPdfToDoc {

public static void main(String[] args) throws Exception {
    Document dstDoc = new Document("E:\\Download\\pdf to doc\\Test.pdf");
    dstDoc.save("E:\\Download\\pdf to doc\\Test.doc", SaveFormat.Doc);

pdf to doc.zip (132.9 KB)

We managed to replicate the issues as below:

PDFJAVA-36890: PDF to DOC - the underline text converted to strikethrough text
PDFJAVA-36891: PDF to DOC - the displaced text of shapes

We have linked your post to these tickets and will keep you informed regarding any available updates. We are sorry for the inconvenience caused.

Best Regards,
Imran Rafique


It looks like PDFJAVA-36890 and PDFJAVA-36891 are not fixed in the new version of Aspose.PDF v17.7.
Is it possible to provide a patch as soon as it is fixed?


As the earlier reported issues were recently noticed, so they are pending for review and not yet resolved. I am afraid we may not be able to share an early hotfix because issues are resolved in first come first serve basis.

However, as soon as we have some definite updates regarding their resolution, we will let you know. Please be patient and spare us little time. We are sorry for this delay and inconvenience.