PdfPageStamp

Overview

PdfPageStamp is a class in Aspose.PDF FOSS for .NET. Inherits from: Stamp.

Stamps the content of one PDF page onto another page.

This class declares 15 methods for PdfPageStamp objects in .NET programs. Available methods include: ApplyTo, BindImage, BindLogo, BindPdf, BindTextState, PdfPageStamp, Put, SetImageSize, SetOrigin, Stamp. Public members are accessible to any .NET application after installing the Aspose.PDF FOSS for .NET package. Properties: BlendingSpace, IsBackground, Opacity, PageNumber, Pages, PdfPage, and 5 more.

Properties

NameTypeAccessDescription
PdfPagePageRead/WriteThe source page being stamped.
StampIdintRead/WriteThe stamp identifier.
Pagesint[]?Read/WritePages to apply the stamp to (1-based).
PageNumberintRead/WriteSingle page number to apply the stamp to (1-based).
XOrigindoubleRead/WriteX origin position in points.
YOrigindoubleRead/WriteY origin position in points.
RotationfloatRead/WriteRotation angle in degrees.
OpacityfloatRead/WriteOpacity (0.0-1.0).
IsBackgroundboolRead/WriteWhether this stamp is in the background.
QualityintRead/WriteJPEG quality (1..100) when the stamp is emitted as a JPEG image.
BlendingSpaceBlendingColorSpaceRead/WriteBlending colour space used when compositing the stamp onto the page.

Methods

SignatureDescription
PdfPageStamp(pdfPage: Page)Create a PdfPageStamp from a page of another document.
Put(page: Page)Alias for ApplyTo matching the public surface.
PdfPageStamp(fileName: string, pageIndex: int)Create a PdfPageStamp from page pageIndex (1-based) of the PDF at fileName.
PdfPageStamp(stream: Stream, pageIndex: int)Create a PdfPageStamp from page pageIndex (1-based) of the PDF read from stream.
ApplyTo(page: Page)Apply this stamp to a page.
Stamp()Creates an empty stamp with full opacity and no content; bind a logo, image or PDF page before adding it.
BindLogo(formattedText: FormattedText)Bind a FormattedText as the stamp’s logo (text stamp).
BindImage(imageData: byte[])Bind raw image bytes as the stamp’s logo (image stamp).
BindImage(image: Stream)Bind a stream as the stamp’s image source.
BindImage(imageFile: string)Bind a file path as the stamp’s image source.
BindPdf(pdfStream: Stream, pageNumber: int)Bind a PDF page (as the stamp source) by stream + 1-based page number.
BindPdf(pdfFile: string, pageNumber: int)Bind a PDF page (as the stamp source) by file path + 1-based page number.
BindTextState(textState: TextState)Bind a TextState that overrides defaults when the stamp is text-typed.
SetImageSize(width: float, height: float)Set the explicit pixel size at which the image stamp is rendered.
SetOrigin(originX: float, originY: float)Set the origin position.

See Also

 English