Exemplo n.º 1
0
        public static PDFSearchResultSet Search(PDFDocument pdf_document, int page, string terms, MatchDelegate match)
        {
            PDFSearchResultSet search_result_set = new PDFSearchResultSet();

            if (pdf_document.DocumentExists)
            {
                search_result_set[page] = SearchPage(pdf_document, page, terms, match);
            }

            return(search_result_set);
        }
Exemplo n.º 2
0
        public static PDFSearchResultSet Search(PDFDocument pdf_document, string terms)
        {
            PDFSearchResultSet search_result_set = new PDFSearchResultSet();

            if (pdf_document.DocumentExists)
            {
                for (int page = 1; page <= pdf_document.PageCount; ++page)
                {
                    search_result_set[page] = SearchPage(pdf_document, page, terms, PDFSearcher.MATCH_CONTAINS);
                }
            }

            return(search_result_set);
        }