Spire.PDF is a professional PDF library applied to creating, writing, editing, handling and reading PDF files without any external dependencies. Get free and professional technical support for Spire.PDF for .NET, Java, Android, C++, Python.

Mon Aug 14, 2017 9:43 pm

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'."

ecadena
 
Posts: 1
Joined: Thu Nov 03, 2016 10:11 pm

Tue Aug 15, 2017 7:09 am

Hello,

Thanks for your inquiry. I have noticed the issue you posted, once it is resolved, or we have some other update, we will let you know ASAP.

Sincerely,
Gary
E-iceblue support team
User avatar

Gary.zhang
 
Posts: 1380
Joined: Thu Apr 04, 2013 1:30 am

Tue Sep 26, 2017 7:00 am

Hello,

Glad to inform you that the issue has get resolved in the newest hotfix(Spire.PDF Pack(Hot Fix) Version:3.9.360).

Sincerely,
Gary
E-iceblue support team
User avatar

Gary.zhang
 
Posts: 1380
Joined: Thu Apr 04, 2013 1:30 am

Return to Spire.PDF