Merge Multiple Images
Merge multiple images into one to save the result in PDF or image format using Wordize. Merge JPG images into one.
If it is required to merge multiple images, you can use the Wordize Merge for .NET module.
Merge Multiple Images Before Saving to PDF
If you need to combine multiple images and save each image as a separate page in PDF, use the following code example:
Merger.Merge("DocumentOut.pdf", new string[] { "MultiFrameIn.tiff", "DocumentIn.png" });
You can also merge multiple images using Fluent API:
Merger.Create()
.From("MultiFrameIn.tiff")
.From("DocumentIn.png")
.To("DocumentOut.pdf")
.Execute();
Merge Multiple Images Into One
You can also merge multiple images into one by arranging them:
- vertically
- horizontally
- or in a grid.
The following code example shows how to combine multiple images into a single image, placing each image or frame in a grid layout:
ImageSaveOptions opt = new ImageSaveOptions(SaveFormat.Png);
opt.PageLayout = MultiPageLayout.Grid(2, 10, 10);
opt.PageLayout.BorderColor = Color.Black;
opt.PageLayout.BorderWidth = 1;
Merger.Create()
.From("MultiFrameIn.tiff")
.From("DocumentIn.png")
.To("DocumentOut.png", opt)
.Execute();