// Liefern Sie das zu stempelnde Dokument bereit
using (Signature signature = new Signature("input.xlsx"))
{
// Initialisieren Sie die Stempeloptionen mit den gewünschten Konfigurationen
StampSignOptions options = new StampSignOptions()
{
// Definieren Sie die Abmessungen und die Position des Stempels auf der Seite
Height = 200,
Width = 200,
VerticalAlignment = VerticalAlignment.Bottom,
HorizontalAlignment = HorizontalAlignment.Right,
AllPages = true
};
// Integrieren Sie äußere kreisförmige Linien mit Text
options.OuterLines.Add(
new StampLine()
{
Text = "* The best choice *",
TextRepeatType = StampTextRepeatType.FullTextRepeat,
Font = new SignatureFont() { Size = 12, FamilyName = "Arial" },
Height = 22,
TextBottomIntent = 6,
TextColor = Color.WhiteSmoke,
BackgroundColor = Color.DarkSlateBlue
}
);
// Integrieren Sie innere quadratische Linien, falls erforderlich
options.InnerLines.Add(
new StampLine()
{
Text = "Company #1",
TextColor = Color.MediumVioletRed,
Font = new SignatureFont() { Size = 20, Bold = true },
Height = 40
}
);
// Schließen Sie ab und speichern Sie das gestempelte Dokument
SignResult result = signature.Sign("output.xlsx", options);
}