42 Commits

Author SHA1 Message Date
Jeff Young 50bd5d1a21 Don't account for non-physical layers when generating board outline.
Fixes https://gitlab.com/kicad/code/kicad/-/issues/23115
2026-02-27 19:01:11 +00:00
Seth Hillbrand c52ab91c84 Reduce compile times by extracting headers
Break the most expensive header include chains that contaminate the
largest number of translation units

New lightweight headers for extractdded types:
font_metrics.h, mouse_drag_action.h, board_project_settings_params.h,
common_settings_internals.h, wx_infobar_message_type.h,
zone_layer_properties_grid.h
2026-02-13 17:10:45 -08:00
Mike Williams c9aaf8f769 pdf: use PCB theme when none specified
When a jobset omits color_theme, resolve it from the PCB editor settings
instead of the built‑in default. This makes jobset PDF/SVG output match
the active theme and avoids the “theme not found” warning when the job
theme is empty.

Fixes: https://gitlab.com/kicad/code/kicad/-/issues/21749
2026-01-22 10:35:43 -05:00
Seth Hillbrand 6bb02dc9fb Enable file naming for single-page pdf
If we are only outputting a single document, the job file should allow
naming the pdf

Fixes https://gitlab.com/kicad/code/kicad/-/issues/20903
2026-01-01 10:56:52 -08:00
Seth Hillbrand 99fdf2b9be Added: DXF Multilayer plotting
DXF layers and appropriate layer colors added.  Option mimics the PDF
multilayer option

Fixes https://gitlab.com/kicad/code/kicad/-/issues/2526
2025-12-02 11:09:35 -08:00
Mark Roszko ce545f4d6c ADDED: Ability to set a PDF background color for PCB plots
Fixes https://gitlab.com/kicad/code/kicad/-/issues/20873
2025-06-19 19:34:31 -04:00
Jeff Young 18e107529a Don't force callers of GetAppSettings to implement exception processing. 2025-06-14 20:25:59 +01:00
Jeff Young 38385340b1 Don't report missing color theme in B&W mode.
Fixes https://gitlab.com/kicad/code/kicad/-/issues/20923
2025-05-14 15:41:37 +01:00
Salvador E. Tropea c2c987f9c0 Always use PCB_PLOTTER::PlotJobToPlotOpts for plotter exports
Removes PCBNEW_JOBS_HANDLER::populateGerberPlotOptionsFromJob
2025-05-14 00:42:05 +00:00
Jeff Young 34139ae305 Push generalised sketch-mode support down into DXF_PLOTTER. 2025-05-10 17:31:59 +01:00
Jeff Young c452fe9686 REMOVED: HPGL plotting.
Its sketch-mode greatly complicates the plotting
code and it is poorly maintained due to lack of
use.
2025-05-10 17:31:59 +01:00
Salvador E. Tropea 1c07703851 Add "scale" option to "pcb export plotter" CLI and JOB
- Not for gerbers
- DXF, HPGL, PDF, PS and SVG
- Remove the GUI limitation that prevented the use of border & title when
  using a scale != 1
2025-05-06 16:32:53 +00:00
Salvador E. Tropea c528f3c605 Add HPGL job support
- kicad-cli pcb export hpgl
- "Export HPGL" job
2025-04-28 23:05:45 +00:00
Salvador E. Tropea a590d28c8e ADDED: Postscript job support 2025-04-23 13:41:00 +00:00
Jeff Young 6e566b2819 Remove shadowed type (DRILL_MARKS).
Fixes https://gitlab.com/kicad/code/kicad/-/issues/20522
2025-03-31 20:00:16 +01:00
Jeff Young d3f57fac5a Must assign extension to keep from stripping last '.' section.
Fixes https://gitlab.com/kicad/code/kicad/-/issues/20065
2025-03-20 09:48:08 +00:00
Jeff Young 0aa4f11970 Fix format string. 2025-03-20 09:48:08 +00:00
Jeff Young 1848401d5b Update layer per page.
Fixes https://gitlab.com/kicad/code/kicad/-/issues/20352
2025-03-17 09:51:53 +00:00
Jeff Young dd921354fc Cleanup. 2025-03-17 09:50:06 +00:00
Marek Roszko 237953fd55 Move SVG_PLOTTER to {fmt} to punt locale issues 2025-03-05 19:03:25 -05:00
Jeff Young 9be7464681 Keep user-defined common layers order.
(And use it when plotting.)

