/// <summary>
        /// Reads the first page of a document of which the top margin is 48pt heigh
        /// and highlights structures.
        /// </summary>
        /// <param name="args">No arguments needed</param>
        public static void Main(string[] args)
        {
            DirectoryInfo dir = new FileInfo(DEST).Directory;
            if (dir != null)
                dir.Create();

            S10_FindStructure app = new S10_FindStructure();
            PdfReader reader = new PdfReader(SRC);
            List<MyItem> items = app.GetContentItems(reader, 1, 48);
            items.Sort();
            List<MyItem> lines = app.GetLines(items);
            List<MyItem> structures = app.GetStructures(lines);
            app.Highlight(structures, reader, 1, DEST);
        }
예제 #2
0
        /// <summary>
        /// Reads the first page of a document of which the top margin is 48pt heigh
        /// and highlights structures.
        /// </summary>
        /// <param name="args">No arguments needed</param>
        public static void Main(string[] args)
        {
            DirectoryInfo dir = new FileInfo(DEST).Directory;

            if (dir != null)
            {
                dir.Create();
            }

            S10_FindStructure app    = new S10_FindStructure();
            PdfReader         reader = new PdfReader(SRC);
            List <MyItem>     items  = app.GetContentItems(reader, 1, 48);

            items.Sort();
            List <MyItem> lines      = app.GetLines(items);
            List <MyItem> structures = app.GetStructures(lines);

            app.Highlight(structures, reader, 1, DEST);
        }