Exemple #1
0
        /// <summary>
        /// Generate the auto-documentation at the given output path.
        /// </summary>
        /// <param name="path">Path to which the file will be generated.</param>
        public void Generate(string path)
        {
            // This document instance will be used to write all of the input files'
            // documentation to a single document.
            Document   document = CreateDocument();
            PdfBuilder builder  = new PdfBuilder(document, options);

            foreach (string file in inputFiles)
            {
                string filePath = Path.GetDirectoryName(file);
                builder.ChangeOptions(new PdfOptions(filePath, options.CitationResolver));
                AppendToDocument(builder, file);
            }
            builder.WriteBibliography();

            string outFile = Path.Combine(path, OutputFileName);

            PdfWriter.Save(document, outFile);
        }