(And don't shadow it with a second variable.)

Fixes https://gitlab.com/kicad/code/kicad/-/issues/20214
2025-03-04 23:39:19 +00:00
Marek Roszko b6743653f3 Restore the page size mode behavior
Fixes https://gitlab.com/kicad/code/kicad/-/issues/20014
2025-03-03 23:15:32 -05:00
jean-pierre charras eaa1e6d594 Fix a collision with a Windows define and our use of the same var name.
We use IN for INCH as units, but IN is defined in a Windows header
2025-03-02 11:34:30 +01:00
Jeff Young f951497a4f Code brevity. 2025-03-01 21:58:31 +00:00
Jeff Young 80e7698131 MOVED subtract-mask-from-silk to general section.
(Was Gerber-specific.)
2025-02-19 23:43:53 +00:00
Jeff Young 4fa02690f8 REMOVED force-plot-invisible-items.
It's dangerous as the router and DRC will have been
run without regard to invisible items.

(See #19420.)
2025-02-19 23:43:53 +00:00
Seth Hillbrand 31a3a7d406 Make cli obey its own options
--erd and --ev are cli options to prevent plotting of the reference
designator and the value.  These need to be passed to plot options in
order to be obeyed
2025-02-11 10:57:21 -08:00
Jon Evans 28a4ca2d80 Mark string for translation 2025-01-27 19:04:32 -05:00
Jon Evans 8a7bf78b38 Fix color theme load logic in jobs
Fixes https://gitlab.com/kicad/code/kicad/-/issues/19754
2025-01-27 19:00:35 -05:00
Jeff Young a1fbff35e8 Formatting. 2025-01-17 22:07:07 +00:00
Jeff Young 3b07401912 Formatting. 2025-01-16 13:12:25 +00:00
Marek Roszko 5c3004b96e Avoid altering the configured output path during run in case of empty paths 2025-01-14 20:44:51 -05:00
Marek Roszko db56d51838 Fix output paths for jobs again 2025-01-11 19:05:45 -05:00
Marek Roszko 4cfd6f71e5 Fix plot job paths not saving 2025-01-11 19:05:44 -05:00
Marek Roszko ecfc868832 Combine/move svg plot job to single path 2025-01-09 21:21:09 -05:00
Marek Roszko 39ab530db3 Fix single pdf plot
Fixes https://gitlab.com/kicad/code/kicad/-/issues/19501
2025-01-05 13:21:19 -05:00
Marek Roszko 9a08519a38 Load color theme correctly for job pdf export
Fixes https://gitlab.com/kicad/code/kicad/-/issues/19455
2025-01-04 12:02:49 -05:00
JamesJCode 20def236bf Don't strip last directory name when plotting 2025-01-02 22:12:24 +00:00
JamesJCode 7654c7f6e1 Use correct layer name and page number in single page PDF plots
Fixes https://gitlab.com/kicad/code/kicad/-/issues/19453
2025-01-02 22:03:52 +00:00
Seth Hillbrand 0b2d4d4879 Revise Copyright statement to align with TLF
Recommendation is to avoid using the year nomenclature as this
information is already encoded in the git repo.  Avoids needing to
repeatly update.

Also updates AUTHORS.txt from current repo with contributor names
2025-01-01 14:12:04 -08:00
Marek Roszko 8f750baa79 Deprecate and support using the more normal "plot" logic for dxf and svg. 2024-12-31 23:10:24 -05:00
Marek Roszko cad0e3fc27 Lets move the chunk of plot logic from dialog_plot and share it with the jobs handler
More factoring in V10. This is just because it's getting annoying really lol
2024-12-31 21:15:05 -05:00