Stamp.BindPdf
Contents
[
Hide
]BindPdf(string, int)
Sets PDF file and number of page which will be used as stamp.
public void BindPdf(string pdfFile, int pageNumber)
Parameter | Type | Description |
---|---|---|
pdfFile | String | Path to PDF file. |
pageNumber | Int32 | Number 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
- class Stamp
- namespace Aspose.Pdf.Facades
- assembly Aspose.PDF
BindPdf(Stream, int)
Sets PDF file and number of page which will be used as stamp.
public void BindPdf(Stream pdfStream, int pageNumber)
Parameter | Type | Description |
---|---|---|
pdfStream | Stream | Stream which contains PDF document. |
pageNumber | Int32 | Page 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
- class Stamp
- namespace Aspose.Pdf.Facades
- assembly Aspose.PDF