how to convert word to pdf along with book marks?

7 ビュー (過去 30 日間)
Ajay krishna Vasanthakumar
Ajay krishna Vasanthakumar 2020 年 9 月 29 日
Hello,
i need to convert a word document to pdf along with bookmark in same hierarchical order.
i used "invoke(doc,'ExportAsFixedFormat',pdf_filename,17,0,1,0,0,0,0,1,1,2,1)" create bookmark in pdf from word.
the result was i got the pdf with bookmarks but not in same hierarchical order.
can someone help me out ?
Thanks in advance.

採用された回答

Ajay krishna Vasanthakumar
Ajay krishna Vasanthakumar 2020 年 9 月 30 日
saving the file in default .docx and exporting it to pdf will preserve the same hierarchical bookmarks.
invoke (doc, 'SaveAs', fileSpec); - save the document in .docx.
invoke(doc,'ExportAsFixedFormat',pdf_filename,17,0,1,0,0,0,0,1,1,2,1) - export to pdf with bookmarks.
Hope this will be helpful to someone.

その他の回答 (0 件)

カテゴリ

Help Center および File ExchangeEnvironment and Settings についてさらに検索

タグ

Community Treasure Hunt

Find the treasures in MATLAB Central and discover how the community can help you!

Start Hunting!

Translated by