1
0
Fork 0
mirror of https://github.com/mozilla/pdf.js.git synced 2025-04-19 22:58:07 +02:00
pdf.js/test
Nicolò Ribaudo 458b2ee402
[api-minor] Render high-res partial page views when falling back to CSS zoom (bug 1492303)
When rendering big PDF pages at high zoom levels, we currently fall back
to CSS zoom to avoid rendering canvases with too many pixels. This
causes zoomed in PDF to look blurry, and the text to be potentially
unreadable.

This commit adds support for rendering _part_ of a page (called
`PDFPageDetailView` in the code), so that we can render portion of a
page in a smaller canvas without hiting the maximun canvas size limit.

Specifically, we render an area of that page that is slightly larger
than the area that is visible on the screen (100% larger in each
direction, unless we have to limit it due to the maximum canvas size).
As the user scrolls around the page, we re-render a new area centered
around what is currently visible.
2025-02-21 10:00:55 -08:00
..
chromium Enable the import/no-commonjs ESLint plugin rule 2023-10-14 12:49:17 +02:00
font Update the page title/favicon of the test runner HTML files 2024-12-22 14:08:56 +01:00
images [Editor] Avoid to have a selected stamp annotation on top of the secondary toolbar (bug 1911980) 2024-09-26 17:48:02 +02:00
integration [api-minor] Render high-res partial page views when falling back to CSS zoom (bug 1492303) 2025-02-21 10:00:55 -08:00
pdfs [api-minor] Render high-res partial page views when falling back to CSS zoom (bug 1492303) 2025-02-21 10:00:55 -08:00
resources Update the page title/favicon of the test runner HTML files 2024-12-22 14:08:56 +01:00
stats Enable the import/no-commonjs ESLint plugin rule 2023-10-14 12:49:17 +02:00
types Install and use the most recent Node types for the types tests 2024-11-03 13:40:55 +01:00
unit [api-minor] Render high-res partial page views when falling back to CSS zoom (bug 1492303) 2025-02-21 10:00:55 -08:00
.gitignore Ignore test snapshots directory. 2013-03-15 11:24:08 -07:00
add_test.mjs [ESM] Convert *most* of test-folder to use standard modules 2023-07-08 13:13:04 +02:00
annotation_layer_builder_overrides.css Use CSS nesting in the annotationLayer 2023-10-27 18:46:47 +02:00
downloadutils.mjs Do not stringify errors when logging them 2024-12-06 14:47:22 +01:00
draw_layer_test.css [Editor] Add a way to extract the outlines of a union of rectangles 2023-11-20 18:45:19 +01:00
driver.js Fix all outstanding ESLint arrow-body-style warnings 2025-02-17 15:45:44 +01:00
reporter.js Move the reporter file to the test root folder 2024-12-22 14:08:56 +01:00
test.mjs Reduce console spam when running tests in Firefox 2025-01-17 10:58:46 +01:00
test_manifest.json Don't cache free/missing XRef entries (issue 19510) 2025-02-18 18:04:00 +01:00
test_slave.html [api-minor] Move to Fluent for the localization (bug 1858715) 2023-10-19 11:20:41 +02:00
testutils.mjs Remove the rimraf dependency in favor of the built-in Node.js fs.rmSync in the test folder 2024-04-14 16:41:59 +02:00
text_layer_test.css Use CSS nesting in the textLayer 2023-10-27 17:38:01 +02:00
webserver.mjs [api-major] Add openjpeg.wasm to pdf.js (bug 1935076) 2025-01-16 21:09:50 +01:00
xfa_layer_builder_overrides.css Remove unnecessary alpha-value from CSS rgb colors 2023-10-06 09:50:03 +02:00