eeschema: PDF background missing on pages with border-less graphic shape

Description

When plotting the PDF from eeschema, the background seems to be missing on pages that contain graphic shapes with no border. Interestingly, also junction dots seem to disappear.

It would be expected that the background is white regardless of border configuration of single objects. One object is enough to trigger the issue for the page it is on.

Overview of the 3 pages in the demo project:

Screenshot_from_2026-04-09_14-48-25

Page 2 detail:

Screenshot_from_2026-04-09_14-48-45

Page 3 detail, missing background color and junction dot:

Screenshot_from_2026-04-09_14-48-49

The only difference between the 2 pages (demo_ok.kicad_sch and demo_nok.kicad_sch) is the border property of the shape.

image

Disabling the border checkbox leads to a (width -0.0001) property in the kicad_sch.

Steps to reproduce

  1. Open the schematic in the attached demo project.
  2. Plot the PDF with standard settings (= Plot background color disabled).
  3. Open the PDF in a viewer. It seems that not all viewers interpret the PDF the same way.

The problem is apparent in:

  • Ubuntu Document Viewer / GNOME Evince 46.3.1 on Ubuntu 24.04
  • Adobe Acrobat Reader 2026.001.21367 on Windows 11

The problem is not apparent in:

  • Chrome integrated PDF viewer
  • PDFgear 2.1.5 on Windows 11

demo.zip demo.pdf

KiCad Version

Application: KiCad x86_64 on x86_64

Version: 9.0.8-9.0.8~ubuntu24.04.1, release build

Libraries:
	wxWidgets 3.2.4
	FreeType 2.13.2
	HarfBuzz 8.3.0
	FontConfig 2.15.0
	libcurl/8.5.0 OpenSSL/3.0.13 zlib/1.3 brotli/1.1.0 zstd/1.5.5 libidn2/2.3.7 libpsl/0.21.2 (+libidn2/2.3.7) libssh/0.10.6/openssl/zlib nghttp2/1.59.0 librtmp/2.3 OpenLDAP/2.6.10

Platform: Ubuntu 24.04.4 LTS, 64 bit, Little endian, wxGTK, X11, ubuntu, x11
OpenGL: Intel, Mesa Intel(R) Iris(R) Xe Graphics (RPL-P), 4.6 (Compatibility Profile) Mesa 25.2.8-0ubuntu0.24.04.1

Build Info:
	Date: Mar 18 2026 18:26:48
	wxWidgets: 3.2.4 (wchar_t,wx containers) GTK+ 3.24
	Boost: 1.83.0
	OCC: 7.6.3
	Curl: 8.5.0
	ngspice: 42
	Compiler: GCC 13.3.0 with C++ ABI 1018
	KICAD_IPC_API=ON

Locale: 
	Lang: en_US
	Enc: UTF-8
	Num: 1,234.5
	Encoded кΩ丈: D0BACEA9E4B888 (sys), D0BACEA9E4B888 (utf8)
Edited by Christoph Bächler