gotcha

Author Topic: Noobie Q | command line  (Read 1956 times)

May 01, 2017, 01:08:04 AM
Read 1956 times

jesperg

  • Newbie

  • Offline
  • *

  • 1
Hi.
I want to batch convert *.pdf files in a folder to SVG keeping the same name. Is this possible ?

I have looked at all commandline commands, but it seems that i have to give an input filename and a output filename.

Thanks

Jesper G

May 01, 2017, 11:56:07 AM
Reply #1

brynn

  • Administrator

  • Offline
  • ******

  • 3,941
  • Gender
    Female

    Female
    • Inkscape Community
Welcome Jesper!

I don't know much about using the command line.  But just thinking it through -- for a batch conversion, how could you give the input name and output name, for all the files, in one command (or one line of code)?  I guess maybe the command would reference a file which contains the names of all the files?  And also reference a different file which contains the output names???

If that's the case, I wonder if you could just reference the same file for input and output?  But that's just a guess, from someone who has never used the commandline (and hardly ever used any kind of terminal).

The only other thing I can think of, is Irfanview.  I guess it's essentially an image viewer, but it acts like an editor in many ways.  It has a reputation for handling many different image formats.  And it has a batch conversion feature as well.  I've used that myself, several years ago. 

I know it handles SVG, but don't know if specifically PDF to SVG is possible.  But I'd be optimistic  :)

http://www.irfanview.com/
  • Inkscape version 0.92.3
  • Windows 7 Pro, 64-bit
Inkscape Tutorials (and manuals)                      Inkscape Community Gallery                        Inkscape for Cutting Design                     



"Be ashamed to die until you have won some victory for humanity" - Horace Mann                       

May 01, 2017, 05:28:44 PM
Reply #2

Moini

  • IC Mentor

  • Offline
  • ******

  • 1,568
    • VektorRascheln
Maybe this is interesting, too:
https://en.wikipedia.org/wiki/Wikipedia:Graphic_Lab/Resources/PDF_conversion_to_SVG

If the program you want to use does not have a batch mode (which you can find out by reading the documentation, or by sharing which program you intend to use), you can write a short script (for your operating system), that can pass the file names on.