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
| 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