Code: Select all
include("scripts/ImportExport/SvgExporter/SvgExporterPG.js");
var exporter = new SvgExporterPG(document, { "scale": "10:1"});
exporter.exportFile("example.svg");
Moderator: andrew
Code: Select all
include("scripts/ImportExport/SvgExporter/SvgExporterPG.js");
var exporter = new SvgExporterPG(document, { "scale": "10:1"});
exporter.exportFile("example.svg");
Obviously, this will fail when -no-gui was called for. Below patch helps though:hungerburg wrote:Code: Select all
include("scripts/ImportExport/SvgExporter/SvgExporterPG.js"); var exporter = new SvgExporterPG(document, { "scale": "10:1"}); exporter.exportFile("example.svg");
Code: Select all
--- SvgExporter.js~ 2011-10-20 14:11:45.527589416 +0200
+++ SvgExporter.js 2011-10-20 14:12:46.277502814 +0200
@@ -1,6 +1,5 @@
include("scripts/library.js");
include("scripts/date.js");
-include("scripts/File/PrintPreview/Print.js");
/**
* File exporter implementation for the SVG format.
@@ -116,7 +115,7 @@
this.svgUnitAbbr = ret[1];
// scale
- this.scale = Print.parseScale(this.scaleStr);
+ this.scale = RMath.parseScale(this.scaleStr);
var bb = this.doc.getBoundingBox();
var size = bb.getSize();
Code: Select all
var td = new RTextData();
td.setText("QCAD rocks");
td.setTextHeight(1);
td.setPosition(p1);
operation.addObject(new RTextEntity(document, td));
I do not use the installer, instead I download the archive and unpack into /opt/, which is a widely used convention for packages like qcad. On a server edition of ubuntu -- depending on how strict -no-gui works -- you may also have to install some X11 libraries on your own, because they are not part of the base. The ldd utility can help you find out which prerequisites are missing: "ldd /opt/qcad3/qcad-bin". Also "apt-cache search something" comes quite handy.alf2006x wrote: Ubuntu-Server 10.04.2 LTS Lucid Lynx - Release amd64
how can i install qcad3 beta3 on this system? will it be enough simple copying linux tar.gz package and unpacking them to run headless qcad3 beta3? or i must do something else?