Bahasa Indonesia Français Tiếng Việt فارسی Deutsch Italiano Türkçe ภาษาไทย English Polski Русский 日本語 Español Português (Brasil) العربية

Merge PNG Images into PDF Document in C#

Wordize for .NET is a professional solution for automating PNG image merging into structured PDF documents within enterprise document workflows. The Merger class enables C# developers to programmatically embed PNG files into PDF documents for product catalog and documentation creation.

Use Cases:
  • Combine PNG product photographs into PDF catalogs for printing and digital distribution
  • Embed graphic diagrams, charts, and PNG screenshots into PDF user manuals and technical reports
  • Merge PNG images into PDF presentations for business meetings and marketing campaigns
  • Embed PNG graphs, charts, and analytical images into PDF reports

Test the capabilities of programmatic merging of multiple PNG into PDF format using the interactive online demo presented on this page. Upload multiple PNG files, configure image merge parameters, execute the operation, and download the consolidated PDF document for review. The provided C# code snippet is fully ready for use in your .NET project.

Run code
Upload the first document
Upload other documents
  • DOCX
  • PDF
  • MD
  • HTML
  • TXT
  • DOC
  • DOT
  • DOCM
  • DOTX
  • DOTM
  • RTF
  • EPUB
  • PS
  • PCL
  • MHTML
  • XHTML
  • ODT
  • OTT
  • XPS
  • MOBI
  • XLSX
Select output format from the list
using Wordize.Merging;

Merger.Create()
        .From("Input1.png")
        .From("Input2.png")
        .To("Output.pdf", SaveFormat.Pdf)
        .Execute();
using Wordize.Merging; Merger.Merge("{{output}}", [ "{{input1}}", "{{input2}}" ]); using Wordize.Merging; using Wordize.Saving; var imageStreams = Merger.MergeToImages( ["{{input1}}", "{{input2}}"], new ImageSaveOptions(SaveFormat.{{saveFormat}}) { PageLayout = MultiPageLayout.Vertical(10) }, MergeFormatMode.KeepSourceFormatting ); using var file = File.Create($"{{output}}"); imageStreams[0].Position = 0; imageStreams[0].CopyTo(file); using Wordize.Merging; using Wordize.Saving; ImageSaveOptions saveOptions = new ImageSaveOptions(SaveFormat.{{saveFormat}}); saveOptions.PageLayout = MultiPageLayout.Vertical(10); Merger.Create() .From("{{input1}}") .From("{{input2}}") .To("{{output}}", saveOptions) .Execute(); using Wordize.Merging; Merger.Create() .From("{{input1}}") .From("{{input2}}") .To("{{output}}", SaveFormat.{{saveFormat}}) .Execute();
Run code

How to merge multiple PNG into one PDF in C#

  1. 1
    Connect Wordize for .NET to programming project

    Connect Wordize SDK to your .NET project

  2. 2
    Programmatically merge PNG into PDF in C#

    Call the Merge() method, specifying the output PDF file name and collection of input PNG files in parameters

  3. 3
    Get PNG file merge result

    Get the merged PDF file

5%