Hi,
We have an Aspose total license that we are registering with the code below but when we convert a PDF to an image we are getting an "evaluation only" message. Can you please confirm if we are licensed to use the PDF Kit or if this is possibly something else.
NB- we are converting word docs, excel spreadsheets and emails to HTML from the same class with the same license registration code and not getting the evaluation message.
This is called in the constructor every time we instantiate the class:-
private void SetLicense()
{
Aspose.Words.License license = new Aspose.Words.License();
license.SetLicense("Aspose.Total.lic");
}
This is the conversion code which we render in a popup div on our web page:-
public string GetPDFHTML(string fileName)
{
StringBuilder outputString = new StringBuilder();
PdfConverter converter = new PdfConverter();
converter.StartPage = 1;
converter.EndPage = 3;
converter.BindPdf(fileName);
converter.DoConvert();
String prefix = fileName.Replace(".pdf", "");
prefix = prefix.Replace(".PDF", "");
String suffix = ".jpg";
int imageCount = 1;
while (converter.HasNextImage())
{
converter.GetNextImage(prefix + imageCount + suffix, ImageFormat.Png);
outputString.AppendFormat(@"
",
ConfigurationManager.AppSettings["WebPreviewPath"].ToString(),
Path.GetFileName(prefix + imageCount + suffix));
imageCount++;
}
return outputString.ToString();
}
Thanks in advance
James Sutherland
This message was posted using Page2Forum from Licensing - Aspose.Pdf.Kit for .NET