Beispiel #1
0
        public Merger(string[] inputPaths, string outputDirectory, PageMergeOptions pageOptions)
        {
            m_ProgressInfo = 0;

            if (inputPaths.Length == 0)
            {
                throw new System.Exception("No input DTBs");
            }

            for (int i = 0; i < inputPaths.Length; i++)
            {
                if (!File.Exists(inputPaths[i]))
                {
                    throw new System.IO.FileNotFoundException(inputPaths[i] + " do not exists");
                }
            }
            m_InputPaths = inputPaths;

            if (Directory.Exists(outputDirectory))
            {
                Directory.Delete(outputDirectory, true);
            }
            Directory.CreateDirectory(outputDirectory);
            m_OutputDirectory = outputDirectory;

            m_PageMergeOptions = pageOptions;
        }
Beispiel #2
0
        public Integrator(List <string> pathsList, PageMergeOptions pageOption)
        {
            m_DTBFilesInfoList = new List <DTBFilesInfo> ();

            for (int i = 0; i < pathsList.Count; i++)
            {
                m_DTBFilesInfoList.Add(new DTBFilesInfo(pathsList[i]));
            }
            m_PageMergeOptions = pageOption;
        }