PDF conversion issue with Dubai Font

Hello,

We are facing issue while converting word document with “Dubai font” to pdf using aspose java library. Please refer the attached with sample of original word document and wrongly rendered pdf.

https://www.dubaifont.com/download

@manoj.kg,

Thanks for your inquiry. Please ZIP and attach your input Word document here for testing. We will investigate the issue on our side and provide you more information.

Please share the Java version that you are using at your end. Thanks for your cooperation.

the word document sent already. Kindly expedite.

Thanks.

@manoj.kg,

Thanks for your inquiry. Unfortunately, we have not found the input Word document in this forum thread. Please ZIP and attach it here for testing. Thanks for your cooperation.

Please check this image about attaching file. upload file.png (6.9 KB)

Aspose issue.zip (220.3 KB)
Dear Tahir,

The file is attached, kindly expedite

Thanks

Manoj

@manoj.kg,

Thanks for sharing the detail. 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-16287. You will be notified via this forum thread once this issue is resolved.

We apologize for your inconvenience.

Hi Tahir, Please update the status. We are facing the issue in production. We need a solution for this since here all government communication should be in “Dubai” font.

Thanks

@manoj.kg,

Thanks for your inquiry. You issue is related to advanced typography feature (WORDSNET-6633) which is not supported by Aspose.Words. We regret to share with you that this feature has been postponed. We will inform you via this forum thread once there are any further developments.

We apologize for your inconvenience.

A post was merged into an existing topic: Issue with Dubai Arabic font

A post was split to a new topic: Documnent conversion issue with Dubai Font

Any update on this please?

@sumeetm

We have already answered your query here in this post. Please follow that thread for further proceedings.

A post was split to a new topic: Conversion issue with Dubai Font

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

Hi Aspose team,

I and Manoj and Ekta is in same team. We tried aspose.words for java 20.8 and still having same issue. attached the file for your reference, PDF file is converted today also highlighted some of identified characters.aspose_conversion.zip (522.2 KB)

@yalshaiba

We suggest you please read the following article about enabling the open type feature.
Enable OpenType Features

Please add the following line of code before saving the document to PDF. Hope this helps you

doc.getLayoutOptions().setTextShaperFactory(com.aspose.words.shaping.harfbuzz.HarfBuzzTextShaperFactory.getInstance());

// Render the document to PDF format
doc.save(dataDir + "OpenType.Document.pdf");

Thanks Tahir,
Please let us know where we can find com.aspose.words.shapharfbuzz class. Let us know the download path for the jar. We downloaded aspose.words for java 20.8 and included in our code.

please let us know from where we can download class for “com.aspose.words.shaping.harfbuzz” as it is not available with aspose for word 20.8

@yalshaiba

Pease accept my apologies for late response. Please download aspose-words-20.8-shaping-harfbuzz-plugin.jar from here:

Moreover, we have added automation code in the Main Maven POM file. When you run this POM file, it will automatically choose the correct JDK version and also download the plugin (if needed) for advanced HarfBuzz Shaper based Typography (note that this only works for windows). Hope, this helps.

In case the problem still remains, please also try the following POM.XML file:

<?xml version="1.0" encoding="UTF-8"?>
<project xmlns="http://maven.apache.org/POM/4.0.0"
         xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance"
         xsi:schemaLocation="http://maven.apache.org/POM/4.0.0 http://maven.apache.org/xsd/maven-4.0.0.xsd">
    <modelVersion>4.0.0</modelVersion>

    <groupId>com.aspose</groupId>
    <artifactId>AsposeWordsMavenTest</artifactId>
    <version>1.0-SNAPSHOT</version>

    <repositories>
        <repository>
            <id>AsposeJavaAPI</id>
            <name>Aspose Java API</name>
            <url>https://repository.aspose.com/repo/</url>
        </repository>
    </repositories>
<dependencies>
    <dependency>
        <groupId>com.aspose</groupId>
        <artifactId>aspose-words</artifactId>
        <version>20.8</version>
        <classifier>jdk17</classifier>
    </dependency>
    <dependency>
        <groupId>com.aspose</groupId>
        <artifactId>aspose-words</artifactId>
        <version>20.8</version>
        <classifier>javadoc</classifier>
    </dependency>

    <dependency>
        <groupId>com.aspose</groupId>
        <artifactId>aspose-words</artifactId>
        <version>20.8</version>
        <classifier>shaping-harfbuzz-plugin</classifier>
    </dependency>
</dependencies>
</project>

Thanks Tahir, We tried this solution. Still found some characters are not inline means there are still few words which meaning does not change but looks different. Please find attached document with highlighted letters test123_convert_highlighted.pdf (145.9 KB)test123_convert.zip (245.3 KB)

.