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

Free Support Forum - aspose.com

Aspose words support for 'Language tags'

Hello team,

We use the ‘Aspose words for Java’ to generate the word document and convert the word to the pdf version of the document. For our pdf document to be ‘accessible’, we are being asked to set the language tags correctly. In order to achieve that, we tried setting the "proofing language’ to respective language in the word doc (option Review->Language- > Set proofing language) and tried generating the pdf version of the document. For some of the languages, even though the proofing language is set, Aspose could not generate the tags with respective language.

Question 1: Is there any limitation in aspose today with respect to number of languages it can support even if we can tag them correctly in word document using proofing language.

Question 2: Do you have a list of languages that aspose can support today for the pdf document to be accessible if word can support proofing language? For example, I have uploaded a document that has language set up as Hindi in proofing language. But, the output pdf not showing the language tag in Object properties.

Question 3: Words (hindi word- plain text used from google translator) have changed little bit to what was uploaded in word and what came through in PDF.

Language tag issue.docx (1.5 MB)
Input Language.docx (40.1 KB)
Pdf output.pdf (235.5 KB)

@cvsformulary Question 1, Question 2: Aspose.Words do not have limitation about language support. It supports all languages which can be used in Microsoft Word. The absence of the Hindi language tag in PDF output is a bug in Aspose.Words. I have logged your issue as WORDSNET-23493 in our defect tracking system. We will keep you informed and let you know once it is resolved. But for other languages like Amharic I do not see it in the MW GUI. English language is displayed instead.

@cvsformulary Question 3: For proper Hindi text rendering you should use HarfBuzzTextShaperFactory. Please check Enable OpenType Features article.

Do you have a rough timeframe when this bug will be fixed?
For all the other languages, we did not not tag them with the right proofing language in our input document. If it is tagged with right language, your statement is that, aspose.word should handle it. is that correct understanding? we will try to test it out, but, if it does not work, we report the issue again to you so you can fix the bug?

@cvsformulary Unfortunately there are no estimate for WORDSNET-23493 at the moment.
Yes, you understand correctly. Aspose.Words should handle other language tags as well. Please feel free to report if there will be other issues with the language export to the PDF.

Attached couple of documents. We already discussed about Hindi being a bug as aspose could not tag. We tested for more languages today and found Gujarati, Punjabi and Thai languages are not supported as well. I am looking for a definitive language list. Can you please provide the list?

Language compilation for Aspose test.docx (72.5 KB)
Language compilation for Aspose test.pdf (482.0 KB)

Secondly, rendering the language characters is another issue. How do we ensure aspose can convert the language as it is uploaded in word document. As any individual cannot be an expert of all languages, this is another reason why we request Aspose to provide the definitive language list that you support.

@cvsformulary I’ve updated the WORDSNET-23493 with the cases from your document with Khmer, Gujarati, Punjabi and Thai text. Unfortunately we cannot provide the definitive language list for which the described problem with PDF language tag export exists.