Skip to main content

Search OfficeIMO

Enter a topic, API type, or PowerShell command.

Documentation Search all OfficeIMO/
Class

PdfImageStampOptions

OfficeIMO.Pdf

Namespace
OfficeIMO.Pdf
Assembly
OfficeIMO.Pdf
Source revision
be6c300e4ab1 with working tree changes
Implements
IPdfOperationCancellation
Modifiers
sealed

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.

Accepted by parameters 2

Constructors

public PdfImageStampOptions() #

Methods

UsePageRange 2 overloads
public PdfImageStampOptions UsePageRange(int firstPage, int lastPage) #

Selects an inclusive one-based page range to stamp.

Parameters

firstPage int required
lastPage int required
public PdfImageStampOptions UsePageRange(PdfPageRange pageRange) #

Selects an inclusive one-based page range to stamp.

Parameters

pageRange OfficeIMO.Pdf.PdfPageRange required
public 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[] required

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.