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