Exemplo n.º 1
0
        /// <summary>
        /// Reads the first page of a document of which the top margin is 48pt heigh
        /// and highlights text lines and images.
        /// </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();

            S09_FindLines app = new S09_FindLines();
            PdfReader reader = new PdfReader(SRC);
            List<MyItem> items = app.GetContentItems(reader, 1, 48);
            items.Sort();
            List<MyItem> lines = app.GetLines(items);
            app.Highlight(lines, reader, 1, DEST);
        }
Exemplo n.º 2
0
        /// <summary>
        /// Reads the first page of a document of which the top margin is 48pt heigh
        /// and highlights text lines and images.
        /// </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();
            }

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

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

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