Schematic plot PDF results in pages out of order after page numbers were changed in schematic editor
Description
Current behavior:
I have a schematic with a few hierarchical sheets. While working on the project I added new sheets, deleted others, and manually re-numbered the sheets to reflect the final desired page order.
Now, when plotting the schematic to PDF using the plot option, the PDF pages are out of order like this:
- Page 1
- Page 2
- Page 4
- Page 3
Expected behavior:
When the schematic is plotted to PDF, the pages of the PDF should match the sheet numbering in the KiCad schematic hierarchy like this:
- Page 1
- Page 2
- Page 3
- Page 4
Steps to reproduce
- Unzip and open the attached KiCad project
- From the Schematic editor, File -> Plot... -> Plot All Pages
- Open the resulting PDF and notice that the page order of the PDF does not match the page order of the KiCad schematic
KiCad Version
Application: KiCad Schematic Editor x64 on x64
Version: 9.0.1, release build
Libraries:
wxWidgets 3.2.6
FreeType 2.13.3
HarfBuzz 10.2.0
FontConfig 2.15.0
Platform: Windows 11 (build 26100), 64-bit edition, 64 bit, Little endian, wxMSW
OpenGL: ATI Technologies Inc., AMD Radeon RX 7900 XTX, 4.6.0 Compatibility Profile Context 24.4.1.240409
wxWidgets: 3.2.6 (wchar_t,wx containers)
Boost: 1.86.0
OCC: 7.8.1
Curl: 8.11.1-DEV
ngspice: 44
Compiler: Visual C++ 1942 without C++ ABI
KICAD_IPC_API=ON
Locale:
Lang: en_US
Enc: UTF-8
Num: 1,234.5
Encoded кΩ丈: D0BACEA9E4B888 (sys), D0BACEA9E4B888 (utf8)
Edited by Jordan Aceto