Free Support Forum -

Aspose PDF License related

Hi We use Aspose PDF dll and Aspose Barcode (.NET) . Sometime we have seen watermarks on the PDF even when the licenses are loaded properly. Is it because too many processes are accessing the license simultaneously ?

Following is the sample code we use :-

string tempFile = @"C:\Temp\barcode.jpg"
string inpdfFile = "@"C:\Temp\input.pdf"
string outpdfFile= "@“C:\Temp\output.pdf”

Aspose.Pdf.License _AsposeLicense = new Aspose.Pdf.License();
Aspose.BarCode.License _AsposeBarCodeLicense = new Aspose.BarCode.License();

BarCodeBuilder bb = CreateBarcodeObject(“012345678901”);
bb.Save(memoryStream, System.Drawing.Imaging.ImageFormat.Jpeg);
barCodeImage = System.Drawing.Image.FromStream(memoryStream);
barCodeImage.Save(tempFile, System.Drawing.Imaging.ImageFormat.Jpeg);

mendor = new PdfFileMend(inpdfFile, outpdfFile);
mendor.AddImage(tempFile, 1, LowerX, LowerY, UpperX, UpperY);