IronPDF는 PDF 문서에 첨부 파일을 추가하고 제거하는 기능을 지원합니다.
자세한 내용은 IronPDF 설명서를 탐색해 보세요. 자세한 가이드와 리소스가 제공됩니다. 또한, Iron Software 웹사이트에서 더 많은 기능과 역량에 대해 알아보세요.
IronPDF를 사용하여 PDF에 첨부 파일을 추가/제거하는 방법을 알아보세요.using IronPdf;
using System.IO;
// Instantiate the Renderer and create PdfDocument from HTML
var renderer = new ChromePdfRenderer();
var myPdf = renderer.RenderHtmlFileAsPdf("my-content.html");
// Load your own attachment
byte[] attachment = File.ReadAllBytes("path/to/attachment");
// Here we can add an attachment with a name and a byte[]
PdfAttachment exampleAttachment = myPdf.Attachments.AddAttachment("exampleAttachment", attachment);
// And here is an example of removing an attachment
myPdf.Attachments.RemoveAttachment(exampleAttachment);
myPdf.SaveAs("my-content.pdf");
Imports IronPdf
Imports System.IO
' Instantiate the Renderer and create PdfDocument from HTML
Dim renderer As New ChromePdfRenderer()
Dim myPdf = renderer.RenderHtmlFileAsPdf("my-content.html")
' Load your own attachment
Dim attachment As Byte() = File.ReadAllBytes("path/to/attachment")
' Here we can add an attachment with a name and a byte()
Dim exampleAttachment As PdfAttachment = myPdf.Attachments.AddAttachment("exampleAttachment", attachment)
' And here is an example of removing an attachment
myPdf.Attachments.RemoveAttachment(exampleAttachment)
myPdf.SaveAs("my-content.pdf")Imports IronPdf
Imports System.IO
' Instantiate the Renderer and create PdfDocument from HTML
Dim renderer As New ChromePdfRenderer()
Dim myPdf = renderer.RenderHtmlFileAsPdf("my-content.html")
' Load your own attachment
Dim attachment As Byte() = File.ReadAllBytes("path/to/attachment")
' Here we can add an attachment with a name and a byte()
Dim exampleAttachment As PdfAttachment = myPdf.Attachments.AddAttachment("exampleAttachment", attachment)
' And here is an example of removing an attachment
myPdf.Attachments.RemoveAttachment(exampleAttachment)
myPdf.SaveAs("my-content.pdf")IronPDF는 PDF 문서에 첨부 파일을 추가하고 제거하는 기능을 지원합니다.
자세한 내용은 IronPDF 설명서를 탐색해 보세요. 자세한 가이드와 리소스가 제공됩니다. 또한, Iron Software 웹사이트에서 더 많은 기능과 역량에 대해 알아보세요.
IronPDF를 사용하여 PDF에 첨부 파일을 추가/제거하는 방법을 알아보세요.시작할 준비 되셨나요?
NuGet 다운로드 수 22,471,552|버전:2026.11방금 출시
PDF 파일을 HTML처럼 빠르게 변환해야 할 때.