kicad-cli: pcb export pdf accept different layer names than displayed in gui
Description
When exporting pcb into pdf, some of the layer are expected with different names than in gui application. Expected behavior is that kicad-cli
use same names as the gui application.
kicad gui kicad-cli
------------------------
User.Drawings Dwgs.User
User.Comments Cmts.User
User.Eco1 Eco1.User
User.Eco2 Eco2.User
Steps to reproduce
kicad-cli pcb export pdf -o fig/pcb_drawing.pdf ./light_ring_3535x6.kicad_pcb -l User.Drawings,User.Comments,User.Eco1,User.Eco2
Invalid layer name "User.Drawings"
Invalid layer name "User.Comments"
Invalid layer name "User.Eco1"
Invalid layer name "User.Eco2"
At least one or more layers must be specified
KiCad Version
Application: KiCad x86_64 on x86_64
Version: 7.0.1, release build
Libraries:
wxWidgets 3.2.2
FreeType 2.13.0
HarfBuzz 7.1.0
FontConfig 2.14.2
libcurl/8.0.1 OpenSSL/3.0.8 zlib/1.2.13 brotli/1.0.9 zstd/1.5.4 libidn2/2.3.4 libpsl/0.21.2 (+libidn2/2.3.4) libssh2/1.10.0 nghttp2/1.52.0
Platform: ArcoLinux, 64 bit, Little endian, wxGTK, qtile, x11
Build Info:
Date: Mar 12 2023 01:48:29
wxWidgets: 3.2.2 (wchar_t,wx containers) GTK+ 3.24
Boost: 1.81.0
OCC: 7.6.3
Curl: 7.88.1
ngspice: 39
Compiler: GCC 12.2.1 with C++ ABI 1017
Build settings:
KICAD_USE_EGL=ON
KICAD_SPICE=ON
Edited by Libor Wagner