from ironpdf import *
# Instantiate Renderer
renderer = ChromePdfRenderer()
# Render a PDF from a URL
pdf = renderer.RenderUrlAsPdf("https://www.nuget.org/packages/IronPdf")
# Add a PDF as background
pdf.AddBackgroundPdf("MyBackground.pdf")
# Add a PDF as foreground overlay to the first page
pdf.AddForegroundOverlayPdfToPage(0, "MyForeground.pdf", 0)
# Save the merged PDF
pdf.SaveAs("Complete.pdf")背景與前景


 
 
 

