PDF.js Express Plusplay_arrow

Professional PDF.js Viewing & Annotations - Try for free

side menu

Get Started

play_arrow

Learn more

play_arrow

Common use cases

play_arrow

Open a document

play_arrow

Save a document

play_arrow

Viewer

play_arrow

UI Customization

play_arrow

Annotations

play_arrow

Collaboration

play_arrow

Forms

play_arrow

Signature

play_arrow

Searching

play_arrow

Measurement

play_arrow

Compare

play_arrow

Advanced Capabilities

play_arrow

PDF.js Express REST API

play_arrow

Migration Guides

play_arrow

Localization & language support

The following features are available in:

check

PDF.js Express Viewer

help_outline

PDF.js Express Viewer is a free viewer with limited capabilities compared to PDF.js Express Plus

check

PDF.js Express Plus

help_outline

PDF.js Express Plus is a commercial PDF SDK for viewing, annotating, signing, form filling and more

PDF.js Express Web Viewer leverages the i18next library for languages and internationalization support.

Default languages

Out of the box, PDF.js Express supports the following languages:

  • English (en)
  • French (fr)
  • German (de)
  • Dutch (nl)
  • Russian (ru)
  • Chinese (Simplified) (zh_cn)

These will come with PDF.js Express automatically when you download the package. To always find the available languages supported by PDF.js Express, you can visit the GitHub project here.

Add languages

It is possible to add additional languages to your PDF.js Express in a few easy steps. Most of the on-screen text values are stored as JSON language files which you can edit in any text editor. Follow the steps below to start:

  1. Begin by creating a copy of any of the language files. They can be found under the lib/ui/build/i18n directory. PDF.js Express will also use the files from this directory.
  2. Rename the new file prefixed with translation- followed by the desired language code (ex. translation-es.json). The language code can be anything and does not have to match an ISO language code.
  3. Open the new file and edit the string values for your new language.
  4. Save the file and try out the new language in PDF.js Express!
{
  "action": {
    "apply": "Apply",
    "applyAll": "Apply all",
    "cancel": "Cancel",
    "clear": "Clear",
    "close": "Close",
...

Change languages

To change languages in PDF.js Express, simply call setLanguage on the instance while passing in the language code defined in the file name. This is without the translation- prefix.

instance.setLanguage('es');
instance.UI.setLanguage('es');