1
0
Fork 0
mirror of https://github.com/mozilla/pdf.js.git synced 2025-04-24 17:18:07 +02:00
pdf.js/src/core
Jonas Jenwald db53320da8 Initialize the image-options, on the worker-thread, once per document
Currently we're initializing the image-options for every page, which seems unnecessary since it should suffice to do that once per document.

Also, changes the `BasePdfManager` constructor to improve readability/documentation a little bit.
2025-01-30 11:52:15 +01:00
..
xfa Take the absolute value of the font size when the annotation contents is in xhtml (bug 1938087) 2024-12-18 17:00:45 +01:00
annotation.js Support the password field-flag in TextWidgetAnnotation (issue 19389) 2025-01-29 12:40:09 +01:00
arithmetic_decoder.js Re-factor how the ESLint no-var rule is enabled in the src/ folder 2020-10-03 20:15:29 +02:00
ascii_85_stream.js Fix the remaining ESLint operator-assignment errors 2021-07-04 15:23:56 +02:00
ascii_hex_stream.js Fix the remaining ESLint operator-assignment errors 2021-07-04 15:23:56 +02:00
base_stream.js [api-major] Add openjpeg.wasm to pdf.js (bug 1935076) 2025-01-16 21:09:50 +01:00
bidi.js Enable the no-lonely-if ESLint rule 2023-07-21 20:10:44 +02:00
binary_cmap.js Re-factor some String.fromCharCode usage in the src/core/binary_cmap.js file 2023-04-21 12:21:31 +02:00
calibri_factors.js XFA - Fix font scale factors (bug 1720888) 2021-07-28 19:10:42 +02:00
catalog.js Use Dict iteration more (PR 19051 follow-up) 2025-01-02 15:09:19 +01:00
ccitt.js Shorten some if-statements in the src/core/ folder 2024-12-26 18:37:25 +01:00
ccitt_stream.js Prefer instanceof Dict rather than calling isDict() with one argument 2022-02-21 12:44:56 +01:00
cff_font.js Enable the unicorn/prefer-optional-catch-binding ESLint plugin rule 2023-06-12 11:46:11 +02:00
cff_parser.js Introduce a readInt16 helper function in the src/core/core_utils.js file 2025-01-29 10:14:23 +01:00
charsets.js Use ESLint to ensure that exports are sorted alphabetically 2021-01-09 20:37:51 +01:00
chunked_stream.js [api-minor] Replace the PromiseCapability with Promise.withResolvers() 2024-04-01 11:42:37 +02:00
cleanup_helper.js [api-minor] Add a jpx decoder based on OpenJPEG 2.5.2 2024-04-16 12:54:36 +02:00
cmap.js Avoid redundant CMap-value lookup in extendCMap (PR 5101 follow-up) 2024-11-17 11:57:45 +01:00
colorspace.js Some jpx images can have a mask 2024-10-14 21:50:32 +02:00
core_utils.js Introduce a readInt16 helper function in the src/core/core_utils.js file 2025-01-29 10:14:23 +01:00
crypto.js Limit base-class initialization checks to development and TESTING modes 2024-08-12 12:26:35 +02:00
dataset_reader.js Enable the unicorn/prefer-optional-catch-binding ESLint plugin rule 2023-06-12 11:46:11 +02:00
decode_stream.js [api-major] Add openjpeg.wasm to pdf.js (bug 1935076) 2025-01-16 21:09:50 +01:00
decrypt_stream.js Shorten some if-statements in the src/core/ folder 2024-12-26 18:37:25 +01:00
default_appearance.js Add an option to enable/disable hardware acceleration (bug 1902012) 2024-06-12 18:41:07 +02:00
document.js Merge pull request #19289 from Snuffleupagus/issue-19281 2025-01-04 13:32:18 +01:00
encodings.js Use ESLint to ensure that exports are sorted alphabetically 2021-01-09 20:37:51 +01:00
evaluator.js Initialize the image-options, on the worker-thread, once per document 2025-01-30 11:52:15 +01:00
file_spec.js [api-minor] Improve the FileSpec implementation 2024-05-01 18:02:05 +02:00
flate_stream.js Avoid exceptions in the console with ill-formed flate streams 2024-10-10 12:07:30 +02:00
font_renderer.js Introduce a readInt16 helper function in the src/core/core_utils.js file 2025-01-29 10:14:23 +01:00
font_substitutions.js Warn when a non-embedded font has an invalid name 2024-04-12 13:59:18 +02:00
fonts.js Improve performance when reading very large TrueType "cmap" tables (issue 19319) 2025-01-13 13:09:47 +01:00
fonts_utils.js Use vertical variant of a char when it's in a missing vertical font (bug 1905623) 2024-07-03 09:46:54 +02:00
function.js Validate additional font-dictionary properties 2024-04-29 08:21:28 +02:00
glyf.js Enable the no-lonely-if ESLint rule 2023-07-21 20:10:44 +02:00
glyphlist.js Remove the "no-babel-preset" comment used with the LIB build-target (PR 16829 follow-up) 2023-08-13 08:55:58 +02:00
helvetica_factors.js XFA - Fix font scale factors (bug 1720888) 2021-07-28 19:10:42 +02:00
image.js Access the number of components correctly in JPEG 2000 images with color space entries (issue 19326) 2025-01-15 10:16:06 +01:00
image_resizer.js Rescale the image data when they're really too large 2024-11-23 22:42:30 +01:00
image_utils.js [api-minor] Simplify clean-up of page resources after rendering 2025-01-22 12:19:44 +01:00
jbig2.js Rescale the image data when they're really too large 2024-11-23 22:42:30 +01:00
jbig2_stream.js Decompress when it's possible images in using DecompressionStream 2024-06-02 14:00:05 +02:00
jpeg_stream.js [api-minor] Add a getDocument option to disable ImageDecoder usage 2024-11-12 17:12:42 +01:00
jpg.js Replace the EXIF-block with dummy data to prevent JPEG images being rotated (bug 1942064) 2025-01-20 16:50:22 +01:00
jpx.js Handle the case where openjpeg.wasm is missing 2025-01-17 22:11:24 +01:00
jpx_stream.js [api-major] Add openjpeg.wasm to pdf.js (bug 1935076) 2025-01-16 21:09:50 +01:00
liberationsans_widths.js XFA - Fix font scale factors (bug 1720888) 2021-07-28 19:10:42 +02:00
lzw_stream.js Move the DecodeStream and StreamsSequenceStream from src/core/stream.js and into its own file 2021-04-28 10:16:51 +02:00
metadata_parser.js Enable the unicorn/prefer-string-replace-all ESLint plugin rule 2023-03-23 12:57:10 +01:00
metrics.js [api-minor] Annotations - Adjust the font size in text field in considering the total width (bug 1721335) 2022-01-30 15:53:31 +01:00
myriadpro_factors.js XFA - Fix font scale factors (bug 1720888) 2021-07-28 19:10:42 +02:00
name_number_tree.js [Editor] Add the possibility to save an updated stamp annotation (bug 1921291) 2024-10-02 11:45:16 +02:00
object_loader.js Use more for...of loops in the code-base 2022-10-03 13:08:38 +02:00
opentype_file_builder.js Use more for...of loops in the code-base 2022-10-03 13:08:38 +02:00
operator_list.js For images that include SMask/Mask entries, ignore an SMask defined in the current graphics state 2024-12-30 14:25:07 +01:00
parser.js Support an odd number of digits in hexadecimal strings (issue 18645) 2024-08-23 16:31:43 +02:00
pattern.js Limit base-class initialization checks to development and TESTING modes 2024-08-12 12:26:35 +02:00
pdf_manager.js Initialize the image-options, on the worker-thread, once per document 2025-01-30 11:52:15 +01:00
predictor_stream.js Enable the unicorn/prefer-ternary ESLint plugin rule 2023-07-27 09:18:26 +02:00
primitives.js Replace the forEach method in Dict with "proper" iteration support 2024-11-17 12:45:32 +01:00
ps_parser.js Introduce some logical assignment in the src/core/ folder 2023-04-29 13:49:37 +02:00
run_length_stream.js Move the DecodeStream and StreamsSequenceStream from src/core/stream.js and into its own file 2021-04-28 10:16:51 +02:00
segoeui_factors.js XFA - Fix font scale factors (bug 1720888) 2021-07-28 19:10:42 +02:00
standard_fonts.js Add basic support for non-embedded HelveticaLTStd-Bold fonts (issue 19234) 2024-12-18 09:39:22 +01:00
stream.js [api-minor] Remove the forceClamped-functionality in the Streams (issue 14849) 2022-04-29 14:46:30 +02:00
struct_tree.js Replace the forEach method in Dict with "proper" iteration support 2024-11-17 12:45:32 +01:00
to_unicode_map.js Get the first codepoint instead of the first char when using the toUnicode map 2024-12-06 18:25:13 +01:00
type1_font.js Enable the unicorn/prefer-optional-catch-binding ESLint plugin rule 2023-06-12 11:46:11 +02:00
type1_parser.js Enable the unicorn/prefer-negative-index ESLint plugin rule 2023-03-24 10:18:32 +01:00
unicode.js Introduce more optional chaining in the src/core/ folder 2023-05-15 12:38:28 +02:00
worker.js Reduce duplication when handling "DocException" and "PasswordRequest" messages 2024-12-26 12:55:49 +01:00
worker_stream.js Introduce more optional chaining in the code-base 2023-08-26 10:52:23 +02:00
writer.js Simplify saving added/modified annotations. 2024-11-12 10:59:38 +01:00
xfa_fonts.js Additional *manual* unicorn/prefer-ternary changes 2023-07-27 09:48:24 +02:00
xml_parser.js Construct the correct field name and strip out classes when searching 2023-09-07 15:56:47 +02:00
xref.js Shorten some if-statements in the src/core/ folder 2024-12-26 18:37:25 +01:00