您当前的位置: 首页 > 

插件开发

暂无认证

  • 6浏览

    0关注

    492博文

    0收益

  • 0浏览

    0点赞

    0打赏

    0留言

私信
关注
热门博文

inkscape-最新命令行命令-参考-help

插件开发 发布时间:2022-04-25 17:37:56 ,浏览量:6

文章目录
    • 1.inkscape-0.92.5-x64版本
    • 2.inkscape-1.1.2版本

1.inkscape-0.92.5-x64版本

在控制台状态下输入如下命令,得到inkscape的命令参数解释:

inkscape --help

得到如下内容,可以得到各个参数意义。

Available options:
  -V, --version                              Print the Inkscape version number
  -z, --without-gui                          Do not use X server (only process
                                             files from console)
  -g, --with-gui                             Try to use X server (even if
                                             $DISPLAY is not set)
  -f, --file=FILENAME                        Open specified document(s)
                                             (option string may be excluded)
  -p, --print=FILENAME                       Print document(s) to specified
                                             output file (use '| program' for
                                             pipe)
  -e, --export-png=FILENAME                  Export document to a PNG file
  -d, --export-dpi=DPI                       Resolution for exporting to
                                             bitmap and for rasterization of
                                             filters in PS/EPS/PDF (default 96)
  -a, --export-area=x0:y0:x1:y1              Exported area in SVG user units
                                             (default is the page; 0,0 is
                                             lower-left corner)
  -D, --export-area-drawing                  Exported area is the entire
                                             drawing (not page)
  -C, --export-area-page                     Exported area is the entire page
      --export-margin=VALUE                  Sets margin around exported area
                                             (default 0) in units of page size
                                             for SVG and mm for PS/EPS/PDF
      --export-area-snap                     Snap the bitmap export area
                                             outwards to the nearest integer
                                             values (in SVG user units)
  -w, --export-width=WIDTH                   The width of exported bitmap in
                                             pixels (overrides export-dpi)
  -h, --export-height=HEIGHT                 The height of exported bitmap in
                                             pixels (overrides export-dpi)
  -i, --export-id=ID                         The ID of the object to export
  -j, --export-id-only                       Export just the object with
                                             export-id, hide all others (only
                                             with export-id)
  -t, --export-use-hints                     Use stored filename and DPI hints
                                             when exporting (only with
                                             export-id)
  -b, --export-background=COLOR              Background color of exported
                                             bitmap (any SVG-supported color
                                             string)
  -y, --export-background-opacity=VALUE      Background opacity of exported
                                             bitmap (either 0.0 to 1.0, or 1
                                             to 255)
  -l, --export-plain-svg=FILENAME            Export document to plain SVG file
                                             (no sodipodi or inkscape
                                             namespaces)
  -P, --export-ps=FILENAME                   Export document to a PS file
  -E, --export-eps=FILENAME                  Export document to an EPS file
      --export-ps-level=PS Level             Choose the PostScript Level used
                                             to export. Possible choices are 2
                                             and 3 (the default)
  -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. "1.4" which
                                             is PDF-a conformant)
      --export-latex                         Export PDF/PS/EPS without text.
                                             Besides the PDF/PS/EPS, a LaTeX
                                             file is exported, putting the
                                             text on top of the PDF/PS/EPS
                                             file. Include the result in LaTeX
                                             like: \input{latexfile.tex}
  -M, --export-emf=FILENAME                  Export document to an Enhanced
                                             Metafile (EMF) File
  -m, --export-wmf=FILENAME                  Export document to a Windows
                                             Metafile (WMF) File
  -T, --export-text-to-path                  Convert text object to paths on
                                             export (PS, EPS, PDF, SVG)
      --export-ignore-filters                Render filtered objects without
                                             filters, instead of rasterizing
                                             (PS, EPS, PDF)
  -X, --query-x                              Query the X coordinate of the
                                             drawing or, if specified, of the
                                             object with --query-id
  -Y, --query-y                              Query the Y coordinate of the
                                             drawing or, if specified, of the
                                             object with --query-id
  -W, --query-width                          Query the width of the drawing
                                             or, if specified, of the object
                                             with --query-id
  -H, --query-height                         Query the height of the drawing
                                             or, if specified, of the object
                                             with --query-id
  -S, --query-all                            List id,x,y,w,h for all objects
  -I, --query-id=ID                          The ID of the object whose
                                             dimensions are queried
  -x, --extension-directory                  Print out the extension directory
                                             and exit
      --vacuum-defs                          Remove unused definitions from
                                             the defs section(s) of the
                                             document
      --verb-list                            List the IDs of all the verbs in
                                             Inkscape
      --verb=VERB-ID                         Verb to call when Inkscape opens.
      --select=OBJECT-ID                     Object ID to select when Inkscape
                                             opens.
      --shell                                Start Inkscape in interactive
                                             shell mode.
      --no-convert-text-baseline-spacing     Do not fix legacy (pre-0.92)
                                             files' text baseline spacing on
                                             opening.
      --convert-dpi-method=[...]             Method used to convert pre-.92
                                             document dpi, if needed.
                                             ([none|scale-viewbox|scale-document])

Help options:
  -?, --help                                 Show this help message
      --usage                                Display brief usage message
