Thanks for your prompt response.
please take a look at the attached screen shots. the first one is from a Word file and the second one is from a PDF file. You will notice that the word file has hyphenation but PDF does not.
in the following code snippet, doc is a Aspose.Words.Document object.
we create the PDF document with Aspose.Words.Document.
Word:
using (MemoryStream target = new MemoryStream())
{
OoxmlSaveOptions opt = new OoxmlSaveOptions(SaveFormat.Docx);
opt.Compliance = OoxmlCompliance.Iso29500_2008_Transitional;
doc.Save(target, opt);
return target.ToArray();
}
PDF:
using (MemoryStream target = new MemoryStream())
{
doc.Save(target, SaveFormat.Pdf);
return target.ToArray();
}
Now the problem is that, using the word Memory stream, we could get a word file with hyphenation, but using the pdf Memory stream, we get the pdf file without hyphenation.
Could we solve it now?