PdfPageStamp
Vue de l’ensemble
‘PdfPageStamp’ est une classe dans Aspose.PDF FOSS pour .NET. Il s’agit d’une catégorie : Aspose .PDF Stamps.Stump.
Imprimez le contenu d’une page PDF sur une autre.
Cette classe fournit 5 méthodes pour travailler avec des objets PdfPageStamp dans les programmes .NET. Les méthodologies disponibles comprennent: ApplyTo, PdfFage Stamp et put. Tous les membres publics sont accessibles à n’importe quelle application .Net après l’installation de l’Aspose.PDF FOSS pour le pack .net. Propriétés : ‘Background’, ‘bottomMargin’, Height', ‘HorizontalAlignment’, 'IsBacground , ‘LeftMargine` ainsi que 11 autres.
Propriétés
| Name | Type | Access | Description |
|---|---|---|---|
Width | double | Read/Write | Width of the stamp in points. |
Height | double | Read/Write | Height of the stamp in points. |
PdfPage | Page | Read/Write | The source page being stamped. |
StampId | int | Read/Write | Optional identifier embedded as a %StampId content-stream comment when the stamp is applied, so PdfContentEditor.GetStamps / DeleteStampById can find it later. |
XIndent | double | Read/Write | X position on the page. |
YIndent | double | Read/Write | Y position on the page. |
Rotate | Rotation | Read/Write | Rotation (0, 90, 180, 270). |
RotateAngle | double | Read/Write | Arbitrary rotation angle in degrees. |
Opacity | double | Read/Write | Opacity (0.0 = transparent, 1.0 = opaque). |
IsBackground | bool | Read/Write | Whether the stamp is drawn behind page content. |
Background | bool | Read/Write | Alias for IsBackground. |
TopMargin | double | Read/Write | Top margin offset in points. |
BottomMargin | double | Read/Write | Bottom margin offset in points. |
LeftMargin | double | Read/Write | Left margin offset in points. |
RightMargin | double | Read/Write | Right margin offset in points. |
HorizontalAlignment | HorizontalAlignment | Read/Write | Horizontal alignment. |
VerticalAlignment | VerticalAlignment | Read/Write | Vertical alignment. |
méthodes
| Signature | Description |
|---|---|
PdfPageStamp(pdfPage: Page) | Create a PdfPageStamp from a page of another document. |
Put(page: Page) | Alias for ApplyTo. |
PdfPageStamp(fileName: string, pageIndex: int) | Create a PdfPageStamp from page pageIndex (1-based) of the PDF at fileName. |
PdfPageStamp(stream: Stream, pageIndex: int) | Create a PdfPageStamp from page pageIndex (1-based) of the PDF read from stream. |
ApplyTo(page: Page) | Apply this stamp to a page. |
Voir aussi
- Aspose.PDF pour .NET — API d’entreprise