Skip to content

Add a new internal viewer to explore the structure of PDF files.#20831

Open
calixteman wants to merge 1 commit intomozilla:masterfrom
calixteman:internal_viewer
Open

Add a new internal viewer to explore the structure of PDF files.#20831
calixteman wants to merge 1 commit intomozilla:masterfrom
calixteman:internal_viewer

Conversation

@calixteman
Copy link
Contributor

The one from pdf.js.utils is a bit too old: a lot of bugs have been fixed in the code that parses PDF files since then.
It's just an internal development tool, so it doesn't need to be perfect, but it should be good enough to be useful.

@codecov-commenter
Copy link

codecov-commenter commented Mar 8, 2026

Codecov Report

❌ Patch coverage is 13.77953% with 219 lines in your changes missing coverage. Please review.
✅ Project coverage is 62.62%. Comparing base (d5653a1) to head (9d81faf).

Files with missing lines Patch % Lines
src/core/document.js 12.17% 202 Missing ⚠️
src/core/worker.js 18.75% 13 Missing ⚠️
src/display/api.js 50.00% 4 Missing ⚠️
Additional details and impacted files
@@            Coverage Diff             @@
##           master   #20831      +/-   ##
==========================================
- Coverage   62.71%   62.62%   -0.09%     
==========================================
  Files         169      169              
  Lines      120476   120719     +243     
==========================================
+ Hits        75553    75603      +50     
- Misses      44923    45116     +193     
Flag Coverage Δ
fonttest 7.66% <ø> (ø)
unittestcli 62.60% <13.77%> (-0.09%) ⬇️

Flags with carried forward coverage won't be shown. Click here to find out more.

☔ View full report in Codecov by Sentry.
📢 Have feedback on the report? Share it here.

🚀 New features to boost your workflow:
  • ❄️ Test Analytics: Detect flaky tests, report on failures, and find test suite problems.
  • 📦 JS Bundle Analysis: Save yourself from yourself by tracking and limiting bundle sizes in JS merges.

@calixteman calixteman force-pushed the internal_viewer branch 2 times, most recently from 69bd754 to b8adc52 Compare March 8, 2026 19:46
@calixteman calixteman force-pushed the internal_viewer branch 4 times, most recently from a36cf83 to 8b7a62f Compare March 9, 2026 13:08
The one from pdf.js.utils is a bit too old: a lot of bugs have been fixed
in the code that parses PDF files since then.
It's just an internal development tool, so it doesn't need to be perfect,
but it should be good enough to be useful.
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

3 participants