Huge News!Announcing our $40M Series B led by Abstract Ventures.Learn More
Socket
Sign inDemoInstall
Socket

svg-to-pdfkit

Package Overview
Dependencies
Maintainers
1
Versions
9
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

svg-to-pdfkit - npm Package Compare versions

Comparing version 0.1.3 to 0.1.4

examples/results.js

16

examples/README.md

@@ -61,9 +61,8 @@ In this folder you will find demo and test pages that use SVG-to-PDFKit:

| additional-test-01.svg | Chrome bug https://crbug.com/450368 |
| additional-test-02.svg | Chrome bug |
| color-prop-05-t.svg | Specifications conflict |
| additional-test-02.svg | Chrome bug https://crbug.com/603995 |
| color-prop-05-t.svg | Specifications conflict https://crbug.com/571723 |
| pservers-grad-02-b.svg | PDFjs bug https://git.io/vQqgG |
| pservers-grad-04-b.svg | PDFjs bug https://git.io/vQqgG |
| pservers-grad-05-b.svg | PDFjs bug |
| pservers-grad-05-b.svg | PDFjs bug https://git.io/vFQP6 |
| pservers-grad-06-b.svg | PDFjs bug https://git.io/vQqgG |
| pservers-grad-07-b.svg | PDFjs bug |
| pservers-grad-08-b.svg | PDFjs bug |

@@ -78,8 +77,7 @@ | pservers-grad-10-b.svg | PDFjs bug |

| pservers-grad-17-b.svg | PDFjs bug |
| pservers-grad-18-b.svg | PDFjs bug |
| pservers-grad-18-b.svg | PDFjs bug https://git.io/vFQP6 |
| pservers-grad-20-b.svg | PDFjs bug |
| pservers-grad-21-b.svg | Chrome bug + PDFjs bug |
| pservers-grad-21-b.svg | Chrome bug https://crbug.com/322487 + PDFjs bug https://git.io/vFQP6 |
| pservers-grad-22-b.svg | PDFjs bug https://git.io/vQqgG |
| pservers-pattern-01-b.svg | PDFjs bug |
| styling-inherit-01-b.svg | PDFjs bug |
| text-text-01-b.svg | Chrome bug |
| pservers-pattern-01-b.svg | PDFjs bug https://git.io/vF95D |
| styling-inherit-01-b.svg | PDFjs bug https://git.io/vQqgG |

