How Can I display PDF Files in a page item?

On a page I show a list of the books that I have stored in the database, and each book in the list has a “Read Book” button. How Can I do so that when I click on each button the corresponding pdf file is opened so that people can read the book but I do not want people to have the option to download or print it? I would like to use the pdf viewer app to open the pdf files on my website, but I do not know how.

Hi!

You can use this to setup your pdf viewer app to your preference .

Best of luck!
Doron. :slight_smile:

Hi, thanks for your answer.
I have seen the PDF Viewer information before, but the question is: How can I show any pdf file by clicking on its “Read Book” button. with PDF Viewer I can only show them if I select or upload the pdf file manually. I have the pdf files in the wix database, I just want to click on any button, open the pdf document on the screen, I can read it but not download or print it. It does not matter if I can not use pdf viewer for that. Is there any other way? The idea is that it be done automatically.

Unfortunately right now the PDF Viewer app is the only way to view PDF files.
Feel free to add a feature request here .

Doron.

ok, thank you for your suggestions!

Hi Nc B Alcala

I have the same request and temporary you can try this - https://www.wix.com/code/home/forum/questions-answers/how-to-display-pdf-from-database-in-table-database-element

It’s now 2021. Can Wix still not display a PDF file stored on a collection?

1 Like

You can use this app to display PDF dynamically: PDF: View with 3D Flip Effects | Wix App Market | Wix.com

How to use the widget’s API: https://support.certifiedcode.us/en/articles/8936772-working-on-velo-with-pdf-view-with-3d-flip-effects-app