---
# System prepended metadata

title: CLI tools for converting pdf to svg

---

# CLI tools for converting pdf to svg

Test scripts for testing the tools
```
import subprocess
from timeit import default_timer as timer

start = timer()
subprocess.check_output(["pdf2svg", "Harper's Bazaar UK 04.2021.pdf", "$
end = timer()
print(end - start)

start = timer()
subprocess.check_output(["mutool", "convert", "-F", "svg", "-o", "mutoo$
end = timer()
print(end - start)
```

#### Inkscape was ruled out due to poor text quality.

```
pdf2svg: 40.577780962
mutool: 2.14661407471
```

### Image quality check for yourself:
[pdf2svg](https://drive.google.com/file/d/1VifL2CDcb7FefY_yR1Pak0UnRYm0KneT/view?usp=sharing)
[mutool](https://drive.google.com/file/d/1o4L8Bm2ww0xZ9wKD03ZNnhCrQUbwSHn5/view?usp=sharing)