nextcloud / nextcloud/files_pdfviewer

PDF viewer sometimes struggles with gradients

Open
#1,233 0 comments 0 reactions 0 assignees View on GitHub

Nobody has claimed this yet.

0. Needs triage bug
Dominant language
JavaScript
Stars
108
Forks
61
Avg merge
2d 9h
Merged PRs (30d)
29

Description


Steps to reproduce
  1. Open a PDF with a gradient in it
Expected behaviour
Image
Actual behaviour
Image
Server configuration

Web server: Nginx (openresty)

Database: MySQL

PHP version: 8.3

Nextcloud version: 30.0.10 (Hub 9)

List of activated apps Enabled: - activity: 3.0.0 - admin_audit: 1.20.0 - bruteforcesettings: 3.0.0 - calendar: 5.3.4 - circles: 30.0.0 - cloud_federation_api: 1.13.0 - comments: 1.20.1 - contacts: 7.1.4 - contactsinteraction: 1.11.0 - dashboard: 7.10.0 - dav: 1.31.1 - duplicatefinder: 1.7.3 - encryption: 2.18.0 - end_to_end_encryption: 1.16.2 - epubviewer: 1.8.0 - external: 5.5.2 - externalportal: 1.3.1 - federatedfilesharing: 1.20.0 - federation: 1.20.0 - files: 2.2.0 - files_accesscontrol: 1.20.1 - files_automatedtagging: 1.20.0 - files_downloadlimit: 3.0.0 - files_external: 1.22.0 - files_pdfviewer: 3.0.0 - files_reminders: 1.3.0 - files_sharing: 1.22.0 - files_trashbin: 1.20.1 - files_versions: 1.23.0 - firstrunwizard: 3.0.0 - integration_openstreetmap: 2.1.0 - logreader: 3.0.0 - lookup_server_connector: 1.18.0 - maps: 1.5.0 - music: 2.2.0 - news: 26.0.2 - nextcloud_announcements: 2.0.0 - nextframe: 0.0.7 - notes: 4.12.1 - notifications: 3.0.0 - notify_push: 1.0.0 - oauth2: 1.18.1 - password_policy: 2.0.0 - photos: 3.0.2 - previewgenerator: 5.8.0 - pride_flags: 1.1.2 - privacy: 2.0.0 - provisioning_api: 1.20.0 - recommendations: 3.0.0 - related_resources: 1.5.0 - richdocuments: 8.5.7 - riotchat: 0.19.0 - serverinfo: 2.0.0 - settings: 1.13.0 - sharebymail: 1.20.0 - side_menu: 4.1.1 - socialsharing_email: 3.3.0 - socialsharing_telegram: 3.3.0 - spreed: 20.1.8 - support: 2.0.0 - systemtags: 1.20.0 - text: 4.1.0 - theming: 2.6.0 - theming_customcss: 1.18.0 - twofactor_backupcodes: 1.19.0 - twofactor_email: 2.8.0 - twofactor_nextcloud_notification: 4.0.0 - updatenotification: 1.20.0 - uppush: 2.3.0 - user_status: 1.10.0 - viewer: 3.0.0 - weather_status: 1.10.0 - webhook_listeners: 1.1.0-dev - workflow_ocr: 1.30.1 - workflowengine: 2.12.0 Disabled: - app_api: 4.0.6 (installed 4.0.6) - documentserver_community: 0.2.0 (installed 0.2.0) - drawio: 3.0.9 (installed 3.0.9) - extract: 1.3.6 (installed 1.3.6) - mail: 5.1.6 (installed 5.1.6) - onlyoffice: 9.9.0 (installed 9.9.0) - survey_client: 2.0.0 (installed 2.0.0) - suspicious_login: 8.0.0 - twofactor_totp: 12.0.0-dev - user_ldap: 1.21.0
Nextcloud configuration
If you have access to your command line run e.g.:
sudo -u www-data php occ config:list system
from within your Nextcloud installation folder

Unable to run due to limited occ access from Hetzner

Browser

Browser name: Tested on: Firefox (Zen)/Chromium (Arc)/Apple Safari

Browser version: Arc v 1.101.0 (Chromium 138.0.7204.50), Zen v.1.13.2b (Firefox 139.0.4), Safari v.18.5

Operating system: Tested on MacOS Sequoia 15.5 (aarch64) and NixOS 25.05 (amd64)

More Details

a) Console log
b) The network log
c) Offending PDF

Contributor guide

Open the contributing guide

First steps

  1. Read the whole issue, then the project's contributing guide.
  2. Comment on the issue to say you are picking it up — it saves two people doing the same work.
  3. Fork the repository and make your change on a branch.
  4. Open a pull request that references the issue number.

Research direction

Start by reproducing the issue in the PDF viewer with the linked offending PDF across the listed browsers, then review the linked console and network logs. Done means gradients render correctly and consistently in the viewer without the reported visual degradation.

Written by the indexing model from the issue text.

Assessment

Tech stack
javascript
Domain
frontend
Issue type
Bug
Difficulty
3/5
Estimated time
1-2 days
Activity status
Stale
Clarity
Mostly clear
Newbie friendliness
35/100

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.