2.inkscape-1.1.2版本

新版本与老版本参数已经发生变化,如下所示:

Usage:
  org.inkscape.Inkscape [OPTION…] file1 [file2 [fileN]]

Process (or open) one or more files.

Help Options:
  -?, --help                                 Show help options
  --help-all                                 Show all help options
  --help-gapplication                        Show GApplication options
  --help-gtk                                 Show GTK+ Options

Application Options:
  -V, --version                              Print Inkscape version
  --debug-info                               Print debugging information
  --system-data-directory                    Print system data directory
  --user-data-directory                      Print user data directory

File import:
  -p, --pipe                                 Read input file from standard input (stdin)
  --pdf-page=PAGE                            PDF page number to import
  --pdf-poppler                              Use poppler when importing via commandline
  --convert-dpi-method=METHOD                Method used to convert pre-0.92 document dpi, if needed: [none|scale-viewbox|scale-document]
  --no-convert-text-baseline-spacing         Do not fix pre-0.92 document's text baseline spacing on opening

File export:
  -o, --export-filename=FILENAME             Output file name (defaults to input filename; file type is guessed from extension if present; use '-' to write to stdout)
  --export-overwrite                         Overwrite input file (otherwise add '_out' suffix if type doesn't change)
  --export-type=TYPE[,TYPE]*                 File type(s) to export: [svg,png,ps,eps,pdf,emf,wmf,xaml]
  --export-extension=EXTENSION-ID            Extension ID to use for exporting
  --
Export geometry:
  -C, --export-area-page                     Area to export is page
  -D, --export-area-drawing                  Area to export is whole drawing (ignoring page size)
  -a, --export-area=x0:y0:x1:y1              Area to export in SVG user units
  --export-area-snap                         Snap the bitmap export area outwards to the nearest integer values
  -d, --export-dpi=DPI                       Resolution for bitmaps and rasterized filters; default is 96
  -w, --export-width=WIDTH                   Bitmap width in pixels (overrides --export-dpi)
  -h, --export-height=HEIGHT                 Bitmap height in pixels (overrides --export-dpi)
  --export-margin=MARGIN                     Margin around export area: units of page size for SVG, mm for PS/PDF

Export options:
  -i, --export-id=OBJECT-ID[;OBJECT-ID]*     ID(s) of object(s) to export
  -j, --export-id-only                       Hide all objects except object with ID selected by export-id
  -l, --export-plain-svg                     Remove Inkscape-specific SVG attributes/properties
  --export-ps-level=LEVEL                    Postscript level (2 or 3); default is 3
  --export-pdf-version=VERSION               PDF version (1.4 or 1.5); default is 1.5
  -T, --export-text-to-path                  Convert text to paths (PS/EPS/PDF/SVG)
  --export-latex                             Export text separately to LaTeX file (PS/EPS/PDF)
  --export-ignore-filters                    Render objects without filters instead of rasterizing (PS/EPS/PDF)
  -t, --export-use-hints                     Use stored filename and DPI hints when exporting object selected by --export-id
  -b, --export-background=COLOR              Background color for exported bitmaps (any SVG color string)
  -y, --export-background-opacity=VALUE      Background opacity for exported bitmaps (0.0 to 1.0, or 1 to 255)
  --export-png-color-mode=COLOR-MODE         Color mode (bit depth and color type) for exported bitmaps (Gray_1/Gray_2/Gray_4/Gray_8/Gray_16/RGB_8/RGB_16/GrayAlpha_8/GrayAlpha_16/RGBA_8/RGBA_16)

Query object/document geometry:
  -I, --query-id=OBJECT-ID[,OBJECT-ID]*      ID(s) of object(s) to be queried
  -S, --query-all                            Print bounding boxes of all objects
  -X, --query-x                              X coordinate of drawing or object (if specified by --query-id)
  -Y, --query-y                              Y coordinate of drawing or object (if specified by --query-id)
  -W, --query-width                          Width of drawing or object (if specified by --query-id)
  -H, --query-height                         Height of drawing or object (if specified by --query-id)

Advanced file processing:
  --vacuum-defs                              Remove unused definitions from the  section(s) of document
  --select=OBJECT-ID[,OBJECT-ID]*            Select objects: comma-separated list of IDs

  --actions=ACTION(:ARG)[;ACTION(:ARG)]*     List of actions (with optional arguments) to execute
  --action-list                              List all available actions

  --verb=VERB[;VERB]*                        List of verbs to execute
  --verb-list                                List all available verbs

Interface:
  -g, --with-gui                             With graphical user interface (required by some actions/verbs)
  --batch-process                            Close GUI after executing all actions/verbs

  --shell                                    Start Inkscape in interactive shell mode


Examples:
  Export input SVG (in.svg) to PDF (out.pdf) format:
        inkscape --export-filename=out.pdf in.svg
  Export input files (in1.svg, in2.svg) to PNG format keeping original name (in1.png, in2.png):
        inkscape --export-type=png in1.svg in2.svg
  See 'man inkscape' and http://wiki.inkscape.org/wiki/index.php/Using_the_Command_Line for more details.
关注
打赏
1665481431
查看更多评论
立即登录/注册

微信扫码登录

0.0738s