Model PDF export creates empty diagram-sized pages in PDF when diagrams are excluded and documentation included in the export
The code in DiagramPainter will always add a new page for every provided diagram (Node) after at least one page is exported into the PDF. This will happen regardless of whether includeDiagrams
is true
or false
. When includeDiagrams = false
those added pages will stay empty and the documentation printing will start a new page to contain the documentation.
The empty diagram pages should not be added at all when diagrams are not included in the print.