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:
parent
c9a0955c9c
commit
f7d6f3a739
7 changed files with 100 additions and 7 deletions
|
@ -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);
|
||||
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue