Update 20250206

This commit is contained in:
Stefan Hutter committed 2025-02-06 22:23:45 +01:00
1 parent 678e0622fd
commit c316b40507
87 files changed
+995 -576

No files matched your search

+2 -2
View File
@@ -213,7 +213,7 @@ namespace DOCGEN.Klassen
signature.LineFormat.Color= Color.White;
signature.WrapFormat.AllowOverlap = true;
signature.VerticalPosition = signature.VerticalPosition - 50;
signature.VerticalPosition = signature.VerticalPosition - 55;
//signature.HorizontalPosition = signature.HorizontalPosition + 200;
@@ -384,7 +384,7 @@ namespace DOCGEN.Klassen
if (dv.TMBeginn.ToString().Contains("VornameNameRechts"))
{
string unterschrift = "";
if (img_UL != "") { unterschrift = img_UL.ToString(); }
if (img_UL != "") { unterschrift = img_UR.ToString(); }
else
{
unterschrift = Newtonsoft.Json.JsonConvert.DeserializeObject<string>(get_unterschrift(docdata.Unterschrift_Rechts));
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
+12 -2
View File
@@ -297,8 +297,8 @@ namespace DOCGEN
//Dokument erstellen
var streamword = new MemoryStream(Convert.FromBase64String(document));
WordDocument wordDocument = new WordDocument(streamword, Syncfusion.DocIO.FormatType.Automatic);
// Keine Parameter / Dokument als PDF konvertieren
if (pdfparameters == null)
@@ -308,9 +308,19 @@ namespace DOCGEN
converter.Settings.EmbedFonts = true;
if (useseettings)
{
converter.Settings.UpdateDocumentFields = true;
converter.Settings.UpdateDocumentFields = false;
converter.Settings.EnableAlternateChunks = true;
converter.Settings.AutoDetectComplexScript = true;
converter.Settings.ImageResolution = 640;
converter.Settings.ImageQuality = 100;
}
else
{
converter.Settings.UpdateDocumentFields = false;
converter.Settings.EnableAlternateChunks = true;
converter.Settings.AutoDetectComplexScript = true;
converter.Settings.ImageResolution = 96;
converter.Settings.ImageQuality = 1;
}
//Converts Word document into PDF document
using (PdfDocument pdfDocument = converter.ConvertToPDF(wordDocument))
Binary file not shown.
Binary file not shown.