pdf.js/src/display
Brendan Dahl b56cca0324 Create shading patterns the size of the current path. (bug 1722807)
Previously, when we created a shading pattern canvas we created it
as the same size as the page. This was good for caching if the same
pattern was used over and over again, but when lots of different
shadings are created that caused us to create many full page
canvases.

Instead of creating the full page canvses, create the canvas
as the same size as the current path bounding box. This reduces memory
consumption by a lot since most paths are pretty small. Also, in real world
PDFs it's rare for a shading (non shading fill) to be reused over and over again.
Bug 1721949 is an example where the same pattern is reused and it will be slightly
slower than before.
2021-11-05 20:44:18 -07:00
..
annotation_layer.js Support rich content in markup annotation 2021-10-31 13:44:51 +01:00
annotation_storage.js Annotations - Avoid empty value in text field when storage contains something for it (bug 1719148) 2021-09-18 15:08:22 +02:00
api.js Use even more optional chaining in the src/display/api.js file 2021-10-12 12:05:59 +02:00
base_factory.js Re-factor the DOMSVGFactory to extend an abstract base class 2021-06-11 17:15:49 +02:00
canvas.js Create shading patterns the size of the current path. (bug 1722807) 2021-11-05 20:44:18 -07:00
content_disposition.js Use the stringToBytes helper function in more places 2021-05-22 12:23:09 +02:00
display_utils.js [api-minor] Add a wrapper around the addLinkAttributes-function, in the API, to the PDFLinkService implementations 2021-10-02 12:28:00 +02:00
fetch_stream.js Fix handling of fetch errors 2021-08-30 12:43:28 +01:00
font_loader.js XFA - Add support for reftests 2021-06-08 10:37:26 +02:00
metadata.js Convert Metadata to use private class fields 2021-10-22 22:01:19 +02:00
network_utils.js [api-minor] Support the Content-Disposition filename in the Firefox PDF Viewer (bug 1694556, PR 9379 follow-up) 2021-02-26 10:50:29 +01:00
network.js Implement PDFNetworkStreamRangeRequestReader._onError, to handle range request errors with XMLHttpRequest (issue 9883) 2021-08-31 10:23:57 +02:00
node_stream.js Account for formatting changes in Prettier version 2.3.0 2021-05-16 11:44:05 +02:00
node_utils.js Move most functionality in the create methods into the BaseCanvasFactory 2021-06-11 17:15:47 +02:00
optional_content_config.js Treat all content as visible when no optional content groups are defined (issue 13971) 2021-09-04 08:13:37 +02:00
pattern_helper.js Create shading patterns the size of the current path. (bug 1722807) 2021-11-05 20:44:18 -07:00
svg.js Fix pattern handling regression in SVGGraphics (PR 13770 follow-up) 2021-10-18 21:40:10 +02:00
text_layer.js Fix issues in text selection 2021-10-17 16:27:05 +02:00
transport_stream.js Clear some Arrays, rather than re-initialize them, in src/display/-code 2021-04-24 13:00:53 +02:00
worker_options.js Use typedef to define the type of GlobalWorkerOptions. 2020-08-03 19:06:28 +09:00
xfa_layer.js Support rich content in markup annotation 2021-10-31 13:44:51 +01:00
xfa_text.js XFA - Support text search in XFA documents. 2021-08-23 08:44:20 -07:00