Hi
Iim using the "Clone" method of PDFDocument to clone a PDFDocument Object, but the method is returning a "PdfNewDocument" type object instead of PDFDocument
Is there a workaround of this?
Below is the code i'm using
Private Function clonePDF(ByVal Pdftemplate As PdfDocument) As PdfDocument
Dim NewPDF As PdfDocument
NewPDF = Pdftemplate.Clone()
Return NewPDF
End Function
the error i get is:
"Can not convert an object of type 'Spire.Pdf.PdfNewDocument' to type 'Spire.Pdf.PdfDocument'."