TextStamp

Vue de l’ensemble

‘TextStamp’ est une classe dans Aspose.PDF FOSS pour .NET. Il s’agit de : `Stampa.TexStemp’.

Compatible re-exportation de code afin que les références Aspose.Pdf.TextStamp (de avant le type a été déplacé à Asposa.Fdf Stamps) continue de compiler.

Cette classe fournit 4 méthodes pour travailler avec les objets TextStamp dans des programmes .NET. Les méthodologies disponibles comprennent : ‘Put’, ‘TextStump’. Tous les membres publics sont accessibles à n’importe quelle application .Net après l’installation de l’Aspose.PDF FOSS pour le package .net. Propriétés: ‘AutoAdjustFontSizePrecision’, `A AutoAdjusterFonSiseToFitStempRectangle’, ‘Draw’, ‘FonsSite’, ’Height’, ‘Justify’ et 11 autres.

Propriétés

NameTypeAccessDescription
HeightdoubleRead/WriteGets or sets the height.
ScaleboolRead/WriteGets or sets the scale.
TextAlignmentAspose.Pdf.HorizontalAlignmentRead/WriteGets or sets the text alignment.
ValuestringRead/WriteGets or sets the value.
WidthdoubleRead/WriteGets or sets the width.
WordWrapboolRead/WriteGets or sets the word wrap.
WordWrapModeAspose.Pdf.Text.TextFormattingOptions.WordWrapModeRead/WriteGets or sets the word wrap mode.
TextStateAspose.Pdf.Text.TextStateReadText-state snapshot.
FontSizefloatReadFont size in points.
AutoAdjustFontSizePrecisionfloatRead/WriteWhen auto-adjusting font size to fit the stamp rectangle, the precision (in points).
AutoAdjustFontSizeToFitStampRectangleboolRead/WriteWhen true, the renderer shrinks the font size until the text fits the stamp’s Width/Height.
DrawboolRead/WriteWhen false, the stamp records intent but skips drawing.
JustifyboolRead/WriteWhen true, the stamp’s text is full-justified within the stamp width.
MaxRowWidthdoubleRead/WriteMaximum row width before wrapping.
NoCharacterBehaviorNoCharacterActionRead/WriteStrategy used when a character has no glyph in the configured font.
ReplacementFontAspose.Pdf.Text.FontRead/WriteFallback font used when the main font lacks a required glyph; consulted only when NoCharacterBehavior is UseReplacementFont.
TreatYIndentAsBaseLineboolRead/WriteWhen true, the stamp’s Y-indent is treated as the text baseline rather than the bounding-box top.

méthodes

SignatureDescription
TextStamp(value: string)Calls TextStamp on this TextStamp instance.
TextStamp(formattedText: Aspose.Pdf.Facades.FormattedText)Construct a text stamp from a FormattedText template — copies its text, font, size and colour.
TextStamp(value: string, textState: Aspose.Pdf.Text.TextState)Construct a text stamp from a value and a precomputed TextState.
Put(page: Page)Add this stamp to a page.

Voir aussi

  • Aspose.PDF pour .NET — API d’entreprise
 Français