![]() Image watermarks can be useful for protecting your intellectual property, establishing your brand identity, adding security features to your documents, and indicating confidentiality.įollow these steps to add an image watermark to a PDF file using the Syncfusion PDF Library: Text watermark added in a PDF file Add image watermark to a PDF using C# DrawString("Imported using Essential PDF", new PdfStandardFont(PdfFontFamily.Helvetica, 20), PdfBrushes.Red, new RectangleF(50, 50, 250, 50), new PdfStringFormat(PdfTextAlignment.Center, PdfVerticalAlignment.Middle)) įileStream stream = new FileStream("Output.pdf", FileMode.Create) Įxecute this code example to get a text watermarked PDF like the following screenshot. PdfWatermarkAnnotation watermark = new PdfWatermarkAnnotation(new RectangleF(100, 300, 400, 400)) PdfLoadedPage lpage = loadedDocument.Pages as PdfLoadedPage PdfLoadedDocument loadedDocument = new PdfLoadedDocument(inputStream) The following code example adds a text watermark in a PDF document using C#. Finally, save the PDF file using the Save method.Add the watermark annotation to the annotations collection.Include the watermark text using the DrawString method.Create an instance of the PdfWatermarkAnnotation class and customize the location, size, and opacity.Then, get the page reference (where you want to include the watermark text) in the PdfLoadedPage object.Use the PdfLoadedDocument class to load an existing PDF document.Text watermarks are a practical technique for maintaining document security, intellectual property protection, and branding initiatives.įollow these steps to add a text watermark to a PDF file using the Syncfusion PDF Library: ![]() Install the NuGet package as a reference to your.Add an image watermark to a PDF using C#.This article will cover creating a watermark for a PDF file using the Syncfusion. The library provides APIs for programmatically adding watermarks to PDF documents, with options for customizing the watermark’s position, size, and opacity. NET PDF Library supports adding image or text watermarks to a PDF document to indicate the authenticity or ownership of the document. This advantageous feature can be utilized in various contexts, including branding and marketing, safeguarding against unauthorized usage, identifying and attributing the source of content, and ensuring document security, authenticity, and verification. Typically, watermarks are transparent and strategically placed so as not to disrupt the content while still being visible enough to indicate the source of the material. BoldSign – Electronic Signature SoftwareĪ watermark refers to a design, pattern, or text applied to a digital or physical document, image, or video to signify its ownership or authenticity.
0 Comments
Leave a Reply. |
AuthorWrite something about yourself. No need to be fancy, just an overview. ArchivesCategories |