|
@ -247,6 +247,10 @@ def hpgl (id): |
|
|
# to SVG |
|
|
# to SVG |
|
|
svg = ascii2svg(ascii_input, params['weight']) |
|
|
svg = ascii2svg(ascii_input, params['weight']) |
|
|
|
|
|
|
|
|
|
|
|
svg = re.sub(r'\<rect class="backdrop" x="\d+" y="\d+" width="\d+" height="\d+">\<\/rect\>', '', svg, flags=re.M) |
|
|
|
|
|
|
|
|
|
|
|
#print(svg) |
|
|
|
|
|
|
|
|
# store as a temporary file |
|
|
# store as a temporary file |
|
|
(svg_file, svg_path) = tempfile.mkstemp('.svg') |
|
|
(svg_file, svg_path) = tempfile.mkstemp('.svg') |
|
|
|
|
|
|
|
|