PdfXObjectWatermarkOptions
Contenu
[
Cacher
]
PdfXObjectWatermarkOptions class
Représente les options d’ajout de filigrane lors de l’ajout d’un filigrane XObject à un document pdf.
public sealed class PdfXObjectWatermarkOptions : PdfWatermarkOptions
Constructeurs
Nom | La description |
---|---|
PdfXObjectWatermarkOptions() | Initialise une nouvelle instance duPdfXObjectWatermarkOptions classe. |
Propriétés
Nom | La description |
---|---|
PageIndex { get; set; } | Obtient ou définit l’index de page auquel ajouter un filigrane. |
Remarques
Apprendre encore plus:
Exemples
Ajouter un filigrane à une page particulière d’un document pdf.
PdfLoadOptions loadOptions = new PdfLoadOptions();
using (Watermarker watermarker = new Watermarker(@"C:\doc.pdf", loadOptions))
using (ImageWatermark watermark = new ImageWatermark(@"C:\watermark.png"))
{
PdfXObjectWatermarkOptions options = new PdfXObjectWatermarkOptions();
options.PageIndex = 0;
watermarker.Add(watermark, options);
watermarker.Save();
}
Voir également
- class PdfWatermarkOptions
- espace de noms GroupDocs.Watermark.Options.Pdf
- Assemblée GroupDocs.Watermark