// 서명할 문서를 가져오고 Signature에 전달합니다.
using (Signature signature = new Signature("input.docx"))
{
// 필요한 텍스트로 QR 코드 옵션을 설정합니다.
QrCodeSignOptions options = new QrCodeSignOptions("Archived on July 11, 2019")
{
// 페이지에서 QR 코드의 상대적 위치를 지정합니다.
VerticalAlignment = Domain.VerticalAlignment.Top,
HorizontalAlignment = Domain.HorizontalAlignment.Right,
// 서명 여백을 설정합니다.
Margin = new Padding() { Top = 20, Right = 20 },
// QR 코드 색상을 지정합니다.
ForeColor = Color.Red,
// 메시지의 글꼴 옵션을 정의합니다.
Font = new SignatureFont { Size = 12, FamilyName = "Comic Sans MS" },
// QR 코드 배경 색상 및 브러시를 사용자 정의합니다.
Background = new Background()
{
Color = Color.LimeGreen,
Transparency = 0.5,
Brush = new Domain.Extensions.LinearGradientBrush(Color.LimeGreen, Color.DarkGreen)
}
};
// QR 코드를 문서에 임베드합니다.
SignResult result = signature.Sign("output.docx", options);
}