Skip to main content

Search OfficeIMO

Enter a topic, API type, or PowerShell command.

Documentation Search all OfficeIMO/
Class

PdfImageStampOptionsFluent

OfficeIMO.Pdf

Namespace
OfficeIMO.Pdf
Assembly
OfficeIMO.Pdf
Modifiers
static

The fluent methods of PdfImageStampOptions, generated from its public properties: A property-named method sets a property and a singular-named method adds to a collection, both returning the same instance.

Inheritance

  • object
  • PdfImageStampOptionsFluent

Methods

public static PdfImageStampOptions BehindContent(PdfImageStampOptions pdfImageStampOptions, bool value = true) #

Sets PdfImageStampOptions.BehindContent: Places the new image content stream before existing page content when true.

Parameters

pdfImageStampOptions OfficeIMO.Pdf.PdfImageStampOptions required
The instance.
value bool = true optional
The value; true when omitted.

Returns

PdfImageStampOptions The same instance.

Examples

// C# initializer or property                                                // C# fluent
new global::OfficeIMO.Pdf.PdfImageStampOptions { BehindContent = value };    pdfImageStampOptions.BehindContent(value);
public static PdfImageStampOptions Height(PdfImageStampOptions pdfImageStampOptions, OfficeLength? value) #

Sets PdfImageStampOptions.Height: Physical height of the stamped image. When null, each image pixel contributes one point.

Parameters

pdfImageStampOptions OfficeIMO.Pdf.PdfImageStampOptions required
The instance.
value OfficeIMO.OfficeLength? required
The value.

Returns

PdfImageStampOptions The same instance.

Examples

// C# initializer or property                                         // C# fluent
new global::OfficeIMO.Pdf.PdfImageStampOptions { Height = value };    pdfImageStampOptions.Height(value);
public static PdfImageStampOptions MaximumEncodedImageBytes(PdfImageStampOptions pdfImageStampOptions, long value) #

Sets PdfImageStampOptions.MaximumEncodedImageBytes: Maximum encoded image bytes accepted for a stamp or watermark. Defaults to 128 MiB.

Parameters

pdfImageStampOptions OfficeIMO.Pdf.PdfImageStampOptions required
The instance.
value long required
The value.

Returns

PdfImageStampOptions The same instance.

Examples

// C# initializer or property                                                           // C# fluent
new global::OfficeIMO.Pdf.PdfImageStampOptions { MaximumEncodedImageBytes = value };    pdfImageStampOptions.MaximumEncodedImageBytes(value);
public static PdfImageStampOptions Opacity(PdfImageStampOptions pdfImageStampOptions, double value) #

Sets PdfImageStampOptions.Opacity: Image opacity from 0 through 1, multiplied by any intrinsic image alpha. Defaults to 1.

Parameters

pdfImageStampOptions OfficeIMO.Pdf.PdfImageStampOptions required
The instance.
value double required
The value.

Returns

PdfImageStampOptions The same instance.

Examples

// C# initializer or property                                          // C# fluent
new global::OfficeIMO.Pdf.PdfImageStampOptions { Opacity = value };    pdfImageStampOptions.Opacity(value);
public static PdfImageStampOptions PageNumbers(PdfImageStampOptions pdfImageStampOptions, int[]? value) #

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

Parameters

pdfImageStampOptions OfficeIMO.Pdf.PdfImageStampOptions required
The instance.
value int[]? required
The value.

Returns

PdfImageStampOptions The same instance.

Examples

// C# initializer or property                                              // C# fluent
new global::OfficeIMO.Pdf.PdfImageStampOptions { PageNumbers = value };    pdfImageStampOptions.PageNumbers(value);
PageRange 2 overloads
public static PdfImageStampOptions PageRange(PdfImageStampOptions pdfImageStampOptions, int firstPage, int lastPage) #

Selects an inclusive one-based page range to stamp.

Parameters

pdfImageStampOptions OfficeIMO.Pdf.PdfImageStampOptions required
The instance.
firstPage int required
The value.
lastPage int required
The value.

Returns

PdfImageStampOptions The same instance.
public static PdfImageStampOptions PageRange(PdfImageStampOptions pdfImageStampOptions, PdfPageRange pageRange) #

Selects an inclusive one-based page range to stamp.

Parameters

pdfImageStampOptions OfficeIMO.Pdf.PdfImageStampOptions required
The instance.
pageRange OfficeIMO.Pdf.PdfPageRange required
The value.

Returns

PdfImageStampOptions The same instance.
public static PdfImageStampOptions PageRanges(PdfImageStampOptions pdfImageStampOptions, 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

pdfImageStampOptions OfficeIMO.Pdf.PdfImageStampOptions required
The instance.
pageRanges OfficeIMO.Pdf.PdfPageRange[] required
The value.

Returns

PdfImageStampOptions The same instance.
public static PdfImageStampOptions RotationDegrees(PdfImageStampOptions pdfImageStampOptions, double value) #

Sets PdfImageStampOptions.RotationDegrees: 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.

Parameters

pdfImageStampOptions OfficeIMO.Pdf.PdfImageStampOptions required
The instance.
value double required
The value.

Returns

PdfImageStampOptions The same instance.

Examples

// C# initializer or property                                                  // C# fluent
new global::OfficeIMO.Pdf.PdfImageStampOptions { RotationDegrees = value };    pdfImageStampOptions.RotationDegrees(value);
public static PdfImageStampOptions Width(PdfImageStampOptions pdfImageStampOptions, OfficeLength? value) #

Sets PdfImageStampOptions.Width: Physical width of the stamped image. When null, each image pixel contributes one point.

Parameters

pdfImageStampOptions OfficeIMO.Pdf.PdfImageStampOptions required
The instance.
value OfficeIMO.OfficeLength? required
The value.

Returns

PdfImageStampOptions The same instance.

Examples

// C# initializer or property                                        // C# fluent
new global::OfficeIMO.Pdf.PdfImageStampOptions { Width = value };    pdfImageStampOptions.Width(value);
public static PdfImageStampOptions X(PdfImageStampOptions pdfImageStampOptions, OfficeLength? value) #

Sets PdfImageStampOptions.X: 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.

Parameters

pdfImageStampOptions OfficeIMO.Pdf.PdfImageStampOptions required
The instance.
value OfficeIMO.OfficeLength? required
The value.

Returns

PdfImageStampOptions The same instance.

Examples

// C# initializer or property                                    // C# fluent
new global::OfficeIMO.Pdf.PdfImageStampOptions { X = value };    pdfImageStampOptions.X(value);
public static PdfImageStampOptions Y(PdfImageStampOptions pdfImageStampOptions, OfficeLength? value) #

Sets PdfImageStampOptions.Y: 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.

Parameters

pdfImageStampOptions OfficeIMO.Pdf.PdfImageStampOptions required
The instance.
value OfficeIMO.OfficeLength? required
The value.

Returns

PdfImageStampOptions The same instance.

Examples

// C# initializer or property                                    // C# fluent
new global::OfficeIMO.Pdf.PdfImageStampOptions { Y = value };    pdfImageStampOptions.Y(value);