WatermarkStamp
Vue de l’ensemble
‘WatermarkStamp’ est une classe dans Aspose.PDF FOSS pour .NET. Inhérents de: Stemp.
Un étiquette qui attire le texte diagonal sur la page.
Cette classe fournit 7 méthodes pour travailler avec les objets WatermarkStamp dans des programmes .NET. Les méthodologies disponibles comprennent: ‘BindImage’, ‘Logo’ , ‘FondPdf’, `BidTextState’, ‘SetImagesSize’, ’SetOrigin’, ‘Watermark Stamp’. Tous les membres publics sont accessibles à n’importe quelle application .Net après avoir installé l’Aspose.PDF FOSS pour le package .net. Propriétés : ‘MessageSpace’, “Color”, ‘Conname’, ‘‘FontSise’,‘‘IsBackground’,‘Opacity’ et 9 autres.
Propriétés
| Name | Type | Access | Description |
|---|---|---|---|
Text | string | Read/Write | The watermark text. |
FontName | string | Read/Write | Font name. |
FontSize | double | Read/Write | Font size in points. |
Color | (double R, double G, double B) | Read/Write | Text color as RGB (0-1 range). |
Rotate | double | Read/Write | Rotation angle in degrees. |
StampId | int | Read/Write | The stamp identifier. |
Pages | int[]? | Read/Write | Pages to apply the stamp to (1-based). |
PageNumber | int | Read/Write | Single page number to apply the stamp to (1-based). |
XOrigin | double | Read/Write | X origin position in points. |
YOrigin | double | Read/Write | Y origin position in points. |
Rotation | float | Read/Write | Rotation angle in degrees. |
Opacity | float | Read/Write | Opacity (0.0-1.0). |
IsBackground | bool | Read/Write | Whether this stamp is in the background. |
Quality | int | Read/Write | JPEG quality (1..100) when the stamp is emitted as a JPEG image. |
BlendingSpace | BlendingColorSpace | Read/Write | Blending colour space used when compositing the stamp onto the page. |
méthodes
| Signature | Description |
|---|---|
WatermarkStamp(text: string) | Calls WatermarkStamp on this WatermarkStamp instance. |
BindLogo(formattedText: FormattedText) | Bind a FormattedText as the stamp’s logo (text stamp). |
BindImage(imageData: byte[]) | Bind raw image bytes as the stamp’s logo (image stamp). |
BindPdf(pdfStream: Stream, pageNumber: int) | Bind a PDF page (as the stamp source) by stream + 1-based page number. |
BindTextState(textState: TextState) | Bind a TextState that overrides defaults when the stamp is text-typed. |
SetImageSize(width: float, height: float) | Set the explicit pixel size at which the image stamp is rendered. |
SetOrigin(originX: float, originY: float) | Set the origin position. |
Voir aussi
- Aspose.PDF pour .NET — API d’entreprise