Free Support Forum - aspose.com

Setting Aspose.Total.lic does not remove Evaluation message from PDF

Hello

I'm converting from Word .doc to PDF. I set the license including the namespaces in my class's constructor as follows:

Private _wordLic As Aspose.Words.License
Private _pdfLic As Aspose.Pdf.Kit.License

Public Sub New()
_wordLic = New Aspose.Words.License
_wordLic.SetLicense("Aspose.Total.lic")
_pdfLic = New Aspose.Pdf.Kit.License
_pdfLic.SetLicense("Aspose.Total.lic")
End Sub

All the message's on the forums seem to say this is how to do it with Aspose.Total.lic, however the evalution message continues to be displayed on each PDF created.

Any suggesions? Many Thanks, Jacqui

Hello Jacqui,

Thanks for considering Aspose.

In order to convert Word document to Pdf kindly use Aspose.Pdf and set the license variable for Aspose.Pdf

Private _pdfLic As Aspose.Pdf.License
_pdfLic = New Aspose.Pdf.License
_pdfLic.SetLicense("Aspose.Total.lic")

make sure you have placed the license file in the same folder as Aspose.Pdf.dll when specifying just the file name without path, else provide the full path to Aspose.Total.lic file.

Hi

Setting the license to Aspose.Pdf.License, instead of Aspose.Pdf.Kit.License resolved the issue.

Many Thanks