Feature request: Ability to not add menus to all footprints when plotting to PDF
Description
From 7.0.1 these menus are added to every footprint when plotting a PDF:
I really like this feature, but I would like to have the possibility not to include these menus. I would also like to have the ability to only include menus for the top or bottom layer footprints.
As of now, even if I'm only plotting "F_Silkscreen", I'm getting menus for all footprints on the bottom side of the board.
The main reason that I like to be able to turn them off completely is that in my plugin, Board2Pdf, every layer is plotted separately and merged together. Since these menus are always added, they are added to all layers. This seems to work okay, but it adds ~500 kb per layer to a "normal sized" pcb. Using my default settings the final file size goes from 1.7 MB to 10 MB.
As you understand, I also want to be able to use this feature using the SWIG-API. To be honest, that's really all I want. But I do think that there's a good idea to add it to the Plot dialog as well.
KiCad Version
Application: KiCad PCB Editor x64 on x64
Version: 7.0.1-31-g64641c28ef, release build
Libraries:
wxWidgets 3.2.2
FreeType 2.12.1
HarfBuzz 6.0.0
FontConfig 2.14.1
libcurl/7.88.1-DEV Schannel zlib/1.2.13
Platform: Windows 11 (build 22621), 64-bit edition, 64 bit, Little endian, wxMSW
Build Info:
Date: Mar 17 2023 04:13:40
wxWidgets: 3.2.2 (wchar_t,wx containers)
Boost: 1.81.0
OCC: 7.6.3
Curl: 7.88.1-DEV
ngspice: 39
Compiler: Visual C++ 1934 without C++ ABI
Build settings:
KICAD_SPICE=ON