Attempting the create a page template with PdfPageBase CreateTemplate().Draw(...) throws the following exception with Spire.Pdf 5.6.2:
System.NullReferenceException
HResult=0x80004003
Message=Object reference not set to an instance of an object.
Source=Spire.Pdf
StackTrace:
at Spire.Pdf.PdfPageBase.ᜂ(spr A_0)
at Spire.Pdf.PdfPageBase.ᜀ(PdfCanvas A_0)
at Spire.Pdf.PdfPageBase.CreateTemplate()