Convert SVG to PDF with InkScape
Converts any .svg file in the current directory to a .pdf file.
Step 1: Create a Makefile
Makefile:
SVGFILES := $(wildcard *.svg)
all: $(SVGFILES:%.svg=%.pdf)
%.pdf : %.svg
inkscape -A `pwd`/$*.pdf -f `pwd`/$<
Makefile:
SVGFILES := $(wildcard *.svg) all: $(SVGFILES:%.svg=%.pdf) %.pdf : %.svg inkscape -A `pwd`/$*.pdf -f `pwd`/$<
Step 2: Usage
Usage, just type make.
$ make
Helpful?
Let us know if you liked the post. That’s the only way we can improve.