I am getting (suddenly) an exception when attempting to add a watermark to a PDF.
The exception text is:
A first chance exception of type 'System.ArgumentOutOfRangeException' occurred in aspose.pdf.kit.dll. Additional information: Specified argument was out of the range of valid values.
This occurs when the following code executes:
Dim stamper As Aspose.Pdf.Kit.PdfFileStamp
Dim fileName As String = "a valid PDF path on local or network drive"
stamper = New Aspose.Pdf.Kit.PdfFileStamp(fileName, fileName & "_temp") ' ERROR HERE
Why does this occurs and how do I remedy it? I have uninstalled and reinstalled the toolkit after deleting all occurences of the Aspose.Pdf.Kit.dll. The code that applies the run time license is unchanged and does execute.