Inkscape.org
Beyond the Basics Inkscape v1 - how batch convert pre 0.92 files to new
  1. #1
    doomkers doomkers @doomkers

    I have a lot (thousand+) svg files form 0.45 to 0.91 and use command line to convert them to pdf etc..  I know about 0.92+ changes in DPI, but how to deal with them in command line  did not found any example.

    Now all generated PDFs not A4/A3 but bit smaller. When i open file with GUI i see conversion dialogue, but no such dialogue in command line.

    I found command line argument --convert-dpi-method=, used it with all 3 options, but final pdf still sames and smaller. In svg files is such.

    example: inkscape 000.svg --export-area-page --convert-dpi-method=scale-viewbox --export-filename=000P.pdf

    version="1.1"
       inkscape:version="0.91 r13725"
       xml:space="preserve"
       width="744.09998"
       height="1052.3625"
       viewBox="0 0 744.09998 1052.3625"

     

    Please! can you help how to convert old files to new DPI or to correct size PDF.

     

  2. #2
    Aero Aero @Aero◻️

    In Windows using Inkscape 1.1, I'd simply set the Inkscape CSS pixel to 90 dpi, convert my files, then set the Inkscape CSS pixel back to 96 dpi when done converting files.

    The configuration file for units is located in the Inkscape install folder \inkscape\share\inkscape\ui\units.xml

     

    Screenshot 129
  3. #3
    doomkers doomkers @doomkers

    Thank you! i will try.

Inkscape Inkscape.org Inkscape Forum Beyond the Basics Inkscape v1 - how batch convert pre 0.92 files to new