Skip to content

Commit 500e6bf

Browse files
Aspose.PDF for Rust via C++: save_docx_enhanced
1 parent 460d04b commit 500e6bf

File tree

3 files changed

+39
-0
lines changed

3 files changed

+39
-0
lines changed

english/rust-cpp/_index.md

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -38,6 +38,7 @@ pub struct Document { /* private fields */ }
3838
| [save_n_up](./convert/save_n_up/) | Convert and save the previously opened PDF-document as N-Up PDF-document. |
3939
| [save_markdown](./convert/save_markdown/) | Convert and save the previously opened PDF-document as Markdown-document. |
4040
| [save_tiff](./convert/save_tiff/) | Convert and save the previously opened PDF-document as Tiff-document. |
41+
| [save_docx_enhanced](./convert/save_docx_enhanced/) | Convert and save the previously opened PDF-document as DocX-document with Enhanced Recognition Mode (fully editable tables and paragraphs). |
4142
| [export_fdf](./convert/export_fdf/) | Export from the previously opened PDF-document with AcroForm to FDF-document. |
4243
| [export_xfdf](./convert/export_xfdf/) | Export from the previously opened PDF-document with AcroForm to XFDF-document. |
4344
| [export_xml](./convert/export_xml/) | Export from the previously opened PDF-document with AcroForm to XML-document. |

english/rust-cpp/convert/_index.md

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -22,6 +22,7 @@ url: /rust-cpp/convert/
2222
| [save_n_up](./save_n_up/) | Convert and save the previously opened PDF-document as N-Up PDF-document. |
2323
| [save_markdown](./save_markdown/) | Convert and save the previously opened PDF-document as Markdown-document. |
2424
| [save_tiff](./save_tiff/) | Convert and save the previously opened PDF-document as Tiff-document. |
25+
| [save_docx_enhanced](./save_docx_enhanced/) | Convert and save the previously opened PDF-document as DocX-document with Enhanced Recognition Mode (fully editable tables and paragraphs). |
2526
| [export_fdf](./export_fdf/) | Export from the previously opened PDF-document with AcroForm to FDF-document. |
2627
| [export_xfdf](./export_xfdf/) | Export from the previously opened PDF-document with AcroForm to XFDF-document. |
2728
| [export_xml](./export_xml/) | Export from the previously opened PDF-document with AcroForm to XML-document. |
Lines changed: 37 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,37 @@
1+
---
2+
title: "save_docx_enhanced"
3+
second_title: Aspose.PDF for Rust via C++
4+
description: "Converts and saves the previously opened PDF-document as a DOCX-document with Enhanced Recognition Mode (fully editable tables and paragraphs)."
5+
type: docs
6+
url: /rust-cpp/convert/save_docx_enhanced/
7+
---
8+
9+
_Converts and saves the previously opened PDF-document as a DOCX-document with Enhanced Recognition Mode (fully editable tables and paragraphs)._
10+
11+
```rust
12+
pub fn save_docx_enhanced(&self, filename: &str) -> Result<(), PdfError>
13+
```
14+
15+
**Arguments**
16+
* **filename** - the path to the output file
17+
18+
**Returns**
19+
* **Ok(())** - if the operation succeeds
20+
* **Err(PdfError)** - if the operation fails
21+
22+
**Example**
23+
24+
```rust
25+
use asposepdf::Document;
26+
27+
fn main() -> Result<(), Box<dyn std::error::Error>> {
28+
// Open a PDF-document with filename
29+
let pdf = Document::open("sample.pdf")?;
30+
31+
// Convert and save the previously opened PDF-document as DocX-document with Enhanced Recognition Mode (fully editable tables and paragraphs)
32+
pdf.save_docx_enhanced("sample_enhanced.docx")?;
33+
34+
Ok(())
35+
}
36+
37+
```

0 commit comments

Comments
 (0)