This commit is contained in:
2026-10-08 18:18:21 +08:00
parent 9cc1ff546c
commit 1e3095c05e
1911 changed files with 349551 additions and 0 deletions
@@ -0,0 +1,14 @@
const PDF = require('./');
const fs = require('fs');
let PDF_FILE = './test/data/01-valid.pdf';
let dataBuffer = fs.readFileSync('./test/data/01-valid.pdf');
PDF(dataBuffer).then(function(data) {
fs.writeFileSync(`${PDF_FILE}.txt`, data.text, {
encoding: 'utf8',
flag: 'w'
});
debugger;
}).catch(function(err) {
debugger;
});