Hi,
I need to convert Word documens to Pdf and preserve or apply hyphenation.
How can I do this?
I am using the Aspose.Words 14.3.
Kind regards,
Lutz Krause
Hi,
I need to convert Word documens to Pdf and preserve or apply hyphenation.
How can I do this?
I am using the Aspose.Words 14.3.
Kind regards,
Lutz Krause
Hi Lutz,
Hi Scott,
Thanks for your inquiry. Aspose.Words’ layout engine now supports Hyphenation. However, to be able to use this feature, you must register a hyphenation dictionary specific to your language as follows:
Document doc = new Document("C:\Temp\test.doc");
Hyphenation.registerDictionary("en-US", "C:\HyphDic\hyph_en_US.dic");
//Hyphenation.RegisterDictionary("de-CH", @"C:\HyphDic\hyph_de_CH.dic");
doc.save("C:\Temp\out.pdf");
I hope, this helps.
PS: a few such dictionaries can be found here
Best regards,