

Finally, use the GRestore operator to save the updated graphical state.Do operator to draw the image on the page.ConcatenateMatrix operator to specify where the image is to be placed.GSave operator to save the current graphical state.Use operators to place the image on the page:.Add the image to the page’s Resources collection.Access the page you want to add an image to using Page class.Create an object of Document class to open a PDF document.Let’s now check how to insert an image into the PDF document. The following code sample shows how to modify a PDF using C#. Save the document using Document.Save() method.Manipulate the pages or content of the document.


The library is available as a downloadable DLL as well as hosted on NuGet. Also, you can get a free license and create your desired PDF files. Using the library you can generate various kinds of reports and business documents dynamically. NET is a PDF file manipulation library that lets you generate and process PDF files from within your. We will also demonstrate how to insert text, images, tables, and other components in PDF via C#.Īspose.PDF for. Ultimately, you will learn how to create PDF files in C#. This article covers the basic implementation of PDF automation within.

In various applications, PDF documents are generated dynamically, such as invoices, receipts, and different types of reports. Are you looking for a high-speed solution to generate rich PDF files in C#? If yes, this article is going to ease your life by simplifying the process of creating PDF files from scratch.Īutomated generation and processing of PDF documents have become a demanding feature in recent days.
