From ac2ceedae247796902327a1a2bfe71063905099f Mon Sep 17 00:00:00 2001 From: John Beard Date: Sat, 2 Jun 2018 17:05:28 +0100 Subject: [PATCH] Add HPGL and PDF to config --- docs/samples/generic_plot.kiplot.yaml | 57 ++++++++++++++++++++++++++- kiplot/plot_config.py | 3 ++ 2 files changed, 58 insertions(+), 2 deletions(-) diff --git a/docs/samples/generic_plot.kiplot.yaml b/docs/samples/generic_plot.kiplot.yaml index 607db5c8..eed3be33 100644 --- a/docs/samples/generic_plot.kiplot.yaml +++ b/docs/samples/generic_plot.kiplot.yaml @@ -134,7 +134,7 @@ outputs: tent_vias: true check_zone_fills: true - # PS options + # SVG options line_width: 0.25 drill_marks: full mirror_plot: true @@ -143,4 +143,57 @@ outputs: - layer: F.Cu suffix: F_Cu - layer: F.Fab - suffix: F_Fab \ No newline at end of file + suffix: F_Fab + + - name: HPGL + comment: "HPGL files" + type: hpgl + dir: gerberdir + options: + exclude_edge_layer: false + exclude_pads_from_silkscreen: false + use_aux_axis_as_origin: false + plot_sheet_reference: false + plot_footprint_refs: true + plot_footprint_values: true + force_plot_invisible_refs_vals: false + tent_vias: true + check_zone_fills: true + + # HPGL options + drill_marks: full + mirror_plot: true + sketch_plot: true + scaling: 0 # auto + pen_width: 0.5 + layers: + - layer: F.Cu + suffix: F_Cu + - layer: B.SilkS + suffix: B_Silks + + - name: PDF + comment: "PDF files" + type: pdf + dir: gerberdir + options: + exclude_edge_layer: false + exclude_pads_from_silkscreen: false + use_aux_axis_as_origin: false + plot_sheet_reference: false + plot_footprint_refs: true + plot_footprint_values: true + force_plot_invisible_refs_vals: false + tent_vias: true + check_zone_fills: true + + # PDF options + drill_marks: small + mirror_plot: false + negative_plot: false + line_width: 0.01 + layers: + - layer: F.Cu + suffix: F_Cu + - layer: B.SilkS + suffix: B_Silks \ No newline at end of file diff --git a/kiplot/plot_config.py b/kiplot/plot_config.py index 7817a9e1..6d324dc0 100644 --- a/kiplot/plot_config.py +++ b/kiplot/plot_config.py @@ -230,6 +230,9 @@ class HpglOptions(LayerOptions): super(HpglOptions, self).__init__() self._supports_sketch_mode = True + self._supports_mirror = True + self._supports_scaling = True + self._supports_drill_marks = True self._pen_width = None