partial implementation of bar code parsing from PDF

This commit is contained in:
2024-02-09 16:02:18 +01:00
parent f41124ced7
commit 84332b81af
6 changed files with 238 additions and 2 deletions

9
app/lib/pdf/pdfjs.ts Normal file
View File

@@ -0,0 +1,9 @@
"use client";
import * as pdfjsModule from 'pdfjs-dist';
const pdfjs = (
'default' in pdfjsModule ? pdfjsModule['default'] : pdfjsModule
) as typeof pdfjsModule;
export default pdfjs;