pdf.js/src/shared
Calixte Denizet 3ca03603c2 [Annotation] Fix printing/saving for annotations containing some non-ascii chars and with no fonts to handle them (bug 1666824)
- For text fields
 * when printing, we generate a fake font which contains some widths computed thanks to
   an OffscreenCanvas and its method measureText.
   In order to avoid to have to layout the glyphs ourselves, we just render all of them
   in one call in the showText method in using the system sans-serif/monospace fonts.
 * when saving, we continue to create the appearance streams if the fonts contain the char
   but when a char is missing, we just set, in the AcroForm dict, the flag /NeedAppearances
   to true and remove the appearance stream. This way, we let the different readers handle
   the rendering of the strings.
- For FreeText annotations
  * when printing, we use the same trick as for text fields.
  * there is no need to save an appearance since Acrobat is able to infer one from the
    Content entry.
2022-11-10 19:05:39 +01:00
..
.eslintrc Enable the ESLint no-var rule globally 2021-03-13 16:12:53 +01:00
cffStandardStrings.js Fix errors reported by the comma-spacing ESLint rule 2016-12-12 20:35:53 +01:00
compatibility.js Change how src/shared/compatibility.js is imported 2022-10-01 13:29:54 +02:00
fonts_utils.js Remove the isNum helper function 2022-02-22 11:55:34 +01:00
image_utils.js Improve performance of applyMaskImageData 2022-04-09 22:19:02 +02:00
is_node.js Use Path2D, if available, when rendering Type3-fonts (bug 810214) 2022-05-01 13:56:35 +02:00
message_handler.js Simplify the wrapReason helper function 2022-02-25 18:31:12 +01:00
murmurhash3.js Replace the AnnotationStorage.lastModified-getter with a proper hash-method 2022-05-04 15:21:30 +02:00
scripting_utils.js Fix a bug in the ColorConverters.CMYK_HTML method (PR 12631 follow-up) 2022-06-09 10:03:36 +02:00
util.js [Annotation] Fix printing/saving for annotations containing some non-ascii chars and with no fonts to handle them (bug 1666824) 2022-11-10 19:05:39 +01:00