update 20250727

This commit is contained in:
Stefan Hutter
2025-07-27 13:24:50 +02:00
parent cb8acfea57
commit 2237be483d
192 changed files with 23435 additions and 107 deletions

View File

@@ -28,6 +28,8 @@ using Syncfusion.XlsIO.Parser.Biff_Records;
using System.Buffers.Text;
using Syncfusion.ExcelToPdfConverter;
using OnDocOffice;
using System.Globalization;
using System.Threading;
namespace DOCGEN
@@ -349,6 +351,7 @@ namespace DOCGEN
var streamword = new MemoryStream(Convert.FromBase64String(document));
WordDocument wordDocument = new WordDocument(streamword, Syncfusion.DocIO.FormatType.Automatic);
wordDocument.Properties.Hyphenation.AutoHyphenation = true;
wordDocument.UpdateDocumentFields();
//FileStream dictornyrystream = new FileStream(@"E:\Software-Projekte\OnDoc\OnDoc\Client\bin\Debug\hyph_de_CH.dic", FileMode.Open);
//Hyphenator.Dictionaries.Add("de-CH", dictornyrystream);
@@ -361,7 +364,7 @@ namespace DOCGEN
converter.Settings.EmbedFonts = true;
if (useseettings)
{
converter.Settings.UpdateDocumentFields = false;
converter.Settings.UpdateDocumentFields = true;
converter.Settings.EnableAlternateChunks = true;
converter.Settings.AutoDetectComplexScript = true;
converter.Settings.ImageResolution = 640;
@@ -369,7 +372,7 @@ namespace DOCGEN
}
else
{
converter.Settings.UpdateDocumentFields = false;
converter.Settings.UpdateDocumentFields = true;
converter.Settings.EnableAlternateChunks = true;
converter.Settings.AutoDetectComplexScript = true;
converter.Settings.ImageResolution = 96;
@@ -532,10 +535,10 @@ namespace DOCGEN
//Initialize ExcelToPdfConverter
ExcelToPdfConverter converter = new ExcelToPdfConverter(workbook);
ExcelToPdfConverterSettings settings = new ExcelToPdfConverterSettings();
Thread.CurrentThread.CurrentCulture = new CultureInfo("de-CH");
settings.EmbedFonts = true;
//Initialize PDF document
PdfDocument pdfDocument = new PdfDocument();