Skip to content

Instantly share code, notes, and snippets.

@terjehelgesen
Last active April 17, 2026 11:09
Show Gist options
  • Select an option

  • Save terjehelgesen/be0c75f044abbbd6c0f52358acf9f2f3 to your computer and use it in GitHub Desktop.

Select an option

Save terjehelgesen/be0c75f044abbbd6c0f52358acf9f2f3 to your computer and use it in GitHub Desktop.
Add a watermark to a PDF using C# with scConverter
//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 );
}
}
@terjehelgesen
Copy link
Copy Markdown
Author

terjehelgesen commented Apr 17, 2026

Read more about scConverter online.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment