diff options
author | Akira Kakuto <kakuto@fuk.kindai.ac.jp> | 2024-02-10 06:55:23 +0000 |
---|---|---|
committer | Akira Kakuto <kakuto@fuk.kindai.ac.jp> | 2024-02-10 06:55:23 +0000 |
commit | 0357cc55904fda095727bb30f07b68dbf3439f8e (patch) | |
tree | 4dfe670d69c9d538606e6d49fe29b506c05e5975 /Build/source/libs/xpdf/xpdf-src/xpdf/HTMLGen.h | |
parent | 28c5129fe7864e1005edc90cf737372ba1bc78c7 (diff) |
xpdf 4.05
git-svn-id: svn://tug.org/texlive/trunk@69765 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 | 24 |
1 files changed, 20 insertions, 4 deletions
diff --git a/Build/source/libs/xpdf/xpdf-src/xpdf/HTMLGen.h b/Build/source/libs/xpdf/xpdf-src/xpdf/HTMLGen.h index 66ee2d27406..47e361f78fa 100644 --- a/Build/source/libs/xpdf/xpdf-src/xpdf/HTMLGen.h +++ b/Build/source/libs/xpdf/xpdf-src/xpdf/HTMLGen.h @@ -11,10 +11,6 @@ #include <aconf.h> -#ifdef USE_GCC_PRAGMAS -#pragma interface -#endif - class GString; class PDFDoc; class TextOutputDev; @@ -61,6 +57,9 @@ public: void setEmbedFonts(GBool embedFontsA) { embedFonts = embedFontsA; } + void setIncludeMetadata(GBool includeMetadataA) + { includeMetadata = includeMetadataA; } + void startDoc(PDFDoc *docA); int convertPage(int pg, const char *pngURL, const char *htmlDir, int (*writeHTML)(void *stream, const char *data, int size), @@ -68,6 +67,11 @@ public: int (*writePNG)(void *stream, const char *data, int size), void *pngStream); + // Get the counter values. + int getNumVisibleChars() { return nVisibleChars; } + int getNumInvisibleChars() { return nInvisibleChars; } + int getNumRemovedDupChars() { return nRemovedDupChars; } + private: int findDirSpan(GList *words, int firstWordIdx, int primaryDir, @@ -82,6 +86,13 @@ private: void getFontDetails(TextFontInfo *font, const char **family, const char **weight, const char **style, double *scale); + void genDocMetadata(int (*writeHTML)(void *stream, + const char *data, int size), + void *htmlStream); + void genDocMetadataItem(int (*writeHTML)(void *stream, + const char *data, int size), + void *htmlStream, + Dict *infoDict, const char *key); double backgroundResolution; double zoom; @@ -92,6 +103,7 @@ private: GBool convertFormFields; GBool embedBackgroundImage; GBool embedFonts; + GBool includeMetadata; PDFDoc *doc; TextOutputDev *textOut; @@ -107,6 +119,10 @@ private: GList *formFieldInfo; // [HTMLGenFormFieldInfo] int nextFieldID; + int nVisibleChars; // number of visible chars on the page + int nInvisibleChars; // number of invisible chars on the page + int nRemovedDupChars; // number of duplicate chars removed + GBool ok; }; |