update 20250406
This commit is contained in:
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
@@ -612,6 +612,7 @@ namespace OnDocOffice
|
||||
switch (ext)
|
||||
{
|
||||
case ".DOCX":
|
||||
|
||||
word.ActiveDocument.SaveAs2(filename, CompatibilityMode: 14, FileFormat: Microsoft.Office.Interop.Word.WdSaveFormat.wdFormatXMLDocument);
|
||||
break;
|
||||
case ".DOCM":
|
||||
@@ -1991,6 +1992,8 @@ namespace OnDocOffice
|
||||
Microsoft.Office.Interop.Word.Application word = new Microsoft.Office.Interop.Word.Application();
|
||||
Microsoft.Office.Interop.Word.Document worddoc = new Microsoft.Office.Interop.Word.Document();
|
||||
worddoc= word.Documents.Open(filename);
|
||||
word.ActiveDocument.EmbedTrueTypeFonts = true;
|
||||
worddoc.EmbedTrueTypeFonts= true;
|
||||
worddoc.ExportAsFixedFormat(outputfile.ToString(), Microsoft.Office.Interop.Word.WdExportFormat.wdExportFormatPDF, false, Microsoft.Office.Interop.Word.WdExportOptimizeFor.wdExportOptimizeForPrint, Microsoft.Office.Interop.Word.WdExportRange.wdExportAllDocument,0,99, Microsoft.Office.Interop.Word.WdExportItem.wdExportDocumentContent, true, true, Microsoft.Office.Interop.Word.WdExportCreateBookmarks.wdExportCreateNoBookmarks, true, true, false);
|
||||
|
||||
worddoc.Close(false);
|
||||
|
||||
Binary file not shown.
Binary file not shown.
Binary file not shown.
Reference in New Issue
Block a user