Last active
April 17, 2026 11:09
-
-
Save terjehelgesen/be0c75f044abbbd6c0f52358acf9f2f3 to your computer and use it in GitHub Desktop.
Add a watermark to a PDF using C# with scConverter
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| //scConverter Sample Code | |
| //Read more about scConverter online: | |
| // https://www.softwarecompanions.com/scconverterdll.html | |
| // https://www.softwarecompanions.com/scconverter-c-sharp.html | |
| { | |
| scConverterLib.Converter myconverter = new scConverterLib.Converter(); | |
| if (myconverter != null) | |
| { | |
| myconverter.SetSerialNumber("Your Serial Number"); | |
| //Add watermark with black text, rotated 45 degrees and with 30% opacity. | |
| //The watermark will be added to all pages when "ALL" is used. | |
| //Use "1" if you want the watermark added to the first page only. | |
| myconverter.PDFAddWatermark( "input.pdf", "output.pdf", "ALL", "Confidential", 45, 30, 0x000000 ); | |
| } | |
| } |
Author
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Read more about scConverter online.