nextcloud / nextcloud/files_pdfviewer

Fail to render / load Japanese fonts

Open
#873 3 comments 3 reactions 0 assignees View on GitHub

Nobody has claimed this yet.

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

Description

Japanese pdf is not rendered nextcloud 28 clean installation. A blank page is displayed.
The cause is that some static files, including the bcmap file, have not been retrieved.

The following files can be successfully retrieved without authentication. (apache responds 200)

  • https://FQDN/apps/files_pdfviewer/js/pdfjs/build/pdf.js
  • https://FQDN/apps/files_pdfviewer/js/pdfjs/web/viewer.js

The following file is not found.(apache responds 404)

  • https://FQDN/apps/files_pdfviewer/js/pdfjs/web/cmaps/Adobe-Japan1-UCS2.bcmap
  • https://FQDN/apps/files_pdfviewer/js/pdfjs/web/locale/locale.properties

I seem to have a problem with static file routing.
Any advice on how to correct this would be appreciated.

sample pdf:
https://hikaku.cman.jp/pdf/sample/pdf_font_none.pdf

Server configuration

Deployed dockerhub image 28-apache

List of activated apps:

default apps

Nextcloud configuration:

default

Client configuration

Browser:
chrome, firefox
It's not a browser matter. I confirmed 404 response with the curl command.

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

Reproduce the failure with the sample PDF and curl the listed pdf.js, bcmap, and locale paths in a Nextcloud 28 Apache deployment. Inspect how the files_pdfviewer static assets are packaged and routed, then verify the missing files return 200 and the Japanese PDF renders without a blank page.

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.