update 20260326
This commit is contained in:
@@ -1,33 +1,34 @@
|
||||
using Database;
|
||||
using DOCGEN.Klassen;
|
||||
using Helper;
|
||||
using Model;
|
||||
using OnDocOffice;
|
||||
using SkiaSharp;
|
||||
using Syncfusion.DocIO;
|
||||
using Syncfusion.DocIO.DLS;
|
||||
using Syncfusion.ExcelToPdfConverter;
|
||||
using Syncfusion.Pdf;
|
||||
using Syncfusion.Pdf.Parsing;
|
||||
using Syncfusion.XlsIO;
|
||||
using Syncfusion.XlsIO.Parser.Biff_Records;
|
||||
using System;
|
||||
using System.Buffers.Text;
|
||||
using System.Collections.Generic;
|
||||
using System.Data;
|
||||
using System.Globalization;
|
||||
using System.IO;
|
||||
using System.Linq;
|
||||
using System.Net;
|
||||
using System.Net.Http;
|
||||
using System.Security.Cryptography;
|
||||
using System.Text;
|
||||
using System.Threading.Tasks;
|
||||
using Syncfusion.DocIO;
|
||||
using Syncfusion.Pdf;
|
||||
using Syncfusion.XlsIO;
|
||||
using static System.Net.Mime.MediaTypeNames;
|
||||
using Syncfusion.Pdf.Parsing;
|
||||
using System.Xml.Linq;
|
||||
using Model;
|
||||
using SkiaSharp;
|
||||
using System.Web;
|
||||
using System.Net;
|
||||
using System.Security.Policy;
|
||||
using DOCGEN.Klassen;
|
||||
using System.Data;
|
||||
using Helper;
|
||||
using Syncfusion.XlsIO.Parser.Biff_Records;
|
||||
using System.Buffers.Text;
|
||||
using Syncfusion.ExcelToPdfConverter;
|
||||
using OnDocOffice;
|
||||
using System.Globalization;
|
||||
using System.Text;
|
||||
using System.Threading;
|
||||
using System.Threading.Tasks;
|
||||
using System.Web;
|
||||
using System.Xml.Linq;
|
||||
using static System.Net.Mime.MediaTypeNames;
|
||||
using static System.Net.WebRequestMethods;
|
||||
|
||||
|
||||
namespace DOCGEN
|
||||
@@ -356,7 +357,7 @@ namespace DOCGEN
|
||||
|
||||
public string Convert_Word_To_PDF(string document, DataTable pdfparameters = null, bool useseettings = false , bool updatefields=true)
|
||||
{
|
||||
|
||||
|
||||
|
||||
//Dokument erstellen
|
||||
var streamword = new MemoryStream(Convert.FromBase64String(document));
|
||||
@@ -373,6 +374,7 @@ namespace DOCGEN
|
||||
using (Syncfusion.DocToPDFConverter.DocToPDFConverter converter = new Syncfusion.DocToPDFConverter.DocToPDFConverter())
|
||||
{
|
||||
converter.Settings.EmbedFonts = true;
|
||||
// converter.Settings.OptimizeIdenticalImages = false;
|
||||
if (useseettings)
|
||||
{
|
||||
converter.Settings.UpdateDocumentFields = updatefields;
|
||||
@@ -381,6 +383,7 @@ namespace DOCGEN
|
||||
converter.Settings.ImageResolution = 640;
|
||||
converter.Settings.ImageQuality = 100;
|
||||
converter.Settings.PreserveFormFields = true;
|
||||
|
||||
}
|
||||
else
|
||||
{
|
||||
@@ -390,6 +393,7 @@ namespace DOCGEN
|
||||
converter.Settings.ImageResolution = 640;
|
||||
converter.Settings.ImageQuality = 100;
|
||||
|
||||
|
||||
//foreach (WSection section in wordDocument.Sections)
|
||||
//{
|
||||
// section.PageSetup.PageSize = PageSize.A4;
|
||||
|
||||
Reference in New Issue
Block a user