update 20250721
This commit is contained in:
@@ -348,8 +348,10 @@ namespace DOCGEN
|
||||
//Dokument erstellen
|
||||
var streamword = new MemoryStream(Convert.FromBase64String(document));
|
||||
WordDocument wordDocument = new WordDocument(streamword, Syncfusion.DocIO.FormatType.Automatic);
|
||||
wordDocument.Properties.Hyphenation.AutoHyphenation = true;
|
||||
//FileStream dictornyrystream = new FileStream(@"E:\Software-Projekte\OnDoc\OnDoc\Client\bin\Debug\hyph_de_CH.dic", FileMode.Open);
|
||||
//Hyphenator.Dictionaries.Add("de-CH", dictornyrystream);
|
||||
|
||||
|
||||
|
||||
// Keine Parameter / Dokument als PDF konvertieren
|
||||
if (pdfparameters == null)
|
||||
@@ -380,6 +382,7 @@ namespace DOCGEN
|
||||
pdfDocument.Save(outputStream);
|
||||
byte[] bytes;
|
||||
bytes = outputStream.ToArray();
|
||||
//dictornyrystream.Close();
|
||||
return Convert.ToBase64String(bytes);
|
||||
}
|
||||
};
|
||||
|
||||
Reference in New Issue
Block a user