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)