2
1
mirror of https://github.com/qpdf/qpdf.git synced 2024-06-05 11:50:53 +00:00
qpdf/libqpdf/qpdf/ContentNormalizer.hh

Ignoring revisions in .git-blame-ignore-revs. Click here to bypass and see the normal blame view.

22 lines
467 B
C++
Raw Permalink Normal View History

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