fix(core): update
This commit is contained in:
parent
8e63e01840
commit
ae65fcdcb5
@ -12,7 +12,8 @@ tap.test('should ocr a pdfBuffer', async () => {
|
|||||||
const smartfile = await import('@pushrocks/smartfile');
|
const smartfile = await import('@pushrocks/smartfile');
|
||||||
const pdfBuffer = (await smartfile.Smartfile.fromFilePath('./test/demo_without_textlayer.pdf'))
|
const pdfBuffer = (await smartfile.Smartfile.fromFilePath('./test/demo_without_textlayer.pdf'))
|
||||||
.contentBuffer;
|
.contentBuffer;
|
||||||
testOcrInstance.processPdfBuffer(pdfBuffer);
|
const resultBuffer = await testOcrInstance.processPdfBuffer(pdfBuffer);
|
||||||
|
console.log(resultBuffer);
|
||||||
});
|
});
|
||||||
|
|
||||||
tap.start();
|
tap.start();
|
||||||
|
Loading…
Reference in New Issue
Block a user