Click or drag to resize
Pdf Library for .NET

PdfTemplateAnchoring Enumeration

Specifies how a template is anchored inside the PDF page.

Namespace: SelectPdf.Universal
Assembly: SelectPdf.Universal (in SelectPdf.Universal.dll) Version: 26.4
Syntax
public enum PdfTemplateAnchoring
Members
Member nameValueDescription
NotAnchored0 The template is not anchored. It is placed at the location given by its bounds.
Center1 The template is centered in the page.
TopLeft2 The template is anchored to the top-left corner of the page.
TopRight3 The template is anchored to the top-right corner of the page.
BottomLeft4 The template is anchored to the bottom-left corner of the page.
BottomRight5 The template is anchored to the bottom-right corner of the page.
Example
PdfTemplate stamp = document.Templates.Add(200, 60);
stamp.Anchoring = PdfTemplateAnchoring.BottomRight;
See Also