Project

General

Profile

Pstoedit with laos support » History » Version 3

axel, 2012-11-13 18:29

1 1 jaap
h1. Pstoedit with laos support
2
3 2 jaap
We wrote a plugin for *pstoedit*, called drvlaos.h/cpp, which converts a postscript file into printable data in our [[SimpleCode]] format. Thanks to Wolfgang Glunz, author of pstoedit, our driver code is now fairly simple. Most of the work is done by some new features added by Wolfgang in version 3.61Beta of pstoedit.
4 1 jaap
5
h2. How it works
6
7
*Pstoedit* simplifies the incoming postscript for us. With a user-definable filter, pstoedit creates a PNG image that containts all image data and all vectors that are going to be raster-engraved. What remains is the data that should either be cut or marked.
8
* engraving: bitmap based engraving, left to right
9
* marking: low power vector lines
10
* cutting: high power vector lines
11
12
h3. User definable filter
13
14
What is to be cut/marked/engraved can be configured in a configuration file. The file is called laoscfg.ps and should be kept in the pstoedit configuration directory. On Linux, this is usually @/usr/share/pstoedit@ or @/usr/local/share/pstoedit@. The file is in postscript format. It's values can be overwritten in the postscript input file.
15
16
* Thin lines (used for marking/cutting): 1pt or thinner (pt = 0,353mm)
17
* Cutting lines: red thin lines
18
* Marking color: black thin lines
19
20
LaserCuttingSpeed 2
21
LaserCuttingPower 80%
22
LaserCuttingFrequency 10000
23
24
LaserMarkingSpeed 30
25
LaserMarkingPower 80%
26
LaserMarkingFrequency 10000
27
28
LaserEngravingPower 30
29
LaserEngravingSpeed 70
30
LaserEngravingPPI 120
31
LaserEngravingInvert False
32
LaserEngravingMode BW
33
34
LaserBoundaryBox True
35
36
The postscript file is automatically copied when pstoedit (with LaOS patch) is installed.
37
38
h3. Data flow
39
40
Postscript file + Postscript configuration file => ghostscript ==> intermediate output ==> pstoedit backend code ==> output file
41
42
h2. Installation
43
44
Download our latest stable pstoedit version from GitHub:
45 3 axel
@git clone -b laos https://github.com/LaosLaser/pstoedit.git@
46
47 1 jaap
Note the *-b laos*, this is the stable version.
48
 
49
@./configure
50
make
51
make install
52
@