Required PDF.js library is not installed when using composer

Created on 23 September 2016, over 8 years ago
Updated 19 November 2023, over 1 year ago

Hi,
is there a composer command to install this automatically?
thanks,
R

πŸ› Bug report
Status

RTBC

Version

1.0

Component

Code

Created by

πŸ‡¦πŸ‡ΉAustria maxilein

Live updates comments and jobs are added and updated live.
  • Needs backport to D7

    After being applied to the 8.x branch, it should be considered for backport to the 7.x branch. Note: This tag should generally remain even after the backport has been written, approved, and committed.

Sign in to follow issues

Merge Requests

Comments & Activities

Not all content is available!

It's likely this issue predates Contrib.social: some issue and comment data are missing.

  • πŸ‡ΊπŸ‡ΈUnited States kenrbnsn New Jersey

    This issue and https://www.drupal.org/project/pdf/issues/3365327 πŸ“Œ Use composer to handle the dependency on pdf.js Active seem to addressing the same problem. Perhaps the solution it that issue can be implemented.

  • πŸ‡ΊπŸ‡ΈUnited States chri5tia PDX

    For those that ended up here for the reason I did, the instructions for #15 worked and in on par with usual practices.

  • πŸ‡ΊπŸ‡ΈUnited States Albert Volkman

    albert volkman β†’ made their first commit to this issue’s fork.

  • Merge request !6#2805053: Add composer.json file β†’ (Open) created by Albert Volkman
  • Pipeline finished with Success
    2 months ago
    Total: 137s
    #444906
  • πŸ‡§πŸ‡ΎBelarus mozh92

    Steps for add pdf.js:
    1. add repository in your root composer.json:

    "repositories": [
            ..................................
            {
                "type": "package",
                "package": {
                    "name": "mozilla/pdf.js",
                    "version": "5.1.91",
                    "type": "drupal-library",
                    "dist": {
                        "url": "https://github.com/mozilla/pdf.js/releases/download/v5.1.91/pdfjs-5.1.91-dist.zip",
                        "type": "zip"
                    }
                }
            }
        ],

    2. Add "mozilla/pdf.js": "^5.1", in require section

    "require": {
    ....................................
      "mozilla/pdf.js": "5.1.91"
    }

    3. run 'composer require mozilla/pdf.js'

  • πŸ‡ΊπŸ‡ΈUnited States mortona2k Seattle

    Any reason not to merge what we've got? It should be set up to load the library automatically, right?

    Having the module define the asset repo as a package in composer.json and requiring it should work.

    If not, the instructions to set up composer.json are working fine and could just be pasted into a README.

Production build 0.71.5 2024