Feature request: support local Datasheet links incl. variable substitution in ploted PDF
Description
two close linked bugs / missing features:
- local stored datasheets can not be opened in exported (ploted) pdf file while web url Datasheets work
- variable substitution on datasheet links to pdf not supported
it's an extension of #12153 (closed)
Steps to reproduce (on windows)
- open kicad on Windows
- define "KICAD_DATASHEET_PATH" = "C:\Datasheets" in Preferences -> Configure Paths
- create folder "C:\Datasheets"
- copy https://docs.kicad.org/7.0/en/eeschema/eeschema.pdf and https://docs.kicad.org/7.0/en/getting_started_in_kicad/getting_started_in_kicad.pdf into the new created folder "C:\Datasheets"
- download and open the example project + library Kicad_Datasheet_Demo.7z
- open the project, open the schematic
- right click on the 3 symbol, now 3 different datasheet should be opened:
- first one from the web
- second one with full local datasheet path
- third one with variable substitution and local datasheet path
- now plot the schematic to pdf
- open the pdf in Adobe Reader DC
- leftclick again on those 3 symbols, select the datasheet entry, only the first one with the web link works and opens a datasheet the same way as it does in eeschema.
KiCad Version
Application: KiCad x64 on x64
Version: 7.0.1, release build
Libraries:
wxWidgets 3.2.2
FreeType 2.12.1
HarfBuzz 5.0.1
FontConfig 2.14.1
libcurl/7.83.1-DEV Schannel zlib/1.2.13
Platform: Windows 10 (build 19044), 64-bit edition, 64 bit, Little endian, wxMSW
Build Info:
Date: Mar 11 2023 03:41:46
wxWidgets: 3.2.2 (wchar_t,wx containers)
Boost: 1.80.0
OCC: 7.6.2
Curl: 7.83.1-DEV
ngspice: 39
Compiler: Visual C++ 1934 without C++ ABI
Build settings:
KICAD_SPICE=ON
Edited by Stefan