Has anyone successfully parsed a PDF file using Weweb?

Hello,

My usecase requires me to use a PDF file uploaded by a user and extract all text from it for further processing. I would prefer this to happen at the client side (text extraction) so I don’t need to worry about file storage. However, I cannot seem to get the NPM package for this to work.

I tried using GitHub - mozilla/pdfjs-dist: Generic build of PDF.js library. with Global property name “pdfjsLib” but it did not work.

Has someone managed to make this library (or any other) work for this usecase?

Here is another one I could (potentially) use: UNPKG - pdf-ts

Hi @pravictor,

PDF parsing is a backend task. WeWeb is a frontend builder. You can use PDF.js for some lightweight PDF viewing or manipulation, but it won’t be a full parsing solution, especially for complex files that contain images, tables, or non-standard formats. To use PDF.js, you need to build a custom Vue.js component. The NPM plugin is only for JS utilities.