Commandline export as pdf 1.4

General discussions about Inkscape.
iconberg
Posts: 36
Joined: Wed Feb 04, 2015 7:46 pm

Commandline export as pdf 1.4

Postby iconberg » Tue Feb 24, 2015 1:10 am

Hello,

anyway to force export in 1.5 (V 0.91)?

greetz

~suv
Posts: 2272
Joined: Sun May 10, 2009 2:07 am

Re: Commandline export as pdf 1.4

Postby ~suv » Tue Feb 24, 2015 2:19 am

Check the output for 'inkscape --help'

Hint: there is a new option in Inkscape 0.91:

Code: Select all

  -A, --export-pdf=FILENAME                 Export document to a PDF file
      --export-pdf-version=PDF_VERSION      Export PDF to given version.
                                            (hint: make sure to input the
                                            exact string found in the PDF
                                            export dialog, e.g. "PDF 1.4"
                                            which is PDF-a conformant)

~suv
Posts: 2272
Joined: Sun May 10, 2009 2:07 am

Re: Commandline export as pdf 1.4

Postby ~suv » Tue Feb 24, 2015 2:26 am

This should work :

Code: Select all

inkscape -f drawing.svg -A drawing.pdf --export-pdf-version=1.5


It seems that the help text wasn't updated for the command line switch after unifying how to specify PDF version or (for PostScript export) the PostScript language level via command line. Don't expect any new features though when forcing this PDF version.


Return to “General Discussions”