WatermarkAnnotation

WatermarkAnnotation

Vue de l’ensemble

‘WatermarkAnnotation’ est une classe dans Aspose.PDF FOSS pour .NET.

Il représente une note d’eau qui peut être ajoutée à une page PDF.

Cette classe fournit 5 méthodes pour travailler avec les objets WatermarkAnnotation dans des programmes .NET. Les méthodologies disponibles comprennent: Accept, ChangeAfterResize , SetText et WatermarkAnotations. Tous les membres publics sont accessibles à n’importe quelle application .Net après avoir installé l’Aspouse.PDF FOSS pour le package .net. Propriétés : AnnotageType ; ‘Border; 'Caracteristiques', 'Contents', FixedPrint` ou 2 autres.

Propriétés

NameTypeAccessDescription
CharacteristicsCharacteristicsReadAnnotation characteristics (rotation, etc.).
FixedPrintFixedPrintReadGets the fixed print.
RectRectangleReadThe annotation’s rectangle.
Contentsstring?Read/WriteText note associated with the annotation (written to /Contents).
Namestring?Read/WriteAnnotation name (written to /NM).
BorderBorder?Read/WriteBorder styling written to the annotation’s /BS entry.
AnnotationTypeAnnotationTypeReadAlways Watermark.
OpacitydoubleRead/WriteWatermark opacity (0..1).

méthodes

SignatureDescription
WatermarkAnnotation(page: Page, rect: Rectangle)Create a watermark annotation for the given page and rectangle.
SetTextAndState(text: string[], textState: TextState)Set the text content and text state for the watermark.
SetText(text: Aspose.Pdf.Facades.FormattedText)Set the watermark text from a FormattedText.
ChangeAfterResize(transform: Matrix)Translate the watermark’s rectangle through transform.
Accept(visitor: AnnotationSelector)Calls Accept on this WatermarkAnnotation instance.

Voir aussi

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