Skip to content

Commit 589df00

Browse files
Aspose.PDF for Go via C++: SaveDocXEnhanced
1 parent 500e6bf commit 589df00

File tree

3 files changed

+45
-0
lines changed

3 files changed

+45
-0
lines changed

english/go-cpp/_index.md

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -39,6 +39,7 @@ type Document struct {
3939
| [SaveNUp](./convert/savenup/) | Convert and save the previously opened PDF-document as N-Up PDF-document. |
4040
| [SaveMarkdown](./convert/savemarkdown/) | Convert and save the previously opened PDF-document as Markdown-document. |
4141
| [SaveTiff](./convert/savetiff/) | Convert and save the previously opened PDF-document as Tiff-document. |
42+
| [SaveDocXEnhanced](./convert/savedocxenhanced/) | Convert and save the previously opened PDF-document as DocX-document with Enhanced Recognition Mode (fully editable tables and paragraphs). |
4243
| [ExportFdf](./convert/exportfdf/) | Export from the previously opened PDF-document with AcroForm to FDF-document. |
4344
| [ExportXfdf](./convert/exportxfdf/) | Export from the previously opened PDF-document with AcroForm to XFDF-document. |
4445
| [ExportXml](./convert/exportxml/) | Export from the previously opened PDF-document with AcroForm to XML-document. |

english/go-cpp/convert/_index.md

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -22,6 +22,7 @@ url: /go-cpp/convert/
2222
| [SaveNUp](./savenup/) | Convert and save the previously opened PDF-document as N-Up PDF-document. |
2323
| [SaveMarkdown](./savemarkdown/) | Convert and save the previously opened PDF-document as Markdown-document. |
2424
| [SaveTiff](./savetiff/) | Convert and save the previously opened PDF-document as Tiff-document. |
25+
| [SaveDocXEnhanced](./savedocxenhanced/) | Convert and save the previously opened PDF-document as DocX-document with Enhanced Recognition Mode (fully editable tables and paragraphs). |
2526
| [ExportFdf](./exportfdf/) | Export from the previously opened PDF-document with AcroForm to FDF-document. |
2627
| [ExportXfdf](./exportxfdf/) | Export from the previously opened PDF-document with AcroForm to XFDF-document. |
2728
| [ExportXml](./exportxml/) | Export from the previously opened PDF-document with AcroForm to XML-document. |
Lines changed: 43 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,43 @@
1+
---
2+
title: "SaveDocXEnhanced"
3+
second_title: Aspose.PDF for Go via C++
4+
description: "Convert and save the previously opened PDF-document as DocX-document with Enhanced Recognition Mode (fully editable tables and paragraphs)."
5+
type: docs
6+
url: /go-cpp/convert/savedocxenhanced/
7+
---
8+
9+
_Convert and save the previously opened PDF-document as DocX-document with Enhanced Recognition Mode (fully editable tables and paragraphs)._
10+
11+
```go
12+
func (document *Document) SaveDocXEnhanced(filename string) error
13+
```
14+
15+
**Parameters**:
16+
* **filename** - new filename
17+
18+
**Return**:
19+
* **error** - contains an error or nil if absent
20+
21+
22+
**Example**:
23+
```go
24+
package main
25+
26+
import "github.com/aspose-pdf/aspose-pdf-go-cpp"
27+
import "log"
28+
29+
func main() {
30+
// Open(filename string) opens a PDF-document with filename
31+
pdf, err := asposepdf.Open("sample.pdf")
32+
if err != nil {
33+
log.Fatal(err)
34+
}
35+
// SaveDocX(filename string) saves previously opened PDF-document as Enhanced Recognition Mode DocX-document with filename
36+
err = pdf.SaveDocXEnhanced("sampleEnhanced.docx")
37+
if err != nil {
38+
log.Fatal(err)
39+
}
40+
// Close() releases allocated resources for PDF-document
41+
defer pdf.Close()
42+
}
43+
```

0 commit comments

Comments
 (0)