IRONSOFTWAREHOME

How to Create Different PDF Versions in C#

Curtis Chau
Curtis Chau
Updated: August 2, 2026

IronPDF automatically manages PDF version selection based on document features, choosing versions from 1.4 to 1.7 to ensure compatibility while preserving functionality. This seamless process handles everything from simple HTML conversions (typically PDF 1.4) to complex document merging (PDF 1.7 standard). When working with PDF from HTML String conversions, IronPDF intelligently determines the appropriate version based on your content's requirements.

Quickstart: Create Different PDF Versions in C#
  1. 1Install IronPDF with NuGet Package Manager

    PM > Install-Package IronPdf

  2. 2Copy and run this code snippet.

    // Create a simple PDF using IronPDF - automatically selects version 1.4
    using IronPdf;
    
    var renderer = new ChromePdfRenderer();
    var pdf = renderer.RenderHtmlAsPdf("<h1>Hello World</h1>");
    pdf.SaveAs("hello-world.pdf");
    C#
  3. 3Deploy to test on your live environment

    Start using IronPDF in your project today with a free trial
    arrow pointer

How Do I Create a PDF Version 1.4 Document?

IronPDF supports all PDF versions from 1.2 to 1.7. When converting HTML to PDF, IronPDF automatically selects the lowest version offered by the Chromium engine, ranging from PDF 1.4 to PDF 1.6, to maximize compatibility. This behavior matches what you'll find when exporting different PDF versions in various applications.

Most conversions result in PDF 1.4. PDF 1.4 features transparency support, enabling modern graphic designs while maintaining broad compatibility. In this example, we'll convert an HTML string to PDF using IronPDF to demonstrate this behavior. This approach works seamlessly whether you're creating PDFs from HTML files, URLs, or ASPX pages.

What Code Do I Need to Generate PDF 1.4?

using 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 automatically outputs to the PDF 1.4 standard
pdf.SaveAs("output.pdf");

IronPDF's intelligent version selection shines here. For basic HTML content without advanced features, it defaults to PDF 1.4, ensuring your documents work across the widest range of PDF viewers and applications. This automatic selection eliminates manual version configuration in most scenarios.

What Does the PDF 1.4 Output Look Like?

PDF properties dialog showing IronPDF v2025.9.18 as producer and PDF version 1.4 (Acrobat 5.x)

As shown, IronPDF chose the lowest version from its range (PDF 1.4) to ensure compatibility. This version supports essential features like font embedding, encryption, and basic forms while maintaining excellent compatibility with older PDF readers.


How Do I Create a PDF Version 1.7 Document?

IronPDF automatically generates PDF 1.7 (the international standard) when merging documents to ensure maximum compatibility. Since source PDFs may use different versions and features, defaulting to the comprehensive 1.7 standard ensures all original elements are preserved without data loss. This is crucial when merging or splitting PDFs from various sources.

PDF version 1.7 became the ISO standard (ISO 32000-1:2008) and includes advanced features:

  • Enhanced security and encryption options
  • 3D content support
  • Advanced transparency blending modes
  • Improved accessibility features
  • Better Unicode support for international languages

What Code Do I Need for Merging PDFs to Version 1.7?

using IronPdf;

// Two paged PDF
const string html_a =
    @"<p> [PDF_A] </p>
    <p> [PDF_A] 1st Page </p>
    <div style = 'page-break-after: always;' ></div>
    <p> [PDF_A] 2nd Page</p>";

// Two paged PDF
const string html_b =
    @"<p> [PDF_B] </p>
    <p> [PDF_B] 1st Page </p>
    <div style = 'page-break-after: always;' ></div>
    <p> [PDF_B] 2nd Page</p>";

var renderer = new ChromePdfRenderer();

var pdfdoc_a = renderer.RenderHtmlAsPdf(html_a);
var pdfdoc_b = renderer.RenderHtmlAsPdf(html_b);

// Four paged PDF
var merged = PdfDocument.Merge(pdfdoc_a, pdfdoc_b);
merged.SaveAs("Merged.pdf");

This merging functionality is essential when combining documents from different sources or when you need to add, copy, or delete PDF pages. The resulting PDF 1.7 document ensures all features from both source documents are preserved.

Why Does IronPDF Use Version 1.7 for Merged Documents?

PDF properties showing IronPDF v2025.9.18 as producer and PDF version 1.7 (Acrobat 8.x compatibility)

IronPDF generated a 1.7 version PDF by merging the two PDFs. This ensures:

  1. Universal Compatibility: PDF 1.7 is supported by all modern PDF readers and browsers
  2. Feature Preservation: All advanced features from source documents are maintained
  3. Future-Proofing: As the ISO standard, PDF 1.7 ensures long-term document accessibility
  4. Enhanced Security: Support for advanced PDF permissions and passwords

My favorite library of this kind is IronPDF. It allows for fast and efficient manipulation of PDF files. It also has many valuable features, like exporting to PDF/A format and digitally signing PDF documents.

Milan Jovanovic

Microsoft MVP

View case study

IronOCR means we can save $40,000 annually from manual processing, while enhancing productivity and freeing up resources for high-impact tasks. I would highly recommend it.

Brent Matzelle

Chief Technology Officer, OPYN

View case study

The IronSuite play a crucial role in our operations. These are tools that increase efficiencies across the business including creating floor plans and improving inventory management.

