TaTo30/vue-pdf ? reverse-engineered prompt
Reverse engineered prompt
Build me a Vue 3 PDF viewer component that I can drop into an app and use to show PDFs on the client side.
I want a simple way to load a PDF from a file path or URL and render it in the page, with support for page viewing, text selection, annotations, and editable annotation tools if I turn them on. It should also handle things like XFA forms, non Latin text, and scanned PDFs when I provide the right options. If needed, let me choose between a normal setup that handles the worker automatically and a more minimal version where I configure the PDF worker myself.
Please make it work nicely with Vue 3 single file components, include the basic styles needed for the text and annotation layers, and make sure it’s usable in a real app without a lot of extra setup. If you need to check current pdf.js or Vue details, look up the latest docs online.
Are you gonna build this?
make sure you review the code using coderabbit