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

Free Support Forum - aspose.com

Aspose-pdf convert html to pdf but Arabic not 100% correct

I tested convert html to pdf and find Arabic not 100% correct.

Testing code: Convert HTML to PDF

Testing Environment and Library:

MacOS Big Sur 11.5.2A



Moreover, Does Aspose has a clear list of languages 100% correct about convert from html to PDF?


Can you please share the source and output file with snapshots of issues so that we may try to reproduce the same on our end. Aspose.PDF will render every language character as long as supported fonts are installed in the system.

this our code:

package test.fileconvert;

import com.aspose.pdf.Document;
import com.aspose.pdf.HtmlLoadOptions;

import java.nio.file.Paths;
import java.util.Locale;

public class ConvertHTMLtoPDF {

public static void main(String[] ags) throws Exception {
    String filePath = "./ArabicTest";
    Locale.setDefault(new Locale("en-us"));

private static void ConvertHTMLtoPDF_Simple(String filePath) {
    // Create a HTML LoadOptions
    HtmlLoadOptions options = new HtmlLoadOptions();

    // Initialize document object
    String htmlFileName = Paths.get(filePath, "Arabic.html").toString();
    Document document = new Document(htmlFileName, options);

    // Save output PDF document
    document.save(Paths.get(filePath, "HTMLtoPDF.pdf").toString());



this html file and result pdf file:
testArabic.zip (152.1 KB)


I request you to share the files again because attached ZIP file is not being extracted.

please have a try with this file
testArabic.zip (152.4 KB)


This looks like a problem related to missing fonts. I request you to install related fonts in your system and share your feedback.

I changed my html to use “Arial Unicode MS” and it support for Arabic, but pdf is still not right. Please help to check, many thanks.
testNew.zip (158.5 KB)


A ticket with ID PDFJAVA-40787 has been created in our issue tracking system to further investigate the issue on our end. This thread has been linked with the issue so that you may be notified once the issue will be fixed.

Do we have any update on this ticket or do we have any plan?


Please note that it was recently logged in free support model and will be investigated and resolved on a first come first serve basis. We will surely inform you as soon as we make some definite progress towards its resolution. Please be patient and spare us some time.

any solution for this problem?


At present the issue is still unresolved. We request for your patience and will share feedback with you as soon as the issue will be fixed.

I think I have a similar problem, but I’m not allowed to download the attached files. Can you try to describe what the issue is so I don’t have to create a new issue?


The issue was related to the RTL Language (Arabic) not showing in correct fashion. If you have similar issue while using the latest release of the API, you can please share your sample files for our reference. We will test the scenario in our environment and address it accordingly.