IRONSOFTWAREHOME
디지털 서명
using IronPdf;
using IronPdf.Signing;

// Cryptographically sign an existing PDF in 1 line of code!
new IronPdf.Signing.PdfSignature("Iron.p12", "123456").SignPdfFile("any.pdf");

/***** Advanced example for more control *****/

// Step 1. Create a PDF
var renderer = new ChromePdfRenderer();
var doc = renderer.RenderHtmlAsPdf("<h1>Testing 2048 bit digital security</h1>");

// Step 2. Create a Signature.
// You may create a .pfx or .p12 PDF signing certificate using Adobe Acrobat Reader.
// Read: https://helpx.adobe.com/acrobat/using/digital-ids.html

var signature = new IronPdf.Signing.PdfSignature("Iron.pfx", "123456")
{
    // Step 3. Optional signing options and a handwritten signature graphic
    SigningContact = "support@ironsoftware.com",
    SigningLocation = "Chicago, USA",
    SigningReason = "To show how to sign a PDF"
};

//Step 3. Sign the PDF with the PdfSignature. Multiple signing certificates may be used
doc.Sign(signature);

//Step 4. The PDF is not signed until saved to file, steam or byte array.
doc.SaveAs("signed.pdf");
Imports IronPdf
Imports IronPdf.Signing

' Cryptographically sign an existing PDF in 1 line of code!
Call (New IronPdf.Signing.PdfSignature("Iron.p12", "123456")).SignPdfFile("any.pdf")

'/***** Advanced example for more control *****/

' Step 1. Create a PDF
Dim renderer = New ChromePdfRenderer()
Dim doc = renderer.RenderHtmlAsPdf("<h1>Testing 2048 bit digital security</h1>")

' Step 2. Create a Signature.
' You may create a .pfx or .p12 PDF signing certificate using Adobe Acrobat Reader.
' Read: https://helpx.adobe.com/acrobat/using/digital-ids.html

Dim signature = New IronPdf.Signing.PdfSignature("Iron.pfx", "123456") With {
    ' Step 3. Optional signing options and a handwritten signature graphic
    .SigningContact = "support@ironsoftware.com",
    .SigningLocation = "Chicago, USA",
    .SigningReason = "To show how to sign a PDF"
}

'Step 3. Sign the PDF with the PdfSignature. Multiple signing certificates may be used
doc.Sign(signature)

'Step 4. The PDF is not signed until saved to file, steam or byte array.
doc.SaveAs("signed.pdf")
NuGet Download
PM > Install-Package IronPdf
디지털 서명

디지털 서명

PDF 문서에 디지털 서명을 하면 PDF 자체에 인증 정보를 추가하는 방법을 제공하여 문서의 무결성을 보장하는 데 도움이 됩니다. IronPDF를 사용하면 새 PDF 파일이나 기존 PDF 파일에 서명할 때 여러 가지 옵션을 활용할 수 있습니다. 디지털 인증서를 사용하여 PDF 문서에 서명하거나, PDF에 그래픽으로 된 손글씨 서명을 추가하거나, 인증서 이미지를 PDF에 삽입하거나, 사용자가 서명하도록 PDF에 서명 양식 필드를 추가하는 등의 방법이 있습니다.

IronPDF를 사용하여 PDF에 디지털 서명하는 단계

이 과정의 첫 번째 단계는 서명할 PDF 파일을 불러오거나 새로 만드는 것입니다. 본 예제에서는 새 ChromePdfRenderer 인스턴스를 생성합니다. IronPDF의 강력한 렌더링 엔진은 HTML, CSS 및 JavaScript를 품질 손실 없이 PDF로 렌더링하는 데 사용됩니다. 그런 다음 RenderHtmlAsPdf 메서드를 사용하여 HTML 문자열을 서명 준비가 된 고품질 PDF 문서로 렌더링합니다. 결과로 생성된 PDF는 doc 변수에 저장됩니다.

다음으로, 서명을 만들어야 합니다. 이 예시에서는 인증서를 사용하여 PDF 문서에 서명합니다. PdfSignature는 PDF 서명을 위한 디지털 서명 객체를 나타내며, 서명에 사용할 .pfx 파일의 경로와 이 파일에 접근하기 위한 비밀번호가 필요합니다. 우리는 세 가지 선택적 속성을 포함했습니다: SigningContact은 서명 메타데이터에 이메일 또는 연락처 정보를 추가하고, SigningLocation는 문서가 서명된 위치를 나타내며, SigningReason은 문서가 서명된 이유를 제공합니다.

다음으로, 우리는 생성한 PdfSignature 객체로 PDF 문서에 서명합니다. Sign 메서드를 호출함으로써, 우리는 서명을 한 줄로 PDF 문서에 적용합니다. 여러 서명 인증서를 이 메서드를 사용하여 PDF 문서에 적용할 수 있습니다.

마지막으로, SaveAs 메서드를 사용하여 서명된 PDF 문서를 지정된 파일 위치에 저장합니다.

IronPDF를 사용하여 PDF에 안전하게 서명하는 방법을 알아보세요.
GitHub에서 보기

시작할 준비 되셨나요?

Nuget Downloads 20,756,830버전:2026.7방금 출시

Key in blue circle

무료 30일 체험 키를 즉시 받으세요.

Your trial license will be sent to your email address

제한 없음. 100% 무제한 이용. 신용카드 불필요.

bullet_checked신용카드나 계정 생성은 필요하지 않습니다.제한 없음. 100% 무제한 이용. 신용카드 불필요.
  • Logo Aetna
  • Logo NASA
  • Logo GE
  • Logo Porsche
  • Logo USDA
  • Logo Qatar
Join Millions of Engineers who’ve tried IronPDF
무료 라이브 데모를 예약하세요
Booking Badge

전 세계 수백만 엔지니어들이 신뢰하는 제품입니다.

Iron Software의 고객 로고
부담 없는 무료 상담을 받아보세요
아래 양식을 작성하시거나 sales@ironsoftware.com으로 이메일을 보내주세요.
고객님의 정보는 항상 비밀로 유지됩니다.
전 세계 수백만 엔지니어들이 신뢰하는 제품입니다.
Iron Software의 고객 로고
지금 바로 30일 무료 체험판 키를 받으세요.
신용카드나 계정 생성은 필요하지 않습니다.