Skip to content

[Bug]: Missing Images Referenced from CSS in pdfjs-dist 5.4.530 #20553

@dgiessing

Description

@dgiessing

Attach (recommended) or Link to PDF file

No PDF required

Web browser and its version

  • Prebuilt Version of PDFJS

Operating system and its version

Windows 11

PDF.js version

5.4.530

Is the bug present in the latest PDF.js version?

Yes

Is a browser extension

No

Steps to reproduce the problem

  1. Create an example Angular App
  2. Add pdfjs-dist as dependency
  3. Add the pdf_viewer.css in the styles array of the angular.json
  4. Build app

What is the expected behavior?

All Images that are referenced by the css should be bundled

What went wrong?

The following images are missing from pdfjs-dist and causing a compile error.
images/checkmark.svg
images/treeitem-expanded.svg
images/treeitem-collapsed.svg
images/pages_viewButton.svg
images/pages_viewArrow.svg
images/toolbarButton-zoomIn.svg
images/toolbarButton-currentOutlineItem.svg
images/toolbarButton-viewOutline.svg
images/toolbarButton-viewAttachments.svg
images/toolbarButton-viewLayers.svg
images/toolbarButton-pageDown.svg
images/toolbarButton-pageDown.svg
images/pages_closeButton.svg
images/pages_selected.svg

Link to a viewer

No response

Additional context

When searching for closed issues related to missing images in your Repo there are some findings. I think a simple integration test with pdfjs-dist could help to discover these pre release?

Metadata

Metadata

Assignees

No one assigned

    Labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions