Skip to content

tigokraft/vectorize

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

4 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

Vectorize

Converts PDF pages to SVG files using MuPDF.

Build

Prerequisites: Rust, VS 2022 build tools, LLVM (for libclang.dll)

cargo build --release

Usage

vectorize [OPTIONS] <INPUT>
Option Description
-o, --output <DIR> Output directory (default: current directory)
-p, --page <NUM> Extract a single page, 1-based (default: all pages)
-s, --scale <FLOAT> Scale factor (default: 1.0)

Examples

# Convert all pages
vectorize document.pdf -o svgs/

# Convert page 2 only, at 2× scale
vectorize document.pdf -p 2 -s 2.0 -o svgs/

Output files are named page_0001.svg, page_0002.svg, etc.

About

tool to extract svg from pdf

Resources

License

Stars

Watchers

Forks

Packages

 
 
 

Contributors

Languages