Hi Aspose team,
Hi Daniel,
Hi Aspose team,
is there meanwhile a status update to this issue? I also noticed that the attachments seem to got lost during the forumn move, should I reupload them?
Kind regards,
Daniel
Thanks for your inquiry. There is no need to share the document. Currently, your issue is under analysis phase. Once our product team completes the analysis of your issue, we will then be able to provide you an estimate.
Thanks for your patience and understanding.
Thanks for your patience. Our product team has investigated the issue and found it is not a bug. The issue occurs because hyphenation dictionary is not registered in code. Please note the text in the document is formatted as English and French, so both dictionaries en-US and fr-Fr should be registered in order to hyphenate the document. Please check following code snippet for reference, it will help you to resolve the issue. Please also find attached sample output and dictionaries for reference.
15393.AW.Hyphenated.zip (96.7 KB)
Hyphenation.RegisterDictionary("en-US", myDir + "hyph_en_US.dic");
Hyphenation.RegisterDictionary("fr-FR", myDir + "hyph_fr.dic");
try
{
var doc = new Document(myDir + "document.docx");
doc.Save(myDir + "document.out.pdf");
}
finally
{
Hyphenation.UnregisterDictionary("en-US");
Hyphenation.UnregisterDictionary("fr-FR");
}
Hi Tilal,
thanks for your reply. I can confirm that code you porovided solves the issue. May I ask you where I can get the hyphen dictionaries from? With a bit of google I found http://www.textcontrol.com/en_US/downloads/dictionaries/ which offers dictionaries for a lot of languages as download. But using their dic files I got a different result with some hyphenatings missing. Do you can provide any source for that?
As we offer our product in up to 15 languages I would prefer using the dic files from a source that is quite consistent with the hyphening word itself does.
As Germany is our main area I will do some testing with other documents and the source I posted for the dic files to evaluate at least their German dic files…
Kind regards,
Daniel
Thanks for your feedback. Please try dictionaries from following OpenOffice link. You may also google and can get number of other options on web.