Skip to main content

Search OfficeIMO

Enter a topic, API type, or PowerShell command.

Documentation Search all OfficeIMO/

API Reference

Class

PdfImageStampOptions

Namespace OfficeIMO.Pdf
Assembly OfficeIMO.Pdf
Source revision 33d062b583cb with working tree changes
Modifiers sealed

Options used when adding an image stamp or image watermark to parsed PDF pages.

Inheritance

  • Object
  • PdfImageStampOptions

Usage

Explore 6 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 4

Constructors

public PdfImageStampOptions() #

Methods

UsePageRange 2 overloads
public PdfImageStampOptions UsePageRange(Int32 firstPage, Int32 lastPage) #
Returns: PdfImageStampOptions

Selects an inclusive one-based page range to stamp.

Parameters

firstPage System.Int32 requiredposition: 0
lastPage System.Int32 requiredposition: 1
public PdfImageStampOptions UsePageRange(PdfPageRange pageRange) #
Returns: PdfImageStampOptions

Selects an inclusive one-based page range to stamp.

Parameters

pageRange OfficeIMO.Pdf.PdfPageRange requiredposition: 0
public PdfImageStampOptions UsePageRanges(params PdfPageRange[] pageRanges) #
Returns: PdfImageStampOptions

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[] requiredposition: 0

Properties

public Int64 MaximumEncodedImageBytes { get; set; } #

Maximum encoded image bytes accepted for a stamp or watermark. Defaults to 128 MiB.

public Int32[]? PageNumbers { get; set; } #

One-based page numbers to stamp. When null or empty, every page is stamped.

public Double? X { get; set; } #

X coordinate of the image origin in PDF points. When null, a sensible default is used.

public Double? Y { get; set; } #

Y coordinate of the image origin in PDF points. When null, a sensible default is used.

public Double? Width { get; set; } #

Width of the stamped image in PDF points. When null, the image pixel width is used.

public Double? Height { get; set; } #

Height of the stamped image in PDF points. When null, the image pixel height is used.

public Double RotationDegrees { get; set; } #

Image rotation in degrees around the image origin.

public Boolean BehindContent { get; set; } #

Places the new image content stream before existing page content when true.