Hi We use Aspose PDF 7.4.0.0 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();
_AsposeLicense.SetLicense(“Aspose.Pdf.lic”);
Aspose.BarCode.License _AsposeBarCodeLicense = new Aspose.BarCode.License();
_AsposeBarCodeLicense.SetLicense(“Aspose.BarCode.lic”);
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);
Thanks,
Harshal