Skip to footer content

How to Set and Edit PDF Metadata in C#

This tutorial provides a comprehensive guide on using IronPDF within C# to generate PDF documents enriched with custom metadata. Starting with the setup in Visual Studio, it ensures the IronPDF Library is installed and ready for use. The tutorial takes you through importing the necessary namespaces and initializing a Chrome PDF render instance. By passing an HTML string to the render HTML as PDF method, you create the document's content. The metadata class within the PDF object allows setting various properties such as author, creation date, title, and more, enhancing the document's utility for categorization and archiving. Finally, the tutorial demonstrates saving the PDF using the save as method with a specified file name. By executing the program, users can verify the embedded metadata by checking the document properties. This tutorial is not only a valuable resource for generating PDFs but also highlights the broader applications and features of IronPDF. The video encourages viewers to explore further through available links and to try the software themselves for a hands-on experience.

Further Reading: How to Set and Edit PDF Metadata

Chipego
Software Engineer
Chipego has a natural skill for listening that helps him to comprehend customer issues, and offer intelligent solutions. He joined the Iron Software team in 2023, after studying a Bachelor of Science in Information Technology. IronPDF and IronOCR are the two products Chipego has been focusing on, but his knowledge of all products is growing daily, as he finds new ways to support customers. He enjoys how collaborative life is at Iron Software, with team members from across the company bringing their varied experience to contribute to effective, innovative solutions. When Chipego is away from his desk, he can often be found enjoying a good book or playing football.