Skip to content

Commit 7144ed4

Browse files
v25.8.0
1 parent 1beb474 commit 7144ed4

File tree

9 files changed

+27
-6
lines changed

9 files changed

+27
-6
lines changed

AsposePDFforNode.cjs

Lines changed: 2 additions & 2 deletions
Large diffs are not rendered by default.

AsposePDFforNode.mjs

Lines changed: 2 additions & 2 deletions
Large diffs are not rendered by default.

AsposePDFforNode.wasm.gz

192 KB
Binary file not shown.

README.md

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -17,7 +17,7 @@ Add PDF processing, manipulation, and conversion features to your Node.js applic
1717
- **Concatenate**, **split**, or **reorganize** PDF files; delete specific or blank pages.
1818
- **Linearize** PDF documents for web optimization and **optimize** internal structure and resources.
1919
- **Convert** PDF documents to:
20-
- **Office formats:** DOC, DOCX, XLS, XLSX, PPTX
20+
- **Office formats:** DOC, DOCX, XLS, XLSX, PPTX, DOCX with Enhanced Recognition Mode
2121
- **Web formats:** SVG, SVG (ZIP), XPS, EPUB
2222
- **Image formats:** JPEG, PNG, BMP, TIFF, DICOM
2323
- **Other formats:** Grayscale PDF, PDF/A, TeX, TXT, Markdown

example.cjs

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -128,6 +128,10 @@ AsposePdf().then(AsposePdfModule => {
128128
json = AsposePdfModule.AsposePdfToMarkdown(pdf_file, resultdir + "ResultPdfToMarkdown.md");
129129
console.log("26. AsposePdfToMarkdown => %O", json.errorCode == 0 ? json.fileNameResult : json.errorText);
130130

131+
//AsposePdfToDocXEnhanced - Convert a PDF-file to DocX with Enhanced Recognition Mode (fully editable tables and paragraphs)
132+
json = AsposePdfModule.AsposePdfToDocXEnhanced(pdf_file, resultdir + "ResultPdfToDocXEnhanced.docx");
133+
console.log("27. AsposePdfToDocXEnhanced => %O", json.errorCode == 0 ? json.fileNameResult : json.errorText);
134+
131135
/*Convert to PDF*/
132136
console.log("Convert to PDF:");
133137

example.mjs

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -128,6 +128,10 @@ console.log("25. AsposePdfPagesToPDF => %O", json.errorCode == 0 ? json.filesNam
128128
json = AsposePdfModule.AsposePdfToMarkdown(pdf_file, resultdir + "ResultPdfToMarkdown.md");
129129
console.log("26. AsposePdfToMarkdown => %O", json.errorCode == 0 ? json.fileNameResult : json.errorText);
130130

131+
//AsposePdfToDocXEnhanced - Convert a PDF-file to DocX with Enhanced Recognition Mode (fully editable tables and paragraphs)
132+
json = AsposePdfModule.AsposePdfToDocXEnhanced(pdf_file, resultdir + "ResultPdfToDocXEnhanced.docx");
133+
console.log("27. AsposePdfToDocXEnhanced => %O", json.errorCode == 0 ? json.fileNameResult : json.errorText);
134+
131135
/*Convert to PDF*/
132136
console.log("Convert to PDF:");
133137

package.json

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,7 +1,7 @@
11
{
22
"name": "asposepdfnodejs",
33
"description": "Aspose.PDF for Node.js via C++",
4-
"version": "25.7.0",
4+
"version": "25.8.0",
55
"homepage": "https://products.aspose.com/pdf/nodejs-cpp/",
66
"readmeFilename": "README.md",
77
"main": "./AsposePDFforNode.cjs",
Lines changed: 7 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,7 @@
1+
const AsposePdf = require('asposepdfnodejs');
2+
const pdf_file = 'Aspose.pdf';
3+
AsposePdf().then(AsposePdfModule => {
4+
/*Convert a PDF-file to DocX with Enhanced Recognition Mode (fully editable tables and paragraphs) and save the "ResultPDFtoDocXEnhanced.docx"*/
5+
const json = AsposePdfModule.AsposePdfToDocXEnhanced(pdf_file, "ResultPDFtoDocXEnhanced.docx");
6+
console.log("AsposePdfToDocXEnhanced => %O", json.errorCode == 0 ? json.fileNameResult : json.errorText);
7+
});
Lines changed: 6 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,6 @@
1+
import AsposePdf from 'asposepdfnodejs';
2+
const AsposePdfModule = await AsposePdf();
3+
const pdf_file = 'Aspose.pdf';
4+
/*Convert a PDF-file to DocX with Enhanced Recognition Mode (fully editable tables and paragraphs) and save the "ResultPDFtoDocXEnhanced.docx"*/
5+
const json = AsposePdfModule.AsposePdfToDocXEnhanced(pdf_file, "ResultPDFtoDocXEnhanced.docx");
6+
console.log("AsposePdfToDocXEnhanced => %O", json.errorCode == 0 ? json.fileNameResult : json.errorText);

0 commit comments

Comments
 (0)