Convert .docx to .pdf and preserve or apply hyphenation

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,


Thanks for your inquiry. As your inquiry pertains to Aspose.Words, so I am moving it to related forum.

There my colleagues from Aspose.Words will guide you accordingly.

Best Regards,

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,