We're sorry Aspose doesn't work properply without JavaScript enabled.

Free Support Forum - aspose.com

Which Licenses I need to use for the below code

Hi Aspose Team,

I am using the follwoing code to insert the images into a pdf document.

Aspose.Words.License license = new Aspose.Words.License();

Aspose.Pdf.Generator.Pdf pdf = new Aspose.Pdf.Generator.Pdf();
string[] fileEntries = Directory.GetFiles(@"D:\Aspose\RDP\NEWFiles\Images\", "*.png");

int length = fileEntries.GetLength(0);
int counter;

for (counter = 0; counter < length; counter++)
// Create a section object
Aspose.Pdf.Generator.Section section1 = pdf.Sections.Add();
// creat an image object

Aspose.Pdf.Generator.Image image1 = new Aspose.Pdf.Generator.Image(section1);
image1.ImageInfo.File = fileEntries[counter];
image1.ImageInfo.ImageFileType = Aspose.Pdf.Generator.ImageFileType.Png;
// Create a BitMap object in order to get the information of image file
Bitmap myimage = new Bitmap(fileEntries[counter]);

// check if the width of the image file is greater than Page width or not
if (myimage.Width > section1.PageInfo.PageWidth)
// if the Image width is greater than page width, then set the page orientation to Landscape
section1.IsLandscape = true;
// if the Image width is less than page width, then set the page orientation to Portrait
section1.IsLandscape = false;
// add the image to paragraphs collection of the PDF document


The issue I am facing here is that, in the genereated pdf file I am obtaing the message "Evaluation Only. Created with Aspose.Pdf. Copyright 2002-2011 Aspose Pty Ltd"
and a watermark "Aspose.pdf".

Will you please let me know which licenses I need to include to avoid the warning message and the watermark.

Please see the attached file.


Hi Siddi,

Thanks for your interest in our products.

You can use Aspose.Pdf or Aspose.Total license to avaoid the warning message. Please use the below link to acquire a temporary license (choose “Get a Temporary License” option) for testing of the product.


Please feel free to contact support in case you face any problem.

Thanks & Regards,

Hi Siddi,

Adding more to Rashid’s post, Aspose.Pdf for .NET and Aspose.Words for .NET
are two different products and the license of these products are
not replaceable
each other (License of one product cannot be used with the other). You can either get an Aspose.Pdf for .NET license (if you are only
using Aspose.Pdf for .NET) or you can get the license for both Aspose.Pdf for
.NET and Aspose.Words and set them separately in your code (if you are using
both products). Also, you may get the Aspose.Total License that can be used
with multiple products (single license). Please see the following documentation
links for setting up license for Aspose.Pdf for .NET:

File or Stream Object

License as Embedded Resource

Also, following is our purchase forum link if you have any
queries regarding your licensing requirements.


Thank You & Best Regards,