Inkscape.org
Beginners' Questions Smoothing HPGL Curves when exporting via Command Line
  1. #1
    vrodrigues vrodrigues @vrodrigues

    Hi all

    I'm new to Inkscape and am successfully using the command line to export SVG files to HPGL format:

    inkscape --export-type=hpgl --export-filename=hpglname.hpgl original.svg
    

     

     

    However, the generated HPGL files exhibit jagged curves due to excessive line segments.

    When using the Windows Inkscape app, I can adjust settings like "overcut," "tool offset correction," and "curve flatness" to produce smoother curves in the exported HPGL.

    Is there a way to configure these settings, specifically "curve flatness," when exporting via the command line?

     

     

  2. #2
    Polygon Polygon @Polygon🌶

    In the DXF export dialog you can use "ROBO-Master compatible spline output" which will maintain curvature instead of "LWPolyline" which means straight segments of a certain length and what the "hpgl" export dialog don`t offer afaik.

  3. #3
    vrodrigues vrodrigues @vrodrigues

    i do see that option when exporting to DXF format using the GUI. Probably it does the same as the Curve Flatness on HPGL.

    But do you have any idea how to do that when exporting using the command line?
     

  4. #4
    Polygon Polygon @Polygon🌶

    Unfortunately not my cup of tea - never used Inkscape that way.

  5. #5
    aperitero aperitero @aperitero

    It seems to be possible if you invoke the extension directly from the command line. On a linux system it would be something like:
    python /usr/share/inkscape/extensions/hpgl_output.py --help

Inkscape Inkscape.org Inkscape Forum Beginners' Questions Smoothing HPGL Curves when exporting via Command Line