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);
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.