1
0
mirror of https://github.com/pdf2htmlEX/pdf2htmlEX.git synced 2024-09-20 06:00:06 +00:00
pdf2htmlEX/src/include/FontPreprocessor.h

46 lines
980 B
C
Raw Normal View History

2012-09-07 07:03:03 +00:00
/*
* FontPreprocessor.h
*
* Check used codes for each font
*
* by WangLu
* 2012.09.07
*/
#ifndef FONTPREPROCESSOR_H__
#define FONTPREPROCESSOR_H__
#include <unordered_map>
#include <OutputDev.h>
namespace pdf2htmlEX {
2012-09-07 07:03:03 +00:00
class FontPreprocessor : public OutputDev {
public:
FontPreprocessor(void);
virtual ~FontPreprocessor(void);
virtual GBool upsideDown() { return gFalse; }
virtual GBool useDrawChar() { return gTrue; }
virtual GBool interpretType3Chars() { return gFalse; }
virtual GBool needNonText() { return gFalse; }
virtual void drawChar(GfxState *state, double x, double y,
double dx, double dy,
double originX, double originY,
CharCode code, int nBytes, Unicode *u, int uLen);
const char * get_code_map (long long font_id) const;
protected:
long long cur_font_id;
char * cur_code_map;
std::unordered_map<long long, char*> code_maps;
};
} // namespace pdf2htmlEX
2012-09-07 07:03:03 +00:00
#endif //FONTPREPROCESSOR_H__