1
0
Fork 0
mirror of https://github.com/mozilla/pdf.js.git synced 2025-04-22 16:18:08 +02:00

Adds SVG rendering capabilities to the PDFViewer.

This commit is contained in:
Yury Delendik 2016-11-18 13:03:49 -06:00
parent c9a0955c9c
commit f7d6f3a739
7 changed files with 100 additions and 7 deletions

View file

@ -1147,6 +1147,7 @@ var SVGGraphics = (function SVGGraphicsClosure() {
svg.setAttributeNS(null, 'version', '1.1');
svg.setAttributeNS(null, 'width', viewport.width + 'px');
svg.setAttributeNS(null, 'height', viewport.height + 'px');
svg.setAttributeNS(null, 'preserveAspectRatio', 'none');
svg.setAttributeNS(null, 'viewBox', '0 0 ' + viewport.width +
' ' + viewport.height);