mirror of
https://github.com/Tichau/FileConverter.git
synced 2026-11-20 17:42:20 +01:00
Merge pull request #352 from wangweirui/integration
Add the bookmarks in pdf when converting from word file.
This commit is contained in:
1 file changed
+12
-1
@@ -100,7 +100,18 @@ namespace FileConverter.ConversionJobs
|
||||
this.UserState = Properties.Resources.ConversionStateConversion;
|
||||
|
||||
Diagnostics.Debug.Log("Convert word document to pdf.");
|
||||
this.document.ExportAsFixedFormat(this.intermediateFilePath, Word.WdExportFormat.wdExportFormatPDF);
|
||||
// this.document.ExportAsFixedFormat(this.intermediateFilePath, Word.WdExportFormat.wdExportFormatPDF);
|
||||
this.document.ExportAsFixedFormat(this.intermediateFilePath,
|
||||
Word.WdExportFormat.wdExportFormatPDF,
|
||||
false,
|
||||
Word.WdExportOptimizeFor.wdExportOptimizeForPrint,
|
||||
Word.WdExportRange.wdExportAllDocument,
|
||||
1, 1,
|
||||
Word.WdExportItem.wdExportDocumentContent,
|
||||
true,
|
||||
true,
|
||||
Word.WdExportCreateBookmarks.wdExportCreateHeadingBookmarks,
|
||||
true);
|
||||
|
||||
Diagnostics.Debug.Log("Close word document '{0}'.", this.InputFilePath);
|
||||
this.document.Close(Word.WdSaveOptions.wdDoNotSaveChanges);
|
||||
|
||||
Reference in new issue
Block a user