/// <summary>
        /// In multipage release mode, this method will be called for every document in the batch.
        /// This script will simply pass documents to the selected document output converter to produce
        /// the expected output files in the released batch folder.
        /// </summary>
        public void Release(IDocument doc)
        {
            CheckImageCountCreateFolder();

            string outputFileName = Path.Combine(m_DocFolder, m_FileCount.ToString().PadLeft(8, '0'));

            m_DocConverter.Convert(doc, Path.ChangeExtension(outputFileName, m_DocConverter.DefaultExtension));

            m_FilenameReleaseData.Add("Filename" + m_FileCount, Path.ChangeExtension(outputFileName, m_DocConverter.DefaultExtension));
            m_FileCount++;

            index.CreateIndex(doc, m_FilenameReleaseData, Path.Combine(m_BatchFolder, m_IndexFileName));

            m_FilenameReleaseData.Clear();
        }
        /// <summary>
        /// In multipage release mode, this method will be called for every document in the batch.
        /// This script will simply pass documents to the selected document output converter to produce
        /// the expected output files in the released batch folder.
        /// </summary>
        public void Release(IDocument doc)
        {
            string outputFileName = Path.Combine(m_BatchFolder, doc.Number.ToString());

            m_DocConverter.Convert(doc, Path.ChangeExtension(outputFileName, m_DocConverter.DefaultExtension));
        }