Create PDFs
Create PDFs from scratch using our powerful and intuitive document building API.
Design Your Perfect PDF
Create Blank PDF
Create a brand-new PDF from scratch! Start with a blank canvas and build the document you need with complete control. Whether you're building a new report, designing an invoice, or drafting a proposal, start from scratch or use a template for faster results.
Learn how to:Create a blank PDFusing IronPdf;
PdfDocument pdf = new PdfDocument(270, 270);
pdf.SaveAs("blankPage.pdf");Imports IronPdf
Dim pdf As New PdfDocument(270, 270)
pdf.SaveAs("blankPage.pdf")Add Texts & Images
Insert custom text and images into your PDF documents seamlessly. IronPDF gives you full control over placement, alignment, and opacity of elements, along with the flexibility to manage headers and text positioning across different pages.
Learn how to:add texts & imagesusing IronPdf;
using IronSoftware.Drawing;
ChromePdfRenderer renderer = new ChromePdfRenderer();
PdfDocument pdf = renderer.RenderHtmlAsPdf("<h1>testing</h1>");
// Draw text on PDF
pdf.DrawText("Some text", FontTypes.TimesNewRoman.Name, FontSize: 12, PageIndex: 0, X: 100, Y: 100, Color.Black, Rotation: 0);
// Open image file
AnyBitmap bitmap = AnyBitmap.FromFile("ironSoftware.png");
// Draw the bitmp on PDF
pdf.DrawBitmap(bitmap, 0, 50, 250, 500, 300);Imports IronPdf
Imports IronSoftware.Drawing
Dim renderer As New ChromePdfRenderer()
Dim pdf As PdfDocument = renderer.RenderHtmlAsPdf("<h1>testing</h1>")
' Draw text on PDF
pdf.DrawText("Some text", FontTypes.TimesNewRoman.Name, FontSize:=12, PageIndex:=0, X:=100, Y:=100, Color.Black, Rotation:=0)
' Open image file
Dim bitmap As AnyBitmap = AnyBitmap.FromFile("ironSoftware.png")
' Draw the bitmap on PDF
pdf.DrawBitmap(bitmap, 0, 50, 250, 500, 300)Add Shapes
Choose from a wide range of shapes to add to your PDF documents. Whether for diagramming, highlighting sections, or adding visual elements, the shape library lets you enhance the aesthetics and readability of your PDFs.
Learn how to:add shapesusing IronPdf;
ChromePdfRenderer renderer = new ChromePdfRenderer();
PdfDocument pdf = renderer.RenderHtmlAsPdf("<h1>testing</h1>");
// Configure the required parameters
int pageIndex = 0;
var rectangle = new IronSoftware.Drawing.RectangleF(200, 100, 1000, 100);
var lineColor = new IronSoftware.Drawing.Color("#000000");
var fillColor = new IronSoftware.Drawing.Color("#32AB90");
int lineWidth = 5;
// Draw rectangle on PDF
pdf.DrawRectangle(pageIndex, rectangle, lineColor, fillColor, lineWidth);Dim renderer As New ChromePdfRenderer()
Dim pdf As PdfDocument = renderer.RenderHtmlAsPdf("<h1>testing</h1>")
' Configure the required parameters
Dim pageIndex As Integer = 0
Dim rectangle = New IronSoftware.Drawing.RectangleF(200, 100, 1000, 100)
Dim lineColor = New IronSoftware.Drawing.Color("#000000")
Dim fillColor = New IronSoftware.Drawing.Color("#32AB90")
Dim lineWidth As Integer = 5
' Draw rectangle on PDF
pdf.DrawRectangle(pageIndex, rectangle, lineColor, fillColor, lineWidth)Add Page Numbers
Simplify page numbering in your PDFs with IronPDF's automated page numbering capabilities. Insert page numbers at any location on the page and maintain consistent styling throughout your document.
Learn how to:add page numbersusing IronPdf;
// Create text header
TextHeaderFooter textHeader = new TextHeaderFooter()
{ CenterText = "{page} of {total-pages}" };
// Render a new PDF
ChromePdfRenderer renderer = new ChromePdfRenderer();
PdfDocument pdf = renderer.RenderHtmlAsPdf("<h1>Hello World!</h1>");
// Add header
pdf.AddTextHeaders(textHeader);Imports IronPdf
' Create text header
Dim textHeader As New TextHeaderFooter() With {
.CenterText = "{page} of {total-pages}"
}
' Render a new PDF
Dim renderer As New ChromePdfRenderer()
Dim pdf As PdfDocument = renderer.RenderHtmlAsPdf("<h1>Hello World!</h1>")
' Add header
pdf.AddTextHeaders(textHeader)
Make Full PDF Customization Easy
Orientation
Manage the orientation of your PDFs effortlessly. Switch between Portrait and Landscape modes and rotate your pages by 90 or 180 degrees as needed, perfect for wide-format documents or presentations.
Learn how to:orientate PDFsusing IronPdf;
using IronPdf.Rendering;
ChromePdfRenderer renderer = new ChromePdfRenderer();
// Change paper orientation
renderer.RenderingOptions.PaperOrientation = PdfPaperOrientation.Landscape;
PdfDocument pdf = renderer.RenderUrlAsPdf("https://en.wikipedia.org/wiki/Main_Page");
pdf.SaveAs("landscape.pdf");Imports IronPdf
Imports IronPdf.Rendering
Dim renderer As New ChromePdfRenderer()
' Change paper orientation
renderer.RenderingOptions.PaperOrientation = PdfPaperOrientation.Landscape
Dim pdf As PdfDocument = renderer.RenderUrlAsPdf("https://en.wikipedia.org/wiki/Main_Page")
pdf.SaveAs("landscape.pdf")Custom Paper Size
Support for all standard paper sizes like A4, Letter, and more. Additionally, define custom paper sizes using points, inches, or pixels to match unique requirements, such as posters, receipts, or website snapshots.
Learn how to:customize paper sizeusing IronPdf;
ChromePdfRenderer renderer = new ChromePdfRenderer();
// Set custom paper size in cm
renderer.RenderingOptions.SetCustomPaperSizeinCentimeters(15, 15);
PdfDocument pdf = renderer.RenderHtmlAsPdf("<h1>Custom Paper Size</h1>");
pdf.SaveAs("customPaperSize.pdf");Imports IronPdf
Dim renderer As New ChromePdfRenderer()
' Set custom paper size in cm
renderer.RenderingOptions.SetCustomPaperSizeinCentimeters(15, 15)
Dim pdf As PdfDocument = renderer.RenderHtmlAsPdf("<h1>Custom Paper Size</h1>")
pdf.SaveAs("customPaperSize.pdf")Set PDF Metadata
Easily set or modify the metadata of your PDFs. This includes title, author, keywords, and other attributes to enhance document organization and search ability.
Learn how to:set PDF Metadatausing IronPdf;
using System;
ChromePdfRenderer renderer = new ChromePdfRenderer();
PdfDocument pdf = renderer.RenderHtmlAsPdf("<h1>Metadata</h1>");
// Access the MetaData class and set the pre-defined metadata properties.
pdf.MetaData.Author = "Iron Software";
pdf.MetaData.CreationDate = DateTime.Today;
pdf.MetaData.Creator = "IronPDF";
pdf.SaveAs("pdf-with-metadata.pdf");Imports IronPdf
Imports System
Dim renderer As New ChromePdfRenderer()
Dim pdf As PdfDocument = renderer.RenderHtmlAsPdf("<h1>Metadata</h1>")
' Access the MetaData class and set the pre-defined metadata properties.
pdf.MetaData.Author = "Iron Software"
pdf.MetaData.CreationDate = DateTime.Today
pdf.MetaData.Creator = "IronPDF"
pdf.SaveAs("pdf-with-metadata.pdf")
Enhance PDF Standard, Accessibility, And Compliance
PDF 1.2 to PDF 1.7
IronPDF fully supports creating and editing PDFs in versions ranging from 1.2 to 1.7, ensuring compatibility with a variety of PDF readers and platforms.
Learn how to:PDF 1.2 to PDF 1.7using IronPdf;
// Instantiate Renderer
var renderer = new ChromePdfRenderer();
// Render simple HTML to PDF
var pdf = renderer.RenderHtmlAsPdf("<p> Hello World!</p>");
// Save as PDF file, IronPDF autmoatically output to the PDF 1.4 standard version
pdf.SaveAs("output.pdf");Imports IronPdf
' Instantiate Renderer
Dim renderer = New ChromePdfRenderer()
' Render simple HTML to PDF
Dim pdf = renderer.RenderHtmlAsPdf("<p> Hello World!</p>")
' Save as PDF file, IronPDF automatically output to the PDF 1.4 standard version
pdf.SaveAs("output.pdf")PDF/UA
Create and export PDFs that are compliant with PDF/UA standards to meet universal accessibility guidelines, enabling documents to be more accessible for users with disabilities.
Learn how to:comply with PDF/UA standardsusing IronPdf;
// Open PDF File
PdfDocument pdf = PdfDocument.FromFile("wikipedia.pdf");
// Export as PDF/UA compliance PDF
pdf.SaveAsPdfUA("pdf-ua-wikipedia.pdf");Imports IronPdf
' Open PDF File
Dim pdf As PdfDocument = PdfDocument.FromFile("wikipedia.pdf")
' Export as PDF/UA compliance PDF
pdf.SaveAsPdfUA("pdf-ua-wikipedia.pdf")PDF/A
Generate PDF/A-compliant documents that meet archiving standards, ensuring the longevity and integrity of your files for long-term preservation.
Iron Software is a member of the PDF Association.
using IronPdf;
// Create a PdfDocument object or open any PDF File
PdfDocument pdf = PdfDocument.FromFile("wikipedia.pdf");
// Use the SaveAsPdfA method to save to file
pdf.SaveAsPdfA("pdf-a3-wikipedia.pdf", PdfAVersions.PdfA3b);Imports IronPdf
' Create a PdfDocument object or open any PDF File
Dim pdf As PdfDocument = PdfDocument.FromFile("wikipedia.pdf")
' Use the SaveAsPdfA method to save to file
pdf.SaveAsPdfA("pdf-a3-wikipedia.pdf", PdfAVersions.PdfA3b)
Hassle-Free PDF Viewing and Printing
IronPdf Viewer
Embed PDF viewing capabilities directly into your MAUI applications, allowing users to view documents without leaving your app environment. This feature is perfect for creating interactive applications with integrated document management.
Learn how to:embed PDF viewingusing IronPdf.Viewer.Maui;
public class MainPage : ContentPage
{
private readonly IronPdfView pdfView;
public MainPage()
{
InitializeComponent();
this.pdfView = new IronPdfView { Options = IronPdfViewOptions.All };
Content = this.pdfView;
}
}Imports IronPdf.Viewer.Maui
Public Class MainPage
Inherits ContentPage
Private ReadOnly pdfView As IronPdfView
Public Sub New()
InitializeComponent()
Me.pdfView = New IronPdfView With {.Options = IronPdfViewOptions.All}
Content = Me.pdfView
End Sub
End ClassPrint to a Physical Printer
Send PDF documents to a physical printer directly from your application, ensuring easy and reliable printing of PDFs for physical distribution.
Learn how to:print to a printerusing IronPdf;
ChromePdfRenderer renderer = new ChromePdfRenderer();
PdfDocument pdf = renderer.RenderHtmlAsPdf("<h1>Test printing</h1>");
// Send the document to "Microsoft Print to PDF" printer
pdf.Print("Microsoft Print to PDF");Imports IronPdf
Dim renderer As New ChromePdfRenderer()
Dim pdf As PdfDocument = renderer.RenderHtmlAsPdf("<h1>Test printing</h1>")
' Send the document to "Microsoft Print to PDF" printer
pdf.Print("Microsoft Print to PDF")Ready to Get Started?
Nuget Downloads 21,039,986|Version:2026.9just released