bsserikbay_JpegToWord/JpegToWord/DocCreator.cs
using Spire.Doc;
using System;

namespace JpegToWord
{
    internal class DocCreator
    {
        public void MergeImagesIntoDoc(string[] images, string output, string filename, string header = null,
            string spacing = null, string run = null)
        {
            Document doc = new Document();

            ImageMerger.MergeImagesIntoDoc(images, doc, header, spacing);

            DocSaver.SaveDoc(doc, output, filename);

            Console.WriteLine($"Document was saved to {output}\nfilename: {filename}");

            if (string.IsNullOrEmpty(run))
            {
                return;
            }

            DocStarter.StartDocument(output, filename);
        }
    }
}