@@ -6,3 +6,5 @@ var Tests2 = [

{name: 'additional-test-04.svg', svg: '<svg xmlns="http://www.w3.org/2000/svg" viewBox="0 0 480 360" width="100%" height="100%">\n <rect x="5" y="5" width="470" height="350" stroke="green" fill="none"/>\n <text x="40" y="40" font-size="20">Test of shape direction</text>\n <g stroke="red" fill="none" stroke-width="5" stroke-dasharray="5 5 10 5 15 5 25 5 40 5 65 5 105 5 170 1000">\n <circle cx="120" cy="140" r="80"/>\n <ellipse cx="340" cy="140" rx="100" ry="60"/>\n <rect x="150" y="230" width="180" height="100" rx="40" ry="20"/>\n </g>\n <g fill="green">\n <path d="M195,140 L190,155 L185,140"/>\n <path d="M435,140 L430,155 L425,140"/>\n <path d="M190,235 L205,240 L190,245"/>\n </g>\n</svg>'},
{name: 'additional-test-05.svg', svg: '<svg xmlns="http://www.w3.org/2000/svg" xmlns:xlink="http://www.w3.org/1999/xlink" width="480" height="360" viewBox="0 0 480 360">\n <defs>\n <clipPath id="clip-0">\n <rect x="0" y="0" width="480" height="180"/>\n </clipPath>\n <clipPath id="clip-1">\n <rect x="0" y="180" width="480" height="180"/>\n </clipPath>\n <clipPath id="rounded-corners">\n <rect x="50" y="50" width="380" height="260" rx="50"/>\n </clipPath>\n </defs>\n <g clip-path="url(#rounded-corners)">\n <g clip-path="url(#clip-0)">\n <rect fill="green" x="0" y="0" width="480" height="360"></rect>\n </g>\n <g clip-path="url(#clip-1)">\n <rect fill="red" x="0" y="0" width="480" height="360"></rect>\n </g>\n <text x="240" y="193" text-anchor="middle" font-size="40">================= Clip-path test =================</text>\n </g>\n <rect x="50" y="50" width="380" height="260" rx="50" fill="none" stroke="black" stroke-width="4"/>\n</svg>'}
{name: 'additional-test-05.svg', svg: '<svg xmlns="http://www.w3.org/2000/svg" xmlns:xlink="http://www.w3.org/1999/xlink" width="480" height="360" viewBox="0 0 480 360">\n <defs>\n <clipPath id="clip-0">\n <rect x="0" y="0" width="480" height="180"/>\n </clipPath>\n <clipPath id="clip-1">\n <rect x="0" y="180" width="480" height="180"/>\n </clipPath>\n <clipPath id="rounded-corners">\n <rect x="50" y="50" width="380" height="260" rx="50"/>\n </clipPath>\n </defs>\n <g clip-path="url(#rounded-corners)">\n <g clip-path="url(#clip-0)">\n <rect fill="green" x="0" y="0" width="480" height="360"></rect>\n </g>\n <g clip-path="url(#clip-1)">\n <rect fill="red" x="0" y="0" width="480" height="360"></rect>\n </g>\n <text x="240" y="193" text-anchor="middle" font-size="40">================= Clip-path test =================</text>\n </g>\n <rect x="50" y="50" width="380" height="260" rx="50" fill="none" stroke="black" stroke-width="4"/>\n</svg>'},
{name: 'additional-test-06.svg', svg: '<svg xmlns="http://www.w3.org/2000/svg" width="480" height="360">\n <g font-size="30">\n <g transform="translate(0,80)">\n <line x1="0" x2="50%" y1="0" y2="0" stroke="green"/>\n <text x="20" fill="red" dominant-baseline="middle">Middle</text>\n <text x="20" alignment-baseline="middle">Middle</text>\n </g>\n <g transform="translate(0,160)">\n <line x1="0" x2="50%" y1="0" y2="0" stroke="green"/>\n <text x="20" fill="red" dominant-baseline="text-after-edge">After edge</text>\n <text x="20" alignment-baseline="middle" dominant-baseline="hanging">\n <tspan alignment-baseline="text-after-edge" dominant-baseline="text-before-edge">After edge</tspan>\n </text>\n </g>\n <g transform="translate(0,240)">\n <line x1="0" x2="50%" y1="0" y2="0" stroke="green"/>\n <text x="20" fill="red" dominant-baseline="text-before-edge">Before edge</text>\n <text x="20" alignment-baseline="middle" dominant-baseline="hanging">\n <tspan dominant-baseline="text-before-edge">Before edge</tspan>\n </text>\n </g>\n <g transform="translate(0,320)">\n <line x1="0" x2="50%" y1="0" y2="0" stroke="green"/>\n <text x="20" fill="red" dominant-baseline="middle">Middle</text>\n <text x="20" alignment-baseline="text-after-edge" dominant-baseline="hanging">\n <tspan alignment-baseline="middle">Middle</tspan>\n </text>\n </g>\n <g transform="translate(240,80)">\n <line x1="0" x2="50%" y1="0" y2="0" stroke="green"/>\n <text x="20" fill="red" dominant-baseline="hanging">Hanging</text>\n <text x="20" alignment-baseline="middle" dominant-baseline="hanging">\n <tspan>Hanging</tspan>\n </text>\n </g>\n <g transform="translate(240,160)">\n <line x1="0" x2="50%" y1="0" y2="0" stroke="green"/>\n <text x="20" fill="red" dominant-baseline="baseline">Baseline</text>\n <text x="20" alignment-baseline="middle">\n <tspan>Baseline</tspan>\n </text>\n </g>\n <g transform="translate(240,240)">\n <line x1="0" x2="50%" y1="0" y2="0" stroke="green"/>\n <text x="20" fill="red" dominant-baseline="mathematical">Mathematical</text>\n <text x="20" dominant-baseline="mathematical">\n <tspan>Mathematical</tspan>\n </text>\n </g>\n <g transform="translate(240,320)">\n <line x1="0" x2="50%" y1="0" y2="0" stroke="green"/>\n <text x="20" fill="red" dominant-baseline="hanging">Hanging</text>\n <text x="20" alignment-baseline="hanging" dominant-baseline="text-before-edge">\n <tspan alignment-baseline="inherit">Hanging</tspan>\n </text>\n </g>\n </g>\n</svg>'},
{name: 'additional-test-07.svg', svg: '<svg xmlns="http://www.w3.org/2000/svg" xmlns:xlink="http://www.w3.org/1999/xlink">\n <svg viewBox="0 0 200 100" preserveAspectRatio="none" >\n <rect height="100%" width="100%" fill="yellow"/>\n <path id="cloud" fill="grey" d="M10,25 C10,20 35,15 35,20 C35,10 55,10 55,15 C60,13 65,20 65,25 C65,30 45,40 45,35 C45,50 25,40 25,35 C20,40 10,35 10,25 Z"/>\n <use xlink:href="#cloud" transform="scale(-1,1.1) translate(-140, -10)"/>\n <use xlink:href="#cloud" transform="scale(1.1,0.9) translate(115, 10)"/>\n <ellipse cx="50%" cy="120%" rx="50%" ry="100%" fill="red" />\n </svg>\n <svg viewBox="0 0 100 100" x="50%" width="200" y="50%" height="200" >\n <rect fill="blue" width="200" height="200" stroke="red" stroke-width="1"/>\n </svg>\n</svg>\n'}
];
{
"name": "svg-to-pdfkit",
"version": "0.1.3",
"version": "0.1.4",
"description": "Insert SVG into a PDF document created with PDFKit",

@@ -23,6 +23,6 @@ "author": {

"homepage": "https://github.com/alafr/SVG-to-PDFKit#readme",
"_id": "svg-to-pdfkit@0.1.3",
"_shasum": "5f2ce29d1cf9ac89121a4bebc335b0c516ec45df",
"_id": "svg-to-pdfkit@0.1.4",
"_shasum": "0722f4fa7e84d638bf74f91dcaf2a4db8109fb2e",
"_resolved": "https://github.com/alafr/SVG-to-PDFKit/tarball/master",
"_from": "https://github.com/alafr/SVG-to-PDFKit/tarball/master"
}

Sorry, the diff of this file is not supported yet

Sorry, the diff of this file is too big to display

SocketSocket SOC 2 Logo

Product

  • Package Alerts
  • Integrations
  • Docs
  • Pricing
  • FAQ
  • Roadmap
  • Changelog

Packages

npm

Stay in touch

Get open source security insights delivered straight into your inbox.


  • Terms
  • Privacy
  • Security

Made with ⚡️ by Socket Inc