Closed vitormattos closed 11 months ago
I started to re-implement https://github.com/goper-leo/vue-pdf-editor here: https://github.com/LibreSign/pdf-editor
Target: have a code that can be added to project using npm and go ahead independent of LibreSign.
since was decided to implement a pdf viewer maybe we can close this issue, that make sense @vitormattos ?
Objective of this issue
The current viewer to set visible elements don't work fine and need to be fixed or replaced. Now the PDF is converted to image, and to do this is necessary a lot of steps and have dependencies (ImageMagick with policy to read PDF and TCPDF).
Will be good to have JS native solution to add all types of visible elements (signatures, initials, timestamp flag, form fields, radio groups, checkbox, textarea, etc) assigned to a signer and be possible to persist this data at API side.
Only view
List with PDF viewer that only was identified the functionality to view a file. To add visible elements using the follow projects would be complex.
https://github.com/mozilla/pdf.js The most used PDF viewer
https://github.com/TaTo30/VuePDF Work fine
https://github.com/chenjin01/vue3-pdf-app Demo didn't worked
https://lukenickerson.github.io/pdf-js-vue/examples/ Problems when do zoom, too much slow
https://github.com/randolphtellis/vue3-pdfjs In the demo, when load, don't display the PDF, necessary to trigger zoom
https://github.com/arkokoley/pdfvuer Don't show the limits of page
https://github.com/escape-llc/pdf-component-vue Have not a demo
https://github.com/hrynko/vue-pdf-embed Work fine
https://github.com/hymhub/pdf-vue3 Work fine
Able to add elements
List with PDF viewer that is possible to add visible elements.
Proprietary code
https://pdfjs.express/demo Excellent solution, but is proprietary and trial
https://showcase.apryse.com/pdf-form-build/ Excellent solution, but is proprietary and trial
https://github.com/PDFTron/webviewer-ui Excellent solution, have not a demo. This is the source code of Apryse. But have a problem, the code is open but the license is proprietary and only is possible to use this code if pay the license.
Open source code
https://github.com/slavik0329/pdf-sign Only add elements to page and this lib change the PDF. Sounds that isn't possible to get the position of elements and that to do this will have a big work. Good points:
Bad points:
https://github.com/goper-leo/vue-pdf-editor Maybe will work, but will be necessary implement all components Good points:
Bad points:
https://pdfme.com/ Probably will work, need to do tests Good points:
Bad points:
https://github.com/24eme/signaturepdf Note: This don't sign, is only to add visible elements
Bad points:
https://github.com/saddamcrr7/Custom-PDF-editor-base64-with-annotations Don't open with a PDF at demo but have an interesting UI
Bad points: