Remove ToPdfPage extension for Image extension due to PdfSharp requirement that XGraphics.FromPdfPage requires a backing PdfDocument for the page. Alternative option was to create a new black PdfDocument. Not sure of the "value" for that option.
Ensure page is added to document before call XGraphics.FromPdfPage