QCAD - 2D CAD System.

Click here for a documentation of the DokuWiki formatting syntax that can be used in reports

Please search for existing tasks (also closed ones) before opening a new task.

Please make sure that you are using the latest Version of QCAD before posting a bug (menu Help > Check for Updates)


FS#11 - File: SVG Export

Attached to Project: QCAD
Opened by Anonymous Submitter - Friday, 15 April 2011, 09:21 GMT+2
Last edited by Andrew (andrew) - Friday, 21 June 2013, 00:10 GMT+2
Task Type Feature Request
Category QCAD (main)
Status Closed
Assigned To Andrew (andrew)
Operating System All
Severity Low
Priority Normal
Reported Version Development
Due in Version Post 3.0
Due Date Undecided
Percent Complete 100%
Votes 0
Private No



  • ExporterPG (preserve geometry)
    • Texts are exported as text tags, with ‘similar’ font
  • text
    • other formatting
      • exporter for presentation (based on paths): implemented
      • ExporterPG: TODO


  • Global Preferences:
    • Number of generated segments for ellipses [postponed]
      • Problem: exported SVG files can be very large under certain circumstances
  • ExporterPG
    • Export layer information if possible / maybe group by layer [postponed]


  • hatches
    • solid fill
    • pattern
  • text
    • line breaks
      • ExporterPG: Since line spacing is rendered differently in SVG, the used text space might be different, too.
    • position broken for some texts
This task depends upon

Closed by  Andrew (andrew)
Friday, 21 June 2013, 00:10 GMT+2
Reason for closing:  Implemented
Additional comments about closing:  Mostly implemented. Open new feature request for desired features.
Comment by Anonymous Submitter - Monday, 18 April 2011, 16:54 GMT+2

How should dimensions be exported ("normal" SVG exporter)?

  • As 1 path element that contains text, lines and arrows (everything as path element, text cannot be edited)


  • As 1 text element and 1 path element (lines and arrows)
Comment by Andrew (andrew) - Monday, 18 April 2011, 22:49 GMT+2

Everything as path to render exactly like in QCAD.

Comment by Anonymous Submitter - Wednesday, 20 April 2011, 16:47 GMT+2

text line breaks: "SVG has no inherent support for line breaks or text wrapping, so multiline text layout is possible only by using multiple <text> elements or <tspan> elements embedded within <text> elements." reference

Inkscape uses the flowRoot/flowRegion/flowPara mechanism to represent multi-line texts:

    <rect width="54.667633" height="28.062719" x="38.44957" y="5.6952629"/>
Comment by Andrew (andrew) - Wednesday, 20 April 2011, 16:53 GMT+2

flowRoot/flowRegion/flowPara looks good for now.
It seems to be SVG 1.2 (working draft), but let's use this until we have data from customers for whom this does not work.

Comment by Peter (hungerburg) - Saturday, 27 August 2011, 15:06 GMT+2

This is the cumulated patch of todays work done on the SVG (PG) exporters. Licence grant: You may use it in whichever way you please, but not to ridicule me.

Thank you for the great application.