From e410b0fe0d8c1da3e0b0e075b54f247b952389ef Mon Sep 17 00:00:00 2001 From: Jay Berkenbilt Date: Thu, 15 Feb 2018 20:45:19 -0500 Subject: Simplify TokenFilter interface Expose Pl_QPDFTokenizer, and have it do more of the work of managing the token filter's pipeline. --- examples/pdf-filter-tokens.cc | 6 ------ 1 file changed, 6 deletions(-) (limited to 'examples/pdf-filter-tokens.cc') diff --git a/examples/pdf-filter-tokens.cc b/examples/pdf-filter-tokens.cc index 809c160b..ec6fac12 100644 --- a/examples/pdf-filter-tokens.cc +++ b/examples/pdf-filter-tokens.cc @@ -184,12 +184,6 @@ ColorToGray::handleEOF() writeToken(this->all_stack.at(0)); this->all_stack.pop_front(); } - // Remember to call finish(). If you override handleEOF, it is - // essential that you call finish() or else you are likely to lose - // some data in buffers of downstream pipelines that are not - // flushed out. This is also mentioned in comments in - // QPDFObjectHandle.hh. - finish(); } int main(int argc, char* argv[]) -- cgit v1.2.3-54-g00ecf