The superimpose function will create a PDF with a background or a stamp. Your background or stamp is defined in one or more PDF files that is merged with your input file to create the result. This function requires that you have pdftk.exe installed in your PDF writer application folder.

Namespace:  pdf7.PdfWriter
Assembly:  pdf7.PdfWriter (in pdf7.PdfWriter.dll)

Syntax

Visual Basic (Declaration)
Public Shared Sub Superimpose ( _
	inputFileName As String, _
	outputFileName As String, _
	superimposeFileName As String, _
	layer As PdfUtil..::.SuperimposeLayer, _
	printerName As String, _
	sessionId As String, _
	workPath As String, _
	timeoutMilliseconds As Integer _
)
C#
public static void Superimpose(
	string inputFileName,
	string outputFileName,
	string superimposeFileName,
	PdfUtil..::.SuperimposeLayer layer,
	string printerName,
	string sessionId,
	string workPath,
	int timeoutMilliseconds
)
Visual C++
public:
static void Superimpose(
	String^ inputFileName, 
	String^ outputFileName, 
	String^ superimposeFileName, 
	PdfUtil..::.SuperimposeLayer layer, 
	String^ printerName, 
	String^ sessionId, 
	String^ workPath, 
	int timeoutMilliseconds
)
JavaScript
pdf7.PdfWriter.PdfUtil.superimpose = function(inputFileName, outputFileName, superimposeFileName, layer, printerName, sessionId, workPath, timeoutMilliseconds);

Parameters

inputFileName
Type: System..::.String
Full path of PDF that you want to apply a background or stamp to.
outputFileName
Type: System..::.String
Full path of the output file.
superimposeFileName
Type: System..::.String
Background or stamp PDF. Only the first page of this file is used.
layer
Type: pdf7.PdfWriter..::.PdfUtil..::.SuperimposeLayer
This parameter controls if the superimpose file is used as a stamp or a background.
printerName
Type: System..::.String
Name of the PDF printer.
sessionId
Type: System..::.String
Session id of the current process. If this is null it will create one.
workPath
Type: System..::.String
Path where temporary files are created during the operation. One is choosen automatically if you specify null.
timeoutMilliseconds
Type: System..::.Int32
Timeout in milliseconds for external processes launched during the operation.

See Also