API Reference
PdfTextStampOptions
Options used when adding a simple text stamp or watermark to parsed PDF pages.
Inheritance
- Object
- PdfTextStampOptions
Usage
This type appears in these public API surfaces even when no hand-authored example is attached directly to the page.
Returned or exposed by
Accepted by parameters
- Method PdfDocumentStamper.Text
- Method PdfDocumentStamper.Text
- Method PdfDocumentStamper.TextWatermark
- Method PdfDocumentStamper.TextWatermark
- Method PdfDocumentStamper.TryText
- Method PdfDocumentStamper.TryTextWatermark
Constructors
public PdfTextStampOptions() #Methods
public PdfTextStampOptions UsePageRange(Int32 firstPage, Int32 lastPage) #PdfTextStampOptionsSelects an inclusive one-based page range to stamp.
Parameters
- firstPage System.Int32
- lastPage System.Int32
public PdfTextStampOptions UsePageRange(PdfPageRange pageRange) #PdfTextStampOptionsSelects an inclusive one-based page range to stamp.
Parameters
- pageRange OfficeIMO.Pdf.PdfPageRange
public PdfTextStampOptions UsePageRanges(params PdfPageRange[] pageRanges) #PdfTextStampOptionsSelects 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[]
Inherited Methods
Properties
public Int32[] PageNumbers { get; set; } #One-based page numbers to stamp. When null or empty, every page is stamped.
public Nullable<Double> X { get; set; } #X coordinate of the text baseline origin in PDF points. When null, a sensible default is used.
public Nullable<Double> Y { get; set; } #Y coordinate of the text baseline origin in PDF points. When null, a sensible default is used.
public PdfStandardFont Font { get; set; } #Standard PDF font used for the stamp.
public Double FontSize { get; set; } #Text size in PDF points.
public PdfColor Color { get; set; } #RGB text color.
public Double RotationDegrees { get; set; } #Text rotation in degrees around the text origin.
public Boolean BehindContent { get; set; } #Places the new content stream before existing page content when true.