IronPDF 에서 디지털 서명 적용하기
디지털 서명은 IronPDF 라이브러리를 사용하여 기존 PDF 문서에 추가할 수 있는 암호화 방식입니다. 여기에는 단일 서명 및 복수 서명을 추가하고, 점진적으로 저축액을 줄이는 서명 기능을 포함합니다.
지원되는 디지털 서명 인증서
IronPDF는 Windows의 .pfx 형식과 MacOS의 .p12 형식으로 디지털 서명 인증서를 지원합니다. 이들은 X509Certificate2 표준을 준수합니다. 기존 디지털 서명 인증서의 파일 확장자를 확인하여 형식을 검증할 수 있습니다.
필요한 형식의 인증서가 없는 경우 새 X509Certificate2 표준 인증서를 만들기 위해 이 문서를 참조하십시오. 이렇게 생성된 인증서는 IronPDF 통해 PDF 문서에 적용할 수 있습니다.
X509KeyStorageFlags.Exportable만 지원합니다. 일부 인증서는 기본적으로 KeyStorageFlags이 내보내기 가능으로 설정되어 있습니다. 다른 KeyStorageFlags를 사용하려고 하면 예외가 발생합니다.이미지가 포함된 서명
PDF 문서에 이미지를 추가하여 문서가 디지털 서명되었음을 시각적으로 나타낼 수 있습니다. IronPDF 사용하면 다음 코드 조각을 이용하여 이를 구현할 수 있습니다.
// Create a PdfSignature object by specifying the certificate file (.pfx) and its password
var sig = new PdfSignature("IronSoftware.pfx", "123456");
// Set the signature image which includes the image path, page number, and its position in the document
sig.SignatureImage = new PdfSignatureImage("IronSoftware.png", 0, new Rectangle(0, 600, 100, 100));
// Create a PdfSignature object by specifying the certificate file (.pfx) and its password
var sig = new PdfSignature("IronSoftware.pfx", "123456");
// Set the signature image which includes the image path, page number, and its position in the document
sig.SignatureImage = new PdfSignatureImage("IronSoftware.png", 0, new Rectangle(0, 600, 100, 100));
' Create a PdfSignature object by specifying the certificate file (.pfx) and its password
Dim sig = New PdfSignature("IronSoftware.pfx", "123456")
' Set the signature image which includes the image path, page number, and its position in the document
sig.SignatureImage = New PdfSignatureImage("IronSoftware.png", 0, New Rectangle(0, 600, 100, 100))
이미지 파일 속성이 프로젝트에서 "CopyToOutputDirectory=always"로 설정되어 있으면 서명이 적용된 후 PDF 문서에서 이미지를 찾고 렌더링할 수 있습니다.
IronPDF 통해 디지털 서명을 적용하는 방법에 대한 자세한 내용은 PDF 문서에 디지털 서명하기 문서를 참조하세요.
엔지니어링 지원이 필요하시면 IronPDF 엔지니어링 지원 요청 방법 페이지를 참조하십시오.

