1
0
Fork 0
mirror of https://github.com/mozilla/pdf.js.git synced 2025-04-26 10:08:06 +02:00
pdf.js/src/core
Calixte Denizet ae5828c968 [Editor] Avoid conflicts between new persistent refs and the ones created when saving (bug 1865341)
When a pdf as a FreeText without appearance, we use a fake font in order to render it
and that leads to create few new refs for the font.
But then when we're saving, we create some new refs which start at the same number
as the previous created ones.
Consequently, when saving we're using some wrong objects (like a font) to check if
we're able to render the newly added FreeText.
In order to fix this bug, we just remove the persistent refs (which are only used
when rendering/printing) during the saving.
2023-12-05 12:33:21 +01:00
..
xfa Additional *manual* unicorn/prefer-ternary changes 2023-07-27 09:48:24 +02:00
annotation.js [Editor] Add support for saving/printing a newly added Highlight annotation (bug 1865708) 2023-11-22 10:41:55 +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-minor] Remove the forceClamped-functionality in the Streams (issue 14849) 2022-04-29 14:46:30 +02: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 Improve performance of optional content parsing 2023-10-25 17:50:53 +02:00
ccitt.js Enable the unicorn/prefer-ternary ESLint plugin rule 2023-07-27 09:18:26 +02: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 Additional *manual* unicorn/prefer-ternary changes 2023-07-27 09:48:24 +02:00
charsets.js Use ESLint to ensure that exports are sorted alphabetically 2021-01-09 20:37:51 +01:00
chunked_stream.js Introduce even more optional chaining in the code-base 2023-08-09 17:04:54 +02:00
cleanup_helper.js Make it possible to clear the cache, used by the getB function in src/core/pattern.js 2023-09-15 12:23:06 +02:00
cmap.js Remove the remaining closure in the src/core/cmap.js file 2023-04-21 12:21:31 +02:00
colorspace.js Remove the closure from the LabCS class 2023-09-16 12:20:14 +02:00
core_utils.js Introduce more optional chaining in the src/core/ folder 2023-05-15 12:38:28 +02:00
crypto.js Remove the closure from the CipherTransformFactory class 2023-09-16 16:34:24 +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 Introduce more optional chaining in the src/core/ folder 2023-05-15 12:38:28 +02:00
decrypt_stream.js Introduce more optional chaining in the src/core/ folder 2023-05-15 12:38:28 +02:00
default_appearance.js Improve parseAppearanceStream to handle more "complex" ColorSpaces 2023-07-06 15:58:09 +02:00
document.js Get the field name from its parent when it doesn't have one when collecting fields (bug 1864136) 2023-11-13 14:41:14 +01:00
encodings.js Use ESLint to ensure that exports are sorted alphabetically 2021-01-09 20:37:51 +01:00
evaluator.js Re-factor how the GenericL10n class fetches localization-data 2023-11-14 13:45:14 +01:00
file_spec.js Use String.prototype.replaceAll() where appropriate 2023-03-22 15:31:10 +01:00
flate_stream.js Don't throw when there isn't enough data to get block info in flate stream 2023-11-26 18:12:22 +01:00
font_renderer.js Enable the no-lonely-if ESLint rule 2023-07-21 20:10:44 +02:00
font_substitutions.js [Editor] Avoid conflicts between new persistent refs and the ones created when saving (bug 1865341) 2023-12-05 12:33:21 +01:00
fonts.js Fix the maxp table version in font to make it visible on Windows 2023-11-10 14:16:20 +01:00
fonts_utils.js Additional *manual* unicorn/prefer-ternary changes 2023-07-27 09:48:24 +02:00
function.js Enable the unicorn/prefer-ternary ESLint plugin rule 2023-07-27 09:18:26 +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 Introduce more optional chaining in the src/core/ folder 2023-05-15 12:38:28 +02:00
image_resizer.js Enable the unicorn/prefer-optional-catch-binding ESLint plugin rule 2023-06-12 11:46:11 +02:00
image_utils.js Introduce more optional chaining in the src/core/ folder 2023-05-15 12:38:28 +02:00
jbig2.js [JBIG2] Ensure that the decodeInteger function returns valid integers (issue 15942) 2023-01-19 17:14:17 +01:00
jbig2_stream.js Prefer instanceof Dict rather than calling isDict() with one argument 2022-02-21 12:44:56 +01:00
jpeg_stream.js [api-minor] Generate images in the worker instead of the main thread. 2023-03-01 17:40:12 +01:00
jpg.js Throw a JpegError when a JPEG image has no frame data (issue 17302) 2023-11-20 17:33:49 +01:00
jpx.js Enable the unicorn/prefer-ternary ESLint plugin rule 2023-07-27 09:18:26 +02:00
jpx_stream.js Stop special-casing the dict parameter in the Jbig2Stream/JpegStream/JpxStream constructors 2021-04-28 13:44:47 +02: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 Support destinations in NameTrees with encoded keys (issue 14847) 2022-04-27 11:19:55 +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 Enable the unicorn/prefer-ternary ESLint plugin rule 2023-07-27 09:18:26 +02:00
parser.js Simplify the sign handling in the Lexer.getNumber method 2023-06-21 14:47:29 +02:00
pattern.js Make it possible to clear the cache, used by the getB function in src/core/pattern.js 2023-09-15 12:23:06 +02:00
pdf_manager.js [Editor] Add the ability to create/update the structure tree when saving a pdf containing newly added annotations (bug 1845087) 2023-09-16 18:34:58 +02:00
predictor_stream.js Enable the unicorn/prefer-ternary ESLint plugin rule 2023-07-27 09:18:26 +02:00
primitives.js [Editor] Add the ability to create/update the structure tree when saving a pdf containing newly added annotations (bug 1845087) 2023-09-16 18:34:58 +02: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 Address formatting changes from Prettier version 3 2023-07-15 10:44:39 +02: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 StructParents entry isn't required on pages with no tagged contents (bug 1855641) 2023-09-28 14:23:10 +02:00
to_unicode_map.js Convert src/core/to_unicode_map.js to use standard classes 2021-05-02 21:00:29 +02: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 StructParents entry isn't required on pages with no tagged contents (bug 1855641) 2023-09-28 14:23:10 +02:00
worker_stream.js Introduce more optional chaining in the code-base 2023-08-26 10:52:23 +02:00
writer.js Reduce unnecessary type conversion in writeStream 2023-10-18 15:39:01 +02: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 [Editor] Avoid conflicts between new persistent refs and the ones created when saving (bug 1865341) 2023-12-05 12:33:21 +01:00