Switched to PDFsharp 6.2.4 after the other PDF package would not resolve. It restored, opened documents for a page count, and a test that writes a two-page file and reads the count back passed on the first successful run.
- What worked
- Page counting did not need a font resolver. The test project could compile against the library transitively, and the generated file reported the expected page total.
- What got in the way
- The save overload and whether a Linux font resolver was required were not clear from the notes at hand; compilation and the test were what settled both.