2
1
mirror of https://github.com/qpdf/qpdf.git synced 2024-11-11 15:40:58 +00:00
qpdf/libqpdf/qpdf/ContentNormalizer.hh
2022-04-16 11:39:14 -04:00

22 lines
465 B
C++

#ifndef CONTENTNORMALIZER_HH
#define CONTENTNORMALIZER_HH
#include <qpdf/QPDFObjectHandle.hh>
class ContentNormalizer: public QPDFObjectHandle::TokenFilter
{
public:
ContentNormalizer();
virtual ~ContentNormalizer() = default;
virtual void handleToken(QPDFTokenizer::Token const&);
bool anyBadTokens() const;
bool lastTokenWasBad() const;
private:
bool any_bad_tokens;
bool last_token_was_bad;
};
#endif // CONTENTNORMALIZER_HH