pdf.js/examples/svgviewer
Jonas Jenwald 4a6575643b [SVG] Specify the PDFJS.cMapUrl/PDFJS.cMapPacked parameters in the svgviewer example
Re: issue 7017.
This should prevent the error, but does not fix the broken rendering.

The rendering issues are caused by `svg.js` not supporting the various text rendering modes, in this case specifically "invisible" (as indicated in the console `Warning: Unimplemented method setTextRenderingMode`).

Compared to the canvas case, where we just ignore invisible text, a smarter solution is probably required for the SVG case. Since just ignoring invisible text in `svg.js` would mean that text-selection isn't possible.
2016-02-26 23:07:39 +01:00
..
index.html Use RequireJS in the viewer, examples and tests. 2015-12-29 09:20:52 -06:00
README.md SVG Viewer example demo 2014-06-20 08:25:05 +05:30
viewer.js [SVG] Specify the PDFJS.cMapUrl/PDFJS.cMapPacked parameters in the svgviewer example 2016-02-26 23:07:39 +01:00

PDF.js using SVG

This is a project for implementing alternate backend for PDF.js using Scalable Vector Graphics. This is still a WIP. Take a look at proposal for this project.

Getting started

Take a look at src/display/svg.js to see the SVG rendering code.