Fix test for svg2pdf preprocessor
Remove some unused variables
Fix svg2pdf filter
Merge pull request #7027 from takluyver/svg2pdf-test-fix

Fix svg2pdf nbconvert preprocessor