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

Free Support Forum - aspose.com

Urdu italic characters are rendered as square in output PDF using .NET

Aspose Words for Java saves italic Urdu characters as squares in exported PDF. Please see following code:
package test;

import com.aspose.words.Document;
import com.aspose.words.ProtectionType;
import com.aspose.words.SaveFormat;

import java.io.File;

public class Main
{
    public static void main(String[] args) throws Exception
    {
        String sourceFile = new File("source.docx").getAbsolutePath();
        String targetFile = new File("target.pdf").getAbsolutePath();
        Document asposeDoc = new Document(sourceFile);
        asposeDoc.removeMacros();
        asposeDoc.protect(ProtectionType.NO_PROTECTION);
        asposeDoc.save(targetFile, SaveFormat.PDF);
    }
}

In attachment you can find source.docx file. You will notice that third and fourth paragraphs have italic style applied. Letters from these paragraphs are converted into squares in resulting PDF.

source.zip (8.8 KB)

@wjeczalik

We have tested the scenario and have managed to reproduce the same issue at our side. For the sake of correction, we have logged this problem in our issue tracking system as WORDSNET-20051. You will be notified via this forum thread once this issue is resolved.

We apologize for your inconvenience.

The issues you have found earlier (filed as WORDSNET-20051) have been fixed in this Aspose.Words for .NET 20.4 update and this Aspose.Words for Java 20.4 update.