PdfImageStampOptions
OfficeIMO.Pdf
Options used when adding an image stamp or image watermark to parsed PDF pages.
Inheritance
- object
- PdfImageStampOptions
Usage
Explore 4 API references to this type
This type appears in these public API surfaces even when no hand-authored example is attached directly to the page.
Returned or exposed by 2
Accepted by parameters 2
- Method PdfDocumentStamper.Image
- Method PdfDocumentStamper.ImageWatermark
Constructors
public PdfImageStampOptions() #Methods
public PdfImageStampOptions UsePageRange(int firstPage, int lastPage) #Selects an inclusive one-based page range to stamp.
Parameters
- firstPage int
- lastPage int
Returns
PdfImageStampOptionspublic PdfImageStampOptions UsePageRange(PdfPageRange pageRange) #Selects an inclusive one-based page range to stamp.
Parameters
- pageRange OfficeIMO.Pdf.PdfPageRange
Returns
PdfImageStampOptionspublic PdfImageStampOptions UsePageRanges(params PdfPageRange[] pageRanges) #Selects inclusive one-based page ranges to stamp. Overlapping ranges are treated as one page selection set in first-seen order.
Parameters
- pageRanges OfficeIMO.Pdf.PdfPageRange[]
Returns
PdfImageStampOptionsInherited Methods
Properties
public long MaximumEncodedImageBytes { get; set; } #Maximum encoded image bytes accepted for a stamp or watermark. Defaults to 128 MiB.
public int[]? PageNumbers { get; set; } #One-based page numbers to stamp. When null or empty, every page is stamped.
public OfficeLength? X { get; set; } #Physical X coordinate of the image origin from the unrotated PDF origin. When null, stamps sit 36 points from the lower-left corner of the displayed page and watermarks center in it.
public OfficeLength? Y { get; set; } #Physical Y coordinate of the image origin from the unrotated PDF origin. When null, stamps sit 36 points from the lower-left corner of the displayed page and watermarks center in it.
public OfficeLength? Width { get; set; } #Physical width of the stamped image. When null, each image pixel contributes one point.
public OfficeLength? Height { get; set; } #Physical height of the stamped image. When null, each image pixel contributes one point.
public double RotationDegrees { get; set; } #Counter-clockwise image rotation in degrees around the image origin, relative to the displayed page. On a page with /Rotate, an unrotated image stays upright as the page is viewed.
public double Opacity { get; set; } #Image opacity from 0 through 1, multiplied by any intrinsic image alpha. Defaults to 1.
public bool BehindContent { get; set; } #Places the new image content stream before existing page content when true.