Hello,
Is it possible to call a pdf viewer like pdfObject directly from Vaadin ?
I need to call PDFObject.js with my PDf File, but I don’t find how to do that.
Thanks in advanced for your help.
Bertrand
Hello,
Is it possible to call a pdf viewer like pdfObject directly from Vaadin ?
I need to call PDFObject.js with my PDf File, but I don’t find how to do that.
Thanks in advanced for your help.
Bertrand
Hello,
Integrating Javascript onto Vaadin is not so difficult. Please check following simple and less simple samples :
https://vaadin.com/blog/-/blogs/vaadin-7-loves-javascript-components
https://vaadin.com/wiki/-/wiki/Main/Integrating+a+JavaScript+component
You could also go the lazy way and just open pdf file. Decent browser will render it with pdf.js or some plugin (acrobat or another) without any custom code on you side.
Regards
Hello,
Thanks for you response. I have tried to just open pdfFile aand it works.
but I am asked to use PDFObject.js
How can I call pdfObject ? I search either with word fil or nay other file but I don’t find.
Can you help me ?
thanks,
Bertrand
If you need to force use of this JS library, you will have to create a custom component. The two links I provided you upper in this thread should help you to do so. That’s less work that it seems.
Some others “not-so elegant” ways, but much less vaadin-friendly :
Regards