StampBindPdf Method (Stream, Int32)
Sets PDF file and number of page which will be used as stamp.

Namespace: Aspose.Pdf.Facades
Assembly: Aspose.PDF (in Aspose.PDF.dll) Version: 19.11
Syntax
public void BindPdf(
	Stream pdfStream,
	int pageNumber
)

Parameters

pdfStream
Type: System.IOStream
Stream which contains PDF document.
pageNumber
Type: SystemInt32
Page index of the document whihc will be used as stamp.
Examples
C#
PdfFileStamp fileStamp = new PdfFileStamp("input.pdf", "output.pdf");
Stamp stamp = new Stamp();
//First page will be used as stamp.
Stream stream = new FileStream("stamp.pdf", FileMode.Open, FileAccess.Read);
stamp.BindPdf(stream, 1);
fileStamp.AddStamp(stamp);
fileStamp.Close();
See Also