Skip to content

Commit ac2ceed

Browse files
committed
Add HPGL and PDF to config
1 parent 57c3209 commit ac2ceed

File tree

2 files changed

+58
-2
lines changed

2 files changed

+58
-2
lines changed

docs/samples/generic_plot.kiplot.yaml

Lines changed: 55 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -134,7 +134,7 @@ outputs:
134134
tent_vias: true
135135
check_zone_fills: true
136136

137-
# PS options
137+
# SVG options
138138
line_width: 0.25
139139
drill_marks: full
140140
mirror_plot: true
@@ -143,4 +143,57 @@ outputs:
143143
- layer: F.Cu
144144
suffix: F_Cu
145145
- layer: F.Fab
146-
suffix: F_Fab
146+
suffix: F_Fab
147+
148+
- name: HPGL
149+
comment: "HPGL files"
150+
type: hpgl
151+
dir: gerberdir
152+
options:
153+
exclude_edge_layer: false
154+
exclude_pads_from_silkscreen: false
155+
use_aux_axis_as_origin: false
156+
plot_sheet_reference: false
157+
plot_footprint_refs: true
158+
plot_footprint_values: true
159+
force_plot_invisible_refs_vals: false
160+
tent_vias: true
161+
check_zone_fills: true
162+
163+
# HPGL options
164+
drill_marks: full
165+
mirror_plot: true
166+
sketch_plot: true
167+
scaling: 0 # auto
168+
pen_width: 0.5
169+
layers:
170+
- layer: F.Cu
171+
suffix: F_Cu
172+
- layer: B.SilkS
173+
suffix: B_Silks
174+
175+
- name: PDF
176+
comment: "PDF files"
177+
type: pdf
178+
dir: gerberdir
179+
options:
180+
exclude_edge_layer: false
181+
exclude_pads_from_silkscreen: false
182+
use_aux_axis_as_origin: false
183+
plot_sheet_reference: false
184+
plot_footprint_refs: true
185+
plot_footprint_values: true
186+
force_plot_invisible_refs_vals: false
187+
tent_vias: true
188+
check_zone_fills: true
189+
190+
# PDF options
191+
drill_marks: small
192+
mirror_plot: false
193+
negative_plot: false
194+
line_width: 0.01
195+
layers:
196+
- layer: F.Cu
197+
suffix: F_Cu
198+
- layer: B.SilkS
199+
suffix: B_Silks

kiplot/plot_config.py

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -230,6 +230,9 @@ def __init__(self):
230230
super(HpglOptions, self).__init__()
231231

232232
self._supports_sketch_mode = True
233+
self._supports_mirror = True
234+
self._supports_scaling = True
235+
self._supports_drill_marks = True
233236

234237
self._pen_width = None
235238

0 commit comments

Comments
 (0)