WatermarkOptions
WatermarkOptions
Panoramica
WatermarkOptions è un’interfaccia in Aspose.PDF FOSS per TypeScript.
Opzioni per {@link Document.AddWatermark}.
Proprietà: background, color, font, fontSize, image, margin, e altre 9.
Proprietà
| Nome | Tipo | Accesso | Descrizione |
|---|---|---|---|
text | : string | Lettura | Testo del watermark; può contenere token ({page}, {total}, {label}, {date}, {time}). |
image | : Uint8Array | Lettura | Immagine del watermark come byte codificati JPEG o PNG. |
pages | `: number[] | string` | Lettura |
position | : StampPosition | Lettura | Preset di posizionamento. |
opacity | : number | Lettura | Opacità costante 0..1. |
rotate | : number | Lettura | Rotazione apparente in gradi CCW; predefinito = l’angolo del preset. |
mode | `: ‘overlay’ | ‘underlay’` | Lettura |
font | : AuthoringFont | Lettura | Faccia Standard-14 o una maniglia AddFont. |
fontSize | : number | Lettura | Dimensione del testo in punti. |
color | : [number, number, number] | Lettura | Colore di riempimento, componenti in 0..1. |
margin | : number | Lettura | Rientro in punti per le impostazioni di angolo/bordo. |
width | : number | Lettura | Larghezza dell’immagine in punti; il valore predefinito dipende dall’impostazione. |
underline | : Decoration | Lettura | Linea sotto la linea di base del testo timbrato. |
strikethrough | : Decoration | Lettura | Regola attraverso il testo timbrato. |
background | : Background | Lettura | Riempi dipinto dietro il testo timbrato. |