Support intro
Sorry to hear you’re facing problems. 
The community help forum (help.nextcloud.com) is for home and non-enterprise users. Support is provided by other community members on a best effort / “as available” basis. All of those responding are volunteering their time to help you.
If you’re using Nextcloud in a business/critical setting, paid and SLA-based support services can be accessed via portal.nextcloud.com where Nextcloud engineers can help ensure your business keeps running smoothly.
Getting help
In order to help you as efficiently (and quickly!) as possible, please fill in as much of the below requested information as you can.
Before clicking submit: Please check if your query is already addressed via the following resources:
- Official documentation (searchable and regularly updated)
- How to topics and FAQs
- Forum search
(Utilizing these existing resources is typically faster. It also helps reduce the load on our generous volunteers while elevating the signal to noise ratio of the forums otherwise arising from the same queries being posted repeatedly).
The Basics
- Nextcloud Server version (e.g., 29.x.x)

- 31
- Operating system and version (e.g., Ubuntu 24.04)

- 24.04
- Web server and version (e.g, Apache 2.4.25):
Apache
- Reverse proxy and version _(e.g. nginx 1.27.2)
None
- PHP version (e.g, 8.3):
replace me
- Is this the first time you’ve seen this error? (Yes / No):
Yes
- When did this problem seem to first start?
Since Nextcloud version 30
- Installation method (e.g. AlO, NCP, Bare Metal/Archive, etc.)
replace me
- Are you using CloudfIare, mod_security, or similar? (Yes / No)
No
Summary of the issue you are facing:
The viewing of pdf files in a public share link was smooth on or before version 29, which was a very useful feature for sharing pdf by hiding download in public share link. When a pdf file was shared by public link, the viewer of the link will open up a pdf viewer and the download option was disabled/hidden.
I guess many users used to this useful function to share with external parties, when they want to discourage download and redistribution of some pdf files because of copyright/confidentiality concerns.
However, after updating to Nextcloud to version 30, the pdf share link no longer functions properly, the linked share does not open pdf viewer, instead, it forced the opening of Nextcloud office to just view a simple pdf. The Nextcloud office takes a much longer time (sometimes 8 seconds or even more) to open the pdf to view.
The problem:
-
Since loading Nextcloud (collabora) office is a very slow process, it downgraded user experience, it took a long time to open a pdf with a just a few pages to view. For large pdf files with 30 pages or more, the time needed for rendering is very long (even a minute). Comparing with the previous approach that only calls pdf viewer to view the pdf, it took just 2-3 seconds with hiding the download button function.
-
The processing of viewing pdf files becomes very CPU intensive and slow.
-
There is no way to disallow downloading by hiding the download button for pdf files, it was a very useful feature to protect copyright by discouraging download.
-
If forced administrator to install Nextcloud office/collabora office to simply share a pdf file for viewing without downloading.
Suggestion: Restore the linked share of viewing pdf by the pdf viewer, and disable download button at the same time. Just use the previous logic:
Create an public shared link for a pdf file, disable download and hide download button → Allow receivers of the link to open the link and then call pdf viewer → the receiver can read the pdf smoothly in the pdf viewer, but unable to find a way to directly download the file
Related posts:
Steps to replicate it (hint: details matter!):
-
Create a public share link of a pdf file, and select Hide Download in custom permission
-
Open the public share link by a user without an account in a browser.
-
The public linked pdf file will only call Nextcloud office to open, not the original pdf viewer. The user takes a long time to open especially with large pdf files.
Thank you for your attention.