fix(core): update

This commit is contained in:
Philipp Kunz 2021-12-01 02:57:57 +01:00
parent 8e63e01840
commit ae65fcdcb5

View File

@ -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();