Skip to main content

Search OfficeIMO

Enter a topic, API type, or PowerShell command.

Documentation Search all OfficeIMO/
Class

PdfTextStampOptionsFluent

OfficeIMO.Pdf

Namespace
OfficeIMO.Pdf
Assembly
OfficeIMO.Pdf
Modifiers
static

The fluent methods of PdfTextStampOptions, 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
  • PdfTextStampOptionsFluent

Methods

public static PdfTextStampOptions Align(PdfTextStampOptions pdfTextStampOptions, OfficeAlignment value) #

Sets PdfTextStampOptions.Align: Horizontal alignment of the text against PdfTextStampOptions.X: OfficeAlignment.Left (the default) starts the text at X, OfficeAlignment.Center centres it on X and OfficeAlignment.Right ends it at X. When X is null, centred text uses the page centre and right-aligned text ends 36 points from the right page edge.

Parameters

pdfTextStampOptions OfficeIMO.Pdf.PdfTextStampOptions required
The instance.
value OfficeIMO.OfficeAlignment required
The value.

Returns

PdfTextStampOptions The same instance.

Examples

// C# initializer or property                                       // C# fluent
new global::OfficeIMO.Pdf.PdfTextStampOptions { Align = value };    pdfTextStampOptions.Align(value);
public static PdfTextStampOptions BehindContent(PdfTextStampOptions pdfTextStampOptions, bool value = true) #

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

Parameters

pdfTextStampOptions OfficeIMO.Pdf.PdfTextStampOptions required
The instance.
value bool = true optional
The value; true when omitted.

Returns

PdfTextStampOptions The same instance.

Examples

// C# initializer or property                                               // C# fluent
new global::OfficeIMO.Pdf.PdfTextStampOptions { BehindContent = value };    pdfTextStampOptions.BehindContent(value);
public static PdfTextStampOptions Color(PdfTextStampOptions pdfTextStampOptions, OfficeColor value) #

Sets PdfTextStampOptions.Color: Text color, including alpha. Theme roles resolve against the default theme.

Parameters

pdfTextStampOptions OfficeIMO.Pdf.PdfTextStampOptions required
The instance.
value OfficeIMO.OfficeColor required
The value.

Returns

PdfTextStampOptions The same instance.

Examples

// C# initializer or property                                       // C# fluent
new global::OfficeIMO.Pdf.PdfTextStampOptions { Color = value };    pdfTextStampOptions.Color(value);
public static PdfTextStampOptions EmbedFont(PdfTextStampOptions pdfTextStampOptions, bool value = true) #

Sets PdfTextStampOptions.EmbedFont: When true (the default), the stamp text uses the installed font that backs PdfTextStampOptions.Font in the default theme, the same font documents created by OfficeIMO.Pdf use, embedded as a subset. When no such font is installed, or it lacks a character of the text, the non-embedded standard font is written instead. Set to false to always write the non-embedded standard font.

Parameters

pdfTextStampOptions OfficeIMO.Pdf.PdfTextStampOptions required
The instance.
value bool = true optional
The value; true when omitted.

Returns

PdfTextStampOptions The same instance.

Examples

// C# initializer or property                                           // C# fluent
new global::OfficeIMO.Pdf.PdfTextStampOptions { EmbedFont = value };    pdfTextStampOptions.EmbedFont(value);
public static PdfTextStampOptions Font(PdfTextStampOptions pdfTextStampOptions, PdfStandardFont value) #

Sets PdfTextStampOptions.Font: Standard PDF font used for the stamp.

Parameters

pdfTextStampOptions OfficeIMO.Pdf.PdfTextStampOptions required
The instance.
value OfficeIMO.Pdf.PdfStandardFont required
The value.

Returns

PdfTextStampOptions The same instance.

Examples

// C# initializer or property                                      // C# fluent
new global::OfficeIMO.Pdf.PdfTextStampOptions { Font = value };    pdfTextStampOptions.Font(value);
public static PdfTextStampOptions FontSize(PdfTextStampOptions pdfTextStampOptions, OfficeLength value) #

Sets PdfTextStampOptions.FontSize: Physical text size. Defaults to 24 points.

Parameters

pdfTextStampOptions OfficeIMO.Pdf.PdfTextStampOptions required
The instance.
value OfficeIMO.OfficeLength required
The value.

Returns

PdfTextStampOptions The same instance.

Examples

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

Sets PdfTextStampOptions.Opacity: Text opacity from 0 through 1, multiplied by the text color alpha. Defaults to 1.

Parameters

pdfTextStampOptions OfficeIMO.Pdf.PdfTextStampOptions required
The instance.
value double required
The value.

Returns

PdfTextStampOptions The same instance.

Examples

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

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

Parameters

pdfTextStampOptions OfficeIMO.Pdf.PdfTextStampOptions required
The instance.
value int[]? required
The value.

Returns

PdfTextStampOptions The same instance.

Examples

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

Selects an inclusive one-based page range to stamp.

Parameters

pdfTextStampOptions OfficeIMO.Pdf.PdfTextStampOptions required
The instance.
firstPage int required
The value.
lastPage int required
The value.

Returns

PdfTextStampOptions The same instance.
public static PdfTextStampOptions PageRange(PdfTextStampOptions pdfTextStampOptions, PdfPageRange pageRange) #

Selects an inclusive one-based page range to stamp.

Parameters

pdfTextStampOptions OfficeIMO.Pdf.PdfTextStampOptions required
The instance.
pageRange OfficeIMO.Pdf.PdfPageRange required
The value.

Returns

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

pdfTextStampOptions OfficeIMO.Pdf.PdfTextStampOptions required
The instance.
pageRanges OfficeIMO.Pdf.PdfPageRange[] required
The value.

Returns

PdfTextStampOptions The same instance.
public static PdfTextStampOptions RotationDegrees(PdfTextStampOptions pdfTextStampOptions, double value) #

Sets PdfTextStampOptions.RotationDegrees: Counter-clockwise text rotation in degrees around the text origin, relative to the displayed page. On a page with /Rotate, unrotated text reads upright as the page is viewed.

Parameters

pdfTextStampOptions OfficeIMO.Pdf.PdfTextStampOptions required
The instance.
value double required
The value.

Returns

PdfTextStampOptions The same instance.

Examples

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

Sets PdfTextStampOptions.X: Physical X coordinate of the text baseline 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

pdfTextStampOptions OfficeIMO.Pdf.PdfTextStampOptions required
The instance.
value OfficeIMO.OfficeLength? required
The value.

Returns

PdfTextStampOptions The same instance.

Examples

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

Sets PdfTextStampOptions.Y: Physical Y coordinate of the text baseline 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

pdfTextStampOptions OfficeIMO.Pdf.PdfTextStampOptions required
The instance.
value OfficeIMO.OfficeLength? required
The value.

Returns

PdfTextStampOptions The same instance.

Examples

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