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

NameTypeAccessDescription
WidthdoubleRead/WriteWidth of the stamp in points.
HeightdoubleRead/WriteHeight of the stamp in points.
PdfPagePageRead/WriteThe source page being stamped.
StampIdintRead/WriteOptional identifier embedded as a %StampId content-stream comment when the stamp is applied, so PdfContentEditor.GetStamps / DeleteStampById can find it later.
XIndentdoubleRead/WriteX position on the page.
YIndentdoubleRead/WriteY position on the page.
RotateRotationRead/WriteRotation (0, 90, 180, 270).
RotateAngledoubleRead/WriteArbitrary rotation angle in degrees.
OpacitydoubleRead/WriteOpacity (0.0 = transparent, 1.0 = opaque).
IsBackgroundboolRead/WriteWhether the stamp is drawn behind page content.
BackgroundboolRead/WriteAlias for IsBackground.
TopMargindoubleRead/WriteTop margin offset in points.
BottomMargindoubleRead/WriteBottom margin offset in points.
LeftMargindoubleRead/WriteLeft margin offset in points.
RightMargindoubleRead/WriteRight margin offset in points.
HorizontalAlignmentHorizontalAlignmentRead/WriteHorizontal alignment.
VerticalAlignmentVerticalAlignmentRead/WriteVertical alignment.

méthodes

SignatureDescription
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
 Français