from ironpdf import * # Instantiate the Renderer and create PdfDocument from URL renderer = ChromePdfRenderer() pdf = renderer.RenderUrlAsPdf("https://www.nuget.org/packages/IronPdf") # Apply watermark pdf.ApplyWatermark("<h2 style='color:red'>SAMPLE</h2>", 30, VerticalAlignment.Middle, HorizontalAlignment.Center) # Save your new PDF pdf.SaveAs("Watermarked.pdf")