update 20250821
This commit is contained in:
@@ -552,11 +552,12 @@ namespace DOCGEN.Klassen
|
||||
|
||||
foreach (clsDocMacro dm in docdata.DocMacros)
|
||||
{
|
||||
|
||||
switch (dm.Name.ToUpper())
|
||||
{
|
||||
case "DOKUMENTSCHUETZEN":
|
||||
document.Protect(ProtectionType.AllowOnlyFormFields, "Australia");
|
||||
document.Protect(ProtectionType.AllowOnlyFormFields, "Australia");
|
||||
//document.Protect(ProtectionType.AllowOnlyFormFields, "Australia");
|
||||
|
||||
break;
|
||||
case "FORMULARAKTUALISIEREN":
|
||||
@@ -628,7 +629,9 @@ namespace DOCGEN.Klassen
|
||||
}
|
||||
else
|
||||
{
|
||||
|
||||
document.Protect(ProtectionType.NoProtection, "Australia");
|
||||
|
||||
if (variable != "")
|
||||
{
|
||||
try
|
||||
@@ -646,6 +649,7 @@ namespace DOCGEN.Klassen
|
||||
paragraph.Items.Insert(1, bookmarkEnd);
|
||||
}
|
||||
document.Protect(ProtectionType.AllowOnlyFormFields, "Australia");
|
||||
|
||||
}
|
||||
}
|
||||
}
|
||||
|
||||
Binary file not shown.
Binary file not shown.
@@ -375,8 +375,8 @@ namespace DOCGEN
|
||||
converter.Settings.UpdateDocumentFields = true;
|
||||
converter.Settings.EnableAlternateChunks = true;
|
||||
converter.Settings.AutoDetectComplexScript = true;
|
||||
converter.Settings.ImageResolution = 96;
|
||||
converter.Settings.ImageQuality = 1;
|
||||
converter.Settings.ImageResolution = 640;
|
||||
converter.Settings.ImageQuality = 100;
|
||||
}
|
||||
//Converts Word document into PDF document
|
||||
using (PdfDocument pdfDocument = converter.ConvertToPDF(wordDocument))
|
||||
|
||||
Binary file not shown.
Binary file not shown.
Binary file not shown.
Reference in New Issue
Block a user