Skip to content

Instantly share code, notes, and snippets.

View memset0's full-sized avatar
🌴
On winter vacation

Memento mori. memset0

🌴
On winter vacation
View GitHub Profile
@memset0
memset0 / pdf2svgs.py
Created December 3, 2022 13:41 — forked from vitchyr/pdf2svgs.py
Convert PDF to multiple SVGs with Inkscape and pyPdf
"""
Author: Vitchyr Pong
Convert a PDF to svg files. Note that this is pretty slow since it makes
subprocess calls to inkscape's PDF-to-SVG command line convert.
Requirements:
- Inkscape (https://inkscape.org/)
- pyPdf (http://pybrary.net/pyPdf/)
- A '/tmp' directory. If not, you must pass in another directory.