Tool: Convert SVG to PDF with InkScape

  1. Home
  2.   /  
  3. Support
  4.   /  
  5. KB
  6.   /  
  7. Tool: Convert SVG to...

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.