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
| Name | Type | Access | Description |
|---|---|---|---|
Characteristics | Characteristics | Read | Annotation characteristics (rotation, etc.). |
FixedPrint | FixedPrint | Read | Gets the fixed print. |
Rect | Rectangle | Read | The annotation’s rectangle. |
Contents | string? | Read/Write | Text note associated with the annotation (written to /Contents). |
Name | string? | Read/Write | Annotation name (written to /NM). |
Border | Border? | Read/Write | Border styling written to the annotation’s /BS entry. |
AnnotationType | AnnotationType | Read | Always Watermark. |
Opacity | double | Read/Write | Watermark opacity (0..1). |
méthodes
| Signature | Description |
|---|---|
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