Stamp.BindPdf

BindPdf(string, int)

Sets PDF file and number of page which will be used as stamp.

public void BindPdf(string pdfFile, int pageNumber)
ParameterTypeDescription
pdfFileStringPath to PDF file.
pageNumberInt32Number of page in PDF file

Examples

PdfFileStamp fileStamp = new PdfFileStamp("input.pdf", "output.pdf");
Stamp stamp = new Stamp();
//First page will be used as stamp.
stamp.BindPdf("stamp.pdf", 1);
stamp.IsBackground = true;
fileStamp.AddStamp(stamp);
fileStamp.Close();

See Also


BindPdf(Stream, int)

Sets PDF file and number of page which will be used as stamp.

public void BindPdf(Stream pdfStream, int pageNumber)
ParameterTypeDescription
pdfStreamStreamStream which contains PDF document.
pageNumberInt32Page index of the document whihc will be used as stamp.

Examples

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