David Jones

Lead Software Engineer, Agorus Build

View case study

Advanced PDF Version Considerations

When working with PDF versions in IronPDF, several factors influence automatic version selection:

Content Complexity

Simple HTML with basic text and images typically results in PDF 1.4, while documents containing JavaScript, forms, or multimedia content may trigger higher versions. When executing custom JavaScript in your PDFs, IronPDF may select a higher version to support these interactive features.

Feature Requirements

Certain features require specific PDF versions:

  • PDF 1.4: Basic transparency, font embedding
  • PDF 1.5: Layers, object streams
  • PDF 1.6: OpenType fonts, 3D annotations
  • PDF 1.7: Enhanced security, package/portfolio features

Compliance and Standards

For archival purposes, you might need specific versions. IronPDF supports creating PDF/A format documents for long-term preservation, which have their own version requirements based on the PDF/A level chosen.

Performance Optimization

Different PDF versions have varying file sizes and processing requirements. PDF 1.4 documents are generally smaller and process faster, making them ideal for high-volume applications. Learn more about PDF compression techniques to optimize your documents.

By understanding these version differences and letting IronPDF handle selection automatically, you ensure your PDFs maintain the perfect balance between compatibility, features, and performance for your specific use case.

Frequently Asked Questions

How does IronPDF manage PDF version selection?

IronPDF automatically selects PDF versions ranging from 1.4 to 1.7 based on document features to ensure compatibility while preserving functionality. This selection is intelligently made during the conversion process from HTML to PDF.

What version does IronPDF default to for simple HTML conversions?

For simple HTML conversions without advanced features, IronPDF typically defaults to PDF version 1.4. This ensures broad compatibility across different PDF viewers.

Why does IronPDF use PDF version 1.7 for merged documents?

IronPDF uses PDF version 1.7 when merging documents to ensure maximum compatibility. This version preserves all original elements and supports advanced features, making it ideal for documents from various sources.

What advanced features are supported in PDF version 1.7?

PDF version 1.7 supports enhanced security, 3D content, advanced transparency blending modes, improved accessibility features, and better Unicode support.

Can IronPDF create documents in PDF version 1.4?

Yes, IronPDF can create documents in PDF version 1.4. This version is often used for basic conversions and ensures compatibility with older PDF readers while supporting features like font embedding and encryption.

What influences the automatic PDF version selection in IronPDF?

Several factors influence IronPDF's automatic PDF version selection, including content complexity, feature requirements, compliance needs, and performance optimization. The tool chooses the version that best meets these criteria.

How does IronPDF ensure long-term document accessibility?

IronPDF ensures long-term document accessibility by generating ISO standard PDF version 1.7 documents. This guarantees that PDFs are universally compatible and future-proof.

Is it necessary to manually configure PDF versions with IronPDF?

No, it is not necessary to manually configure PDF versions with IronPDF. The tool automatically selects the optimal version based on document content and feature requirements.

What is the benefit of using PDF version 1.4 in IronPDF?

PDF version 1.4 is beneficial because it supports essential features like basic transparency and font embedding while maintaining excellent compatibility and faster processing, making it suitable for high-volume applications.

How does IronPDF handle documents with JavaScript or multimedia content?

Documents with JavaScript or multimedia content may trigger IronPDF to select a higher PDF version to support these interactive features, ensuring optimal functionality and compatibility.

Curtis Chau
Technical Writer

Curtis Chau holds a Bachelor’s degree in Computer Science (Carleton University) and specializes in front-end development with expertise in Node.js, TypeScript, JavaScript, and React. Passionate about crafting intuitive and aesthetically pleasing user interfaces, Curtis enjoys working with modern frameworks and creating well-structured, visually appealing manuals.

...
Read More

Ready to Get Started?

Nuget Downloads 20,878,335Version:2026.9just released

Get your free 30-day Trial Key instantly.
No credit card or account creation required
C# NuGet Library for PDF
Install with NuGet

Version: 2026.9

PM > Install-Package IronPdf
nuget.org/packages/IronPdf/
  1. In Solution Explorer, right-click References, Manage NuGet Packages
  2. Select Browse and search "IronPdf"
  3. Select the package and install
C# PDF DLL
Download DLL

Version: 2026.9

or download Windows Installer here.

  1. Download and unzip IronPDF to a location such as ~/Libs within your Solution directory
  2. In Visual Studio Solution Explorer, right click References. Select Browse, "IronPdf.dll"

Licenses from $999

Key in blue circle

Get your free 30-day Trial Key instantly.

Your trial license will be sent to your email address

No limitations. 100% unlocked. No credit card.

bullet_checkedNo credit card or account creation requiredNo limitations. 100% unlocked. No credit card.
  • Logo Aetna
  • Logo NASA
  • Logo GE
  • Logo Porsche
  • Logo USDA
  • Logo Qatar
Join Millions of Engineers who’ve tried IronPDF
Book your free Live Demo
Booking Badge

Trusted by Millions of Engineers Worldwide

Iron Software's customer logos
Get Your No-Obligation Consult
Complete the form below or email sales@ironsoftware.com
Your details will always be kept confidential.
Trusted by Millions of Engineers Worldwide
Iron Software's customer logos
Get your free 30-day Trial Key instantly.
No credit card or account creation required