BookStackApp / BookStack

A platform to create documentation/wiki content built with PHP & Laravel
https://www.bookstackapp.com/
MIT License
15.47k stars 1.94k forks source link

PDF Preview #5067

Closed 247no2 closed 5 months ago

247no2 commented 5 months ago

Describe the feature you'd like

Hello everyone,

Is it possible to upload a PDF document and display it not only as a URL, but also as a preview so that the content of the PDF is displayed on the page?

Currently I can only display a PDF as a link on the page.

Best regards

Describe the benefits this would bring to existing BookStack users

You can see the content of the PDFs directly on the page instead of downloading all the PDFs, over and over again.

Can the goal of this request already be achieved via other means?

Unfortunately no

Have you searched for an existing open/closed issue?

How long have you been using BookStack?

1 to 5 years

Additional context

I am very satisfied with Bookstack

Hallsie commented 5 months ago

I would like this also. It is not very useful to have the pdf download every time.

reddexx commented 5 months ago

https://github.com/BookStackApp/BookStack/issues/3586

Beladric commented 5 months ago

Greetings @247no2,

Have you tried specifying the ALLOWED_IFRAME_SOURCES variable in the .env file and setting the allowed sources from which you want previews? For example, I use this method to preview Google Forms or external PDFs inside my BookStack.

Kind regards, Kilian GOËTZ.

ssddanbrown commented 5 months ago

Thanks for the suggest @247no2, but I'd considered this already covered by existing issues #705 and/or #1270 so I'll therefore close this off.