/// <summary> /// Reads the first page of a document 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(); S07_FindItemsSimple app = new S07_FindItemsSimple(); 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 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(); } S07_FindItemsSimple app = new S07_FindItemsSimple(); PdfReader reader = new PdfReader(SRC); List <MyItem> items = app.GetContentItems(reader, 1, 48); app.Highlight(items, reader, 1, DEST); }