IRONPDF 사용 How to Add PDF Stamper in C# 커티스 차우 업데이트됨:7월 28, 2025 다운로드 IronPDF NuGet 다운로드 DLL 다운로드 윈도우 설치 프로그램 무료 체험 시작하기 LLM용 사본 LLM용 사본 LLM용 마크다운 형식으로 페이지를 복사하세요 ChatGPT에서 열기 ChatGPT에 이 페이지에 대해 문의하세요 제미니에서 열기 제미니에게 이 페이지에 대해 문의하세요 Grok에서 열기 Grok에게 이 페이지에 대해 문의하세요 혼란 속에서 열기 Perplexity에게 이 페이지에 대해 문의하세요 공유하다 페이스북에 공유하기 트위터에 공유하기 LinkedIn에 공유하기 URL 복사 이메일로 기사 보내기 Stamping text and images on a PDF involves overlaying additional content onto an existing PDF document. This content, often called a "stamp," can be text, images, or a combination. Typically, users add information, labels, watermarks, or annotations to a PDF using stamps. TextStamper: The TextStamper is your solution for adding descriptive text to PDFs. Whether you're enhancing an existing document, placing text on the same page, or incorporating details from other PDF documents, this stamper allows you to customize your files with file descriptions and information. ImageStamper: The ImageStamper is the go-to tool for placing images within your PDFs. Whether it's a logo for file description, an illustration for an existing document, or a visual element for the same page or other PDF document, this stamper ensures seamless integration of images. HtmlStamper: The HtmlStamper takes customization to the next level, allowing you to stamp HTML content onto your PDFs. This includes creating dynamic elements like interactive content, descriptions, and file specifications, providing flexibility beyond traditional PDF customization. BarcodeStamper to stamp Barcodes: The BarcodeStamper simplifies the process of adding barcodes to your PDFs. Whether it's for tracking purposes in a signed document, temporary file, or file attachment, this stamper ensures efficient integration of barcodes into your PDFs. BarcodeStamper to stamp QR Codes: The BarcodeStamper specializes in placing QR codes as well on your PDFs. Perfect for creating interactive content or file attachments, this stamper allows you to embed QR codes on the same page or other PDF documents, ensuring easy access to additional information. These specialized stamper classes facilitate users to easily enhance PDF documents with various elements, from basic text to intricate HTML designs and dynamic barcodes. This article will explore the functionalities of three main stampers: Adding Text with TextStamper, Placing Images with ImageStamper, and Integrating HTML with HtmlStamper. HTMLStamper is particularly powerful because it can make use of all HTML features, coupled with CSS styling, adding an extra layer of versatility to the stamping process. How to Stamp Text & Image on PDFs Download the C# library to stamp text and images. Create and configure the desired stamper class. Use the 'ApplyStamp' method to apply the stamp to the PDF. Apply multiple stamps using the 'ApplyMultipleStamps' method. Specify particular pages to apply the stamps to. Configuring and Applying Text Stamps in PDFs First, create an object from the TextStamper class to support text stamping in PDFs. The object of this class contains all the configurations to specify how the text stamper is presented. Pass the textStamper object to the 'ApplyStamp' method. The Text property defines the content to be displayed on the PDF. Furthermore, it is possible to specify font family, font styling, as well as the location of the Stamp. This customization extends to interactive elements, file descriptions, and existing content on the same or other PDFs. Then, export the PDF with the actual file name. On completing the configurations, export the output PDF file with the designated file name, encapsulating all settings and providing a professional touch to your documents. using IronPdf; using IronPdf.Editing; // Initialize the PDF renderer ChromePdfRenderer renderer = new ChromePdfRenderer(); // Create a PDF document from HTML content PdfDocument pdf = renderer.RenderHtmlAsPdf("<h1>Example HTML Document!</h1>"); // Create a TextStamper object and configure its properties TextStamper textStamper = new TextStamper() { Text = "Text Stamper!", FontFamily = "Bungee Spice", UseGoogleFont = true, FontSize = 30, IsBold = true, IsItalic = true, VerticalAlignment = VerticalAlignment.Top, }; // Apply the text stamp to the PDF document pdf.ApplyStamp(textStamper); // Save the modified PDF document pdf.SaveAs("stampText.pdf"); using IronPdf; using IronPdf.Editing; // Initialize the PDF renderer ChromePdfRenderer renderer = new ChromePdfRenderer(); // Create a PDF document from HTML content PdfDocument pdf = renderer.RenderHtmlAsPdf("<h1>Example HTML Document!</h1>"); // Create a TextStamper object and configure its properties TextStamper textStamper = new TextStamper() { Text = "Text Stamper!", FontFamily = "Bungee Spice", UseGoogleFont = true, FontSize = 30, IsBold = true, IsItalic = true, VerticalAlignment = VerticalAlignment.Top, }; // Apply the text stamp to the PDF document pdf.ApplyStamp(textStamper); // Save the modified PDF document pdf.SaveAs("stampText.pdf"); $vbLabelText $csharpLabel Configuring and Applying Image Stamps in PDF Similar to the text stamper, create an object from the ImageStamper class and then use the ImageStamper Apply Method to apply the image to the document. This method's second parameter also accommodates a page index, enabling the stamp application to single or multiple pages. This specific instance can instruct the system to apply the image as a stamp, particularly on the first page of the PDF. All page indexes follow zero-based indexing. using IronPdf; using IronPdf.Editing; // Initialize the PDF renderer ChromePdfRenderer renderer = new ChromePdfRenderer(); // Create a PDF document from HTML content PdfDocument pdf = renderer.RenderHtmlAsPdf("<h1>Example HTML Document!</h1>"); // Create an ImageStamper object with the image URL ImageStamper imageStamper = new ImageStamper(new Uri("https://ironpdf.com/img/svgs/iron-pdf-logo.svg")) { VerticalAlignment = VerticalAlignment.Top, }; // Apply the image stamp to the first page of the PDF document pdf.ApplyStamp(imageStamper, 0); // Save the modified PDF document pdf.SaveAs("stampImage.pdf"); using IronPdf; using IronPdf.Editing; // Initialize the PDF renderer ChromePdfRenderer renderer = new ChromePdfRenderer(); // Create a PDF document from HTML content PdfDocument pdf = renderer.RenderHtmlAsPdf("<h1>Example HTML Document!</h1>"); // Create an ImageStamper object with the image URL ImageStamper imageStamper = new ImageStamper(new Uri("https://ironpdf.com/img/svgs/iron-pdf-logo.svg")) { VerticalAlignment = VerticalAlignment.Top, }; // Apply the image stamp to the first page of the PDF document pdf.ApplyStamp(imageStamper, 0); // Save the modified PDF document pdf.SaveAs("stampImage.pdf"); $vbLabelText $csharpLabel Apply Multiple Stamps To add multiple stamps to a document, use the method for Applying Multiple Stamps in IronPDF by passing an array of stampers. It lets you add various elements, like text, images, or labels, all in one go. Two text stampers were created with different text and alignments in this example, the pdf.ApplyMultipleStamps applies both stamps to the PDF, and the final document is saved as multipleStamps.pdf. This method streamlines the process of adding various stamps, providing a convenient way to enhance your PDF with multiple elements, whether on the same page, another PDF, or even a blank page. using IronPdf; using IronPdf.Editing; // Initialize the PDF renderer ChromePdfRenderer renderer = new ChromePdfRenderer(); // Create a PDF document from HTML content PdfDocument pdf = renderer.RenderHtmlAsPdf("<h1>Example HTML Document!</h1>"); // Create two TextStamper objects with different configurations TextStamper stamper1 = new TextStamper() { Text = "Text stamp 1", VerticalAlignment = VerticalAlignment.Top, HorizontalAlignment = HorizontalAlignment.Left, }; TextStamper stamper2 = new TextStamper() { Text = "Text stamp 2", VerticalAlignment = VerticalAlignment.Top, HorizontalAlignment = HorizontalAlignment.Right, }; // Add the stampers to an array Stamper[] stampersToApply = { stamper1, stamper2 }; // Apply multiple stamps to the PDF document pdf.ApplyMultipleStamps(stampersToApply); // Save the modified PDF document pdf.SaveAs("multipleStamps.pdf"); using IronPdf; using IronPdf.Editing; // Initialize the PDF renderer ChromePdfRenderer renderer = new ChromePdfRenderer(); // Create a PDF document from HTML content PdfDocument pdf = renderer.RenderHtmlAsPdf("<h1>Example HTML Document!</h1>"); // Create two TextStamper objects with different configurations TextStamper stamper1 = new TextStamper() { Text = "Text stamp 1", VerticalAlignment = VerticalAlignment.Top, HorizontalAlignment = HorizontalAlignment.Left, }; TextStamper stamper2 = new TextStamper() { Text = "Text stamp 2", VerticalAlignment = VerticalAlignment.Top, HorizontalAlignment = HorizontalAlignment.Right, }; // Add the stampers to an array Stamper[] stampersToApply = { stamper1, stamper2 }; // Apply multiple stamps to the PDF document pdf.ApplyMultipleStamps(stampersToApply); // Save the modified PDF document pdf.SaveAs("multipleStamps.pdf"); $vbLabelText $csharpLabel Specifying Stamp Location on PDF Document To define the placement of the Stamp, utilize a 3x3 grid with three horizontal columns and three vertical rows. You have choices for horizontal alignment: left, center, and right, and vertical alignment: top, middle, and bottom. You can adjust horizontal and vertical offsets for added precision for each position. Please refer to the image below for a visual representation of this concept. PDF stamper positioning HorizontalAlignment: The horizontal alignment of the Stamp relative to the page. VerticalAlignment: The vertical alignment of the Stamp relative to the page. HorizontalOffset: The horizontal offset. The default value is 0, and the default unit is IronPdf.Editing.MeasurementUnit.Percentage. Positive values indicate an offset to the right, while negative values indicate an offset to the left. VerticalOffset: The vertical offset. The default value is 0, and the default unit is IronPdf.Editing.MeasurementUnit.Percentage. Positive values indicate an offset downward, while negative values indicate an offset upward. To specify the HorizontalOffset and VerticalOffset properties, instantiate the Specified Length Class for detailed measurement. The default measurement unit for Length is a percentage, but it can also use measurement units such as inches, millimeters, centimeters, pixels, and points. using IronPdf.Editing; // Create an ImageStamper object with an image URL ImageStamper imageStamper = new ImageStamper(new Uri("https://ironpdf.com/img/svgs/iron-pdf-logo.svg")) { HorizontalAlignment = HorizontalAlignment.Center, VerticalAlignment = VerticalAlignment.Top, // Specify offsets for precise positioning HorizontalOffset = new Length(10), // 10% offset to the right VerticalOffset = new Length(10), // 10% offset downward }; using IronPdf.Editing; // Create an ImageStamper object with an image URL ImageStamper imageStamper = new ImageStamper(new Uri("https://ironpdf.com/img/svgs/iron-pdf-logo.svg")) { HorizontalAlignment = HorizontalAlignment.Center, VerticalAlignment = VerticalAlignment.Top, // Specify offsets for precise positioning HorizontalOffset = new Length(10), // 10% offset to the right VerticalOffset = new Length(10), // 10% offset downward }; $vbLabelText $csharpLabel Configuring and Applying HTML Stamps in PDF There is another stamper class that can be used to stamp both text and images. The HtmlStamper Class for HTML Integration can render HTML designs with CSS styling and stamp them onto the PDF document. The InnerHtmlBaseUrl property is used to specify the base URL for the HTML string assets, such as CSS and image files. The HtmlStamper class is applied to the PDF. This stamper object includes an image and text, and you can define these in the HTML fragment which is to be stamped onto your PDF. All external references to JavaScript, CSS, and image files will be relative to the inner Html property. This code allows you to customize the PDF according to specific file specifications mentioned in the HTML content. Lastly, the modified PDF is saved with the filename 'stampHtml.pdf.' using IronPdf; using IronPdf.Editing; // Initialize the PDF renderer ChromePdfRenderer renderer = new ChromePdfRenderer(); // Create a PDF document from HTML content PdfDocument pdf = renderer.RenderHtmlAsPdf("<h1>Example HTML Document!</h1>"); // Create an HtmlStamper object and configure its properties HtmlStamper htmlStamper = new HtmlStamper() { Html = @"<img src='https://ironpdf.com/img/svgs/iron-pdf-logo.svg'> <h1>Iron Software</h1>", VerticalAlignment = VerticalAlignment.Top, }; // Apply the HTML stamp to the PDF document pdf.ApplyStamp(htmlStamper); // Save the modified PDF document pdf.SaveAs("stampHtml.pdf"); using IronPdf; using IronPdf.Editing; // Initialize the PDF renderer ChromePdfRenderer renderer = new ChromePdfRenderer(); // Create a PDF document from HTML content PdfDocument pdf = renderer.RenderHtmlAsPdf("<h1>Example HTML Document!</h1>"); // Create an HtmlStamper object and configure its properties HtmlStamper htmlStamper = new HtmlStamper() { Html = @"<img src='https://ironpdf.com/img/svgs/iron-pdf-logo.svg'> <h1>Iron Software</h1>", VerticalAlignment = VerticalAlignment.Top, }; // Apply the HTML stamp to the PDF document pdf.ApplyStamp(htmlStamper); // Save the modified PDF document pdf.SaveAs("stampHtml.pdf"); $vbLabelText $csharpLabel HTML Stamper Options In addition to the options mentioned and explained above, below are more available to the stamper classes. Opacity: Allows the Stamp to be transparent. 0 is entirely invisible, and 100 is fully opaque. Rotation: Rotates the Stamp clockwise from 0 to 360 degrees as specified. MaxWidth: The maximum width of the output stamp. MaxHeight: The maximum height of the output stamp. MinWidth: The minimum width of the output stamp. MinHeight: The minimum height of the output stamp. Hyperlink: Makes stamped elements of this Stamper have an on-click hyperlink. Note: HTML links created by link(a) tags are not preserved by stamping in the final output. Scale: Applies a percentage scale to the stamps to make them larger or smaller. The default is 100 (Percent), which has no effect. IsStampBehindContent: Set to true to apply the Stamp behind the content. If the content is opaque, the Stamp may be invisible. WaitFor: A convenient wrapper to wait for various events or some time. Timeout: Render timeout in seconds. The default value is 60. IronPDF's stamper options provide advanced customization, allowing users to enhance PDFs with transparency, precise rotation, and controlled dimensions. Features like Hyperlink and Scale facilitate the incorporation of all the interactive elements, adhering to file specifications and emphasizing only the content. The IsStampBehindContent option strategically positions stamps, ensuring they are part of the same object, not the fields. At the same time, the WaitFor feature efficiently manages rendering events, making IronPDF a versatile tool for PDF customization, including original page rotation. Conclusion In conclusion, IronPDF's Stamper Functionality provides a versatile and user-friendly solution for enhancing PDF documents. Whether adding simple text labels, incorporating images, or leveraging the power of HTML and CSS with the HTMLStamper, IronPDF caters to a wide range of customization needs. The ease of use and practical examples showcasing the application of text and image stamps make it accessible for users with varying technical expertise. The stamper options, including opacity, rotation, and scale, contribute to a comprehensive toolkit for users seeking to customize PDFs effortlessly. IronPDF's stamper feature stands out as a reliable and efficient tool, empowering users to easily elevate their PDF documents. Essentially, Mastering PDF Enhancements with IronPDF effortlessly elevates PDFs for both basic and advanced needs including Extracting Embedded Texts and Images, Handling PDF Forms with Ease, Efficient Merging or Splitting of PDF Files, and Formatting PDFs with Custom Headers and Footers programmatically. For inquiries or feature requests, IronPDF Support Team is ready to assist. 자주 묻는 질문 PDF 스탬핑이란 무엇이며 C#에서 어떻게 사용할 수 있나요? PDF 스탬핑에는 기존 PDF 문서에 텍스트, 이미지 또는 HTML과 같은 콘텐츠를 추가하는 작업이 포함됩니다. C#에서는 TextStamper 및 ImageStamper와 같은 IronPDF의 스탬퍼 클래스를 사용하여 이러한 요소를 효율적으로 적용할 수 있습니다. PDF 사용자 정의에 사용할 수 있는 스탬퍼 클래스는 무엇인가요? IronPDF는 텍스트용 TextStamper, 이미지용 ImageStamper, HTML 콘텐츠용 HtmlStamper, 바코드 및 QR 코드용 BarcodeStamper 등 여러 특수 스탬퍼 클래스를 제공합니다. C#을 사용하여 PDF에 텍스트 스탬프를 적용하려면 어떻게 해야 하나요? 텍스트 스탬프를 적용하려면 TextStamper 개체를 생성하고 텍스트 내용 및 글꼴과 같은 속성을 설정한 다음 ApplyStamp 메서드를 사용하여 PDF에 적용합니다. PDF 문서에 HTML 콘텐츠를 삽입할 수 있나요? 예, IronPDF의 HtmlStamper를 사용하면 HTML 콘텐츠를 PDF 문서에 삽입하여 동적이고 스타일이 지정된 요소를 포함할 수 있습니다. PDF 페이지에서 스탬프 배치를 제어하려면 어떻게 해야 하나요? IronPDF를 사용하면 3x3 그리드 시스템을 사용하여 스탬프 배치를 제어하여 수평 및 수직 오프셋으로 정렬하고 정밀하게 조정할 수 있습니다. PDF 스탬프 사용자 지정에는 어떤 옵션을 사용할 수 있나요? 불투명도, 회전, 크기 조정, 하이퍼링크, 기존 콘텐츠 뒤에 스탬프를 레이어링하는 기능과 같은 옵션을 사용하여 IronPDF에서 PDF 스탬프를 사용자 지정할 수 있습니다. 하나의 PDF 문서에 여러 유형의 스탬프를 적용하려면 어떻게 해야 하나요? IronPDF를 사용하면 ApplyMultipleStamps 방법을 사용하여 텍스트, 이미지 등 다양한 유형의 스탬프를 단일 PDF 문서에 효율적으로 적용할 수 있습니다. PDF에 QR 코드를 추가할 수 있나요? 예, IronPDF의 바코드스탬퍼를 사용하여 PDF에 QR 코드를 추가하여 대화형 및 정보 제공 목적으로 사용할 수 있습니다. 스탬퍼 추상 클래스는 PDF 스탬핑에서 어떤 역할을 하나요? IronPDF의 스탬퍼 추상 클래스는 스탬핑 작업을 위한 공통 기능을 제공하는 특수 스탬퍼 클래스를 만들기 위한 기초입니다. C#을 사용하여 PDF에 이미지 스탬프를 적용하려면 어떻게 해야 하나요? ImageStamper 객체를 생성하고 속성을 구성한 다음, 선택적으로 페이지 인덱스를 지정하는 ApplyStamp 메서드를 사용하여 PDF 문서에 이미지를 스탬핑하는 방법을 알아봅니다. IronPDF는 PDF Stamper 클래스 사용을 위해 .NET 10을 지원하나요? 예, IronPDF는 .NET 10과 완벽하게 호환됩니다. 이 라이브러리는 .NET 9, .NET 8, .NET Core, .NET Standard 및 .NET Framework와 같은 이전 버전과 함께 .NET 10을 지원합니다. 즉, TextStamper, ImageStamper, HtmlStamper, BarcodeStamper를 포함한 모든 스탬퍼 클래스는 .NET 10 프로젝트에서 수정되지 않고 작동합니다. 커티스 차우 지금 바로 엔지니어링 팀과 채팅하세요 기술 문서 작성자 커티스 차우는 칼턴 대학교에서 컴퓨터 과학 학사 학위를 취득했으며, Node.js, TypeScript, JavaScript, React를 전문으로 하는 프론트엔드 개발자입니다. 직관적이고 미적으로 뛰어난 사용자 인터페이스를 만드는 데 열정을 가진 그는 최신 프레임워크를 활용하고, 잘 구성되고 시각적으로 매력적인 매뉴얼을 제작하는 것을 즐깁니다. 커티스는 개발 분야 외에도 사물 인터넷(IoT)에 깊은 관심을 가지고 있으며, 하드웨어와 소프트웨어를 통합하는 혁신적인 방법을 연구합니다. 여가 시간에는 게임을 즐기거나 디스코드 봇을 만들면서 기술에 대한 애정과 창의성을 결합합니다. 관련 기사 업데이트됨 1월 22, 2026 How to Create PDF Documents in .NET with IronPDF: Complete Guide Discover effective methods to create PDF files in C# for developers. Enhance your coding skills and streamline your projects. Read the article now! 더 읽어보기 업데이트됨 1월 21, 2026 How to Merge PDF Files in VB.NET: Complete Tutorial Merge PDF VB NET with IronPDF. Learn to combine multiple PDF files into one document using simple VB.NET code. Step-by-step examples included. 더 읽어보기 업데이트됨 1월 21, 2026 C# PDFWriter Tutorial: Create PDF Documents in .NET Learn to create PDFs efficiently using C# PDFWriter with this step-by-step guide for developers. Read the article to enhance your skills today! 더 읽어보기 How to Convert PDF to Tiff File in .NETHow to Read PDF Files in C#
업데이트됨 1월 22, 2026 How to Create PDF Documents in .NET with IronPDF: Complete Guide Discover effective methods to create PDF files in C# for developers. Enhance your coding skills and streamline your projects. Read the article now! 더 읽어보기
업데이트됨 1월 21, 2026 How to Merge PDF Files in VB.NET: Complete Tutorial Merge PDF VB NET with IronPDF. Learn to combine multiple PDF files into one document using simple VB.NET code. Step-by-step examples included. 더 읽어보기
업데이트됨 1월 21, 2026 C# PDFWriter Tutorial: Create PDF Documents in .NET Learn to create PDFs efficiently using C# PDFWriter with this step-by-step guide for developers. Read the article to enhance your skills today! 더 읽어보기