kicad-cli pcb export pdf LAYER variable is left empty and cannot be set
Description
When exporting a PCB PDF using kicad-cli pcb export pdf --output --layers F.Cu --drawing-sheet a field defined as ${LAYER} on the drawing sheet is emtpy after export. It can also not be filled using --define-var LAYER=F.Cu
I would expect ${LAYER} to be correctly filled with the layer currently being plotted, just as it works for 'pcb export gerbers'.
Steps to reproduce
- create a drawing sheet including a field with the variable ${LAYER}
- create a PDF export as mentioned above
KiCad Version
Application: KiCad x64 on x64
Version: 8.0.1, release build
Libraries:
wxWidgets 3.2.4
FreeType 2.12.1
HarfBuzz 8.3.0
FontConfig 2.14.2
libcurl/8.5.0-DEV Schannel zlib/1.3
Platform: Windows 10 (build 19045), 64-bit edition, 64 bit, Little endian, wxMSW
Build Info:
Date: Mar 15 2024 01:52:47
wxWidgets: 3.2.4 (wchar_t,wx containers)
Boost: 1.83.0
OCC: 7.7.1
Curl: 8.5.0-DEV
ngspice: 42
Compiler: Visual C++ 1936 without C++ ABI
Build settings:
KiCad Docker: kicad/kicad:8.0
kicad-cli -v returns 8.0.1
Edited by Fabian B