Corrupt pdf if footprint contains parentheses
Description
If the description in a footprint contains parentheses, the pdf that is plotted seems to be somewhat corrupt. The menu that shows info about the footprint is not being shown when the footprint is clicked. Also, PyMuPDF is not able to work with the pdf but throws an error.
I don't know if parentheses also causes problem in other fields then the footprint description...
More information here: https://forum.kicad.info/t/problem-with-plotting-pdfs-with-some-footprints/40986
Steps to reproduce
- Plot a pdf using the attached Board file.
- Open the pdf in an viewer.
- There's no menu showing information about the footprint.
- Open the Board file in a text editor.
- Remove "(Script generated with StandardBox.py) (http://www.altechcorp.com/PDFS/PCBMETRC.PDF)" and save the file.
- Plot a new pdf.
- Open the pdf in a viewer.
- The menu with information about the footprint is now shown when the footprint is clicked.
KiCad Version
Application: KiCad PCB Editor 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 11 (build 22621), 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 Albin Dennevi