Yury Delendik
9bed695ebd
Merge pull request #8540 from Rob--W/svg-oom
...
Reduce memory requirements of pdf2svg.js example to avoid OOM
2017-06-20 17:24:48 -05:00
Rob Wu
849d8cfa24
Improve memory-efficiency of DOMElement_toString in domstubs
...
Test case:
Using the PDF file from https://github.com/mozilla/pdf.js/issues/8534
node --max_old_space_size=200 examples/node/pdf2svg.js /tmp/FatalProcessOutOfMemory.pdf
Before this patch:
Node.js crashes due to OOM after processing 10 pages.
After this patch:
Node.js crashes due to OOM after processing 19 pages.
2017-06-19 21:52:39 +02:00
Rob Wu
4f22ba54bf
Add getAttributeNS to domstubs for SVG example
...
The closePath method in src/display/svg.js relies on this.
2017-06-19 14:11:13 +02:00
巴里切罗
8d5d97264e
fix(svg) adjust strategy for decoding JPEG images
2017-05-08 11:32:44 +08:00
Yury Delendik
1e4886a15a
Remove global window and navigator usages from the core code.
2016-04-07 13:46:07 -05:00
Yury Delendik
79c2f69c32
Adds/modifies examples for node.js and webpack.
2015-12-21 13:46:50 -06:00
Yury Delendik
06c1904675
Refactors FontLoader to group fonts per document.
2015-11-24 13:27:22 -06:00
Manas
a2ba1b8189
Uses editorconfig to maintain consistent coding styles
...
Removes the following as they unnecessary
/* -*- Mode: Java; tab-width: 2; indent-tabs-mode: nil; c-basic-offset: 2 -*- */
/* vim: set shiftwidth=2 tabstop=2 autoindent cindent expandtab: */
2015-11-14 07:32:18 +05:30
Collin Anderson
54e984c763
cleaned whitespace
2015-02-17 11:07:37 -05:00
Yury Delendik
6048c8a910
Minor node/pdf2svg.js fixes.
2014-10-22 09:59:20 -05:00
Yury Delendik
de23d3791e
Fixes image and font embedding
2014-08-14 15:11:27 -05:00
pramodhkp
0e5998a325
Added svg export tool
2014-08-14 23:18:19 +05:30