Using the following piece of code returns no error. But when i open the watermarked pdf returns adobe read error 14.
PdfLoadOptions loadOptions = new PdfLoadOptions();
// Constants.InDocumentPdf is an absolute or relative path to your document. Ex: @"C:\Docs\document.pdf"
using (Watermarker watermarker = new Watermarker(filePath_open, loadOptions))
{
PdfArtifactWatermarkOptions options = new PdfArtifactWatermarkOptions();
// Add text watermark
TextWatermark textWatermark = new TextWatermark("This is an artifact watermark", new Font("Arial", 8));
textWatermark.HorizontalAlignment = HorizontalAlignment.Right;
options.PageIndex = 1;
watermarker.Add(textWatermark, options);
//// Add image watermark
//using (ImageWatermark imageWatermark = new ImageWatermark("C:\\Users\\lmcastro\\OneDrive - CRITICAL SOFTWARE, S.A\\Test Projects\\SyncFusion_Library\\GroupDocks\\E1r9X.png"))
//{
// watermarker.Add(imageWatermark, options);
//}
watermarker.Save(filePath_save);
}