Tool: Convert SVG to PDF with InkScape

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?

Leave a Reply

Your email address will not be published. Required fields are marked *