pdf.js/examples/node
Tim van der Meij d4309614f9
Replace DOMParser with SimpleXMLParser
The `DOMParser` is most likely overkill and may be less secure.
Moreover, it is not supported in Node.js environments.

This patch replaces the `DOMParser` with a simple XML parser. This
should be faster and gives us Node.js support for free. The simple XML
parser is a port of the one that existed in the examples folder with a
small regex fix to make the parsing work correctly.

The unit tests are extended for increased test coverage of the metadata
code. The new method `getAll` is provided so the example does not have
to access internal properties of the object anymore.
2017-09-19 23:09:07 +02:00
..
pdf2png Adds gulp dist-install command; using pdfjs-dist package in examples. 2017-06-12 10:22:16 -05:00
domstubs.js Provide a stub for setAttribute in order to use the SVG back-end with 2017-09-12 23:23:41 +02:00
getinfo.js Replace DOMParser with SimpleXMLParser 2017-09-19 23:09:07 +02:00
pdf2svg.js pdf2svg.js: Serialize the SVG to a stream 2017-08-16 19:16:38 +02:00