diff options
author | Akira Kakuto <kakuto@fuk.kindai.ac.jp> | 2019-09-29 10:00:12 +0000 |
---|---|---|
committer | Akira Kakuto <kakuto@fuk.kindai.ac.jp> | 2019-09-29 10:00:12 +0000 |
commit | 268dff1b06a01bd6be5f1ae08216c0beff08336c (patch) | |
tree | c8f90365823a9711e674704157dff65babb709b9 /Build/source/libs/xpdf/xpdf-src/xpdf/HTMLGen.h | |
parent | ee6ffc65c0eb84ded1fc7d19eeb90a87541f896d (diff) |
xpdf 4.02
git-svn-id: svn://tug.org/texlive/trunk@52203 c570f23f-e606-0410-a88d-b1316a301751
Diffstat (limited to 'Build/source/libs/xpdf/xpdf-src/xpdf/HTMLGen.h')
-rw-r--r-- | Build/source/libs/xpdf/xpdf-src/xpdf/HTMLGen.h | 19 |
1 files changed, 16 insertions, 3 deletions
diff --git a/Build/source/libs/xpdf/xpdf-src/xpdf/HTMLGen.h b/Build/source/libs/xpdf/xpdf-src/xpdf/HTMLGen.h index e870d8ef842..d09eea3f266 100644 --- a/Build/source/libs/xpdf/xpdf-src/xpdf/HTMLGen.h +++ b/Build/source/libs/xpdf/xpdf-src/xpdf/HTMLGen.h @@ -20,6 +20,7 @@ class PDFDoc; class TextOutputDev; class TextFontInfo; class SplashOutputDev; +class HTMLGenFontDefn; //------------------------------------------------------------------------ @@ -46,8 +47,11 @@ public: void setAllTextInvisible(GBool allTextInvisibleA) { allTextInvisible = allTextInvisibleA; } + void setExtractFontFiles(GBool extractFontFilesA) + { extractFontFiles = extractFontFilesA; } + void startDoc(PDFDoc *docA); - int convertPage(int pg, const char *pngURL, + int convertPage(int pg, const char *pngURL, const char *htmlDir, int (*writeHTML)(void *stream, const char *data, int size), void *htmlStream, int (*writePNG)(void *stream, const char *data, int size), @@ -61,20 +65,29 @@ private: int primaryDir, int spanDir, double base, GBool dropCapLine, GString *s); void appendUTF8(Unicode u, GString *s); - GString *getFontDefn(TextFontInfo *font, double *scale); + HTMLGenFontDefn *getFontDefn(TextFontInfo *font, const char *htmlDir); + HTMLGenFontDefn *getFontFile(TextFontInfo *font, const char *htmlDir); + HTMLGenFontDefn *getSubstituteFont(TextFontInfo *font); + void getFontDetails(TextFontInfo *font, const char **family, + const char **weight, const char **style, + double *scale); double backgroundResolution; double zoom; GBool drawInvisibleText; GBool allTextInvisible; + GBool extractFontFiles; PDFDoc *doc; TextOutputDev *textOut; SplashOutputDev *splashOut; - GList *fonts; + GList *fonts; // [TextFontInfo] double *fontScales; + GList *fontDefns; // [HTMLGenFontDefn] + int nextFontFaceIdx; + GBool ok; }; |