pdf2json 0.1.0
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- data/README.markdown +9 -0
- data/bin/.gitkeep +0 -0
- data/ext/extconf.rb +30 -0
- data/lib/pdf2json.rb +8 -0
- data/pdf2json-0.52-source/AUTHORS +24 -0
- data/pdf2json-0.52-source/CHANGES +11 -0
- data/pdf2json-0.52-source/Makefile +84 -0
- data/pdf2json-0.52-source/Makefile.in +84 -0
- data/pdf2json-0.52-source/aclocal.m4 +274 -0
- data/pdf2json-0.52-source/aconf-win32.h +86 -0
- data/pdf2json-0.52-source/aconf.h +42 -0
- data/pdf2json-0.52-source/aconf.h.in +41 -0
- data/pdf2json-0.52-source/autom4te.cache/output.0 +6908 -0
- data/pdf2json-0.52-source/autom4te.cache/requests +76 -0
- data/pdf2json-0.52-source/autom4te.cache/traces.0 +466 -0
- data/pdf2json-0.52-source/config.log +1259 -0
- data/pdf2json-0.52-source/config.status +1050 -0
- data/pdf2json-0.52-source/configure +6908 -0
- data/pdf2json-0.52-source/configure.ac +93 -0
- data/pdf2json-0.52-source/doc/pdffonts.1 +130 -0
- data/pdf2json-0.52-source/doc/pdffonts.cat +107 -0
- data/pdf2json-0.52-source/doc/pdffonts.hlp +117 -0
- data/pdf2json-0.52-source/doc/pdfimages.1 +102 -0
- data/pdf2json-0.52-source/doc/pdfimages.cat +92 -0
- data/pdf2json-0.52-source/doc/pdfimages.hlp +101 -0
- data/pdf2json-0.52-source/doc/pdfinfo.1 +158 -0
- data/pdf2json-0.52-source/doc/pdfinfo.cat +119 -0
- data/pdf2json-0.52-source/doc/pdfinfo.hlp +129 -0
- data/pdf2json-0.52-source/doc/pdftoppm.1 +115 -0
- data/pdf2json-0.52-source/doc/pdftoppm.cat +105 -0
- data/pdf2json-0.52-source/doc/pdftoppm.hlp +114 -0
- data/pdf2json-0.52-source/doc/pdftops.1 +229 -0
- data/pdf2json-0.52-source/doc/pdftops.cat +221 -0
- data/pdf2json-0.52-source/doc/pdftops.hlp +231 -0
- data/pdf2json-0.52-source/doc/pdftotext.1 +137 -0
- data/pdf2json-0.52-source/doc/pdftotext.cat +120 -0
- data/pdf2json-0.52-source/doc/pdftotext.hlp +133 -0
- data/pdf2json-0.52-source/doc/sample-xpdfrc +91 -0
- data/pdf2json-0.52-source/doc/xpdf.1 +513 -0
- data/pdf2json-0.52-source/doc/xpdf.cat +476 -0
- data/pdf2json-0.52-source/doc/xpdf.hlp +489 -0
- data/pdf2json-0.52-source/doc/xpdfrc.5 +480 -0
- data/pdf2json-0.52-source/doc/xpdfrc.cat +474 -0
- data/pdf2json-0.52-source/doc/xpdfrc.hlp +479 -0
- data/pdf2json-0.52-source/fofi/.DS_Store +0 -0
- data/pdf2json-0.52-source/fofi/FoFiBase.cc +156 -0
- data/pdf2json-0.52-source/fofi/FoFiBase.h +57 -0
- data/pdf2json-0.52-source/fofi/FoFiBase.o +0 -0
- data/pdf2json-0.52-source/fofi/FoFiEncodings.cc +994 -0
- data/pdf2json-0.52-source/fofi/FoFiEncodings.h +36 -0
- data/pdf2json-0.52-source/fofi/FoFiEncodings.o +0 -0
- data/pdf2json-0.52-source/fofi/FoFiTrueType.cc +2027 -0
- data/pdf2json-0.52-source/fofi/FoFiTrueType.h +174 -0
- data/pdf2json-0.52-source/fofi/FoFiTrueType.o +0 -0
- data/pdf2json-0.52-source/fofi/FoFiType1.cc +252 -0
- data/pdf2json-0.52-source/fofi/FoFiType1.h +59 -0
- data/pdf2json-0.52-source/fofi/FoFiType1.o +0 -0
- data/pdf2json-0.52-source/fofi/FoFiType1C.cc +2603 -0
- data/pdf2json-0.52-source/fofi/FoFiType1C.h +233 -0
- data/pdf2json-0.52-source/fofi/FoFiType1C.o +0 -0
- data/pdf2json-0.52-source/fofi/Makefile +70 -0
- data/pdf2json-0.52-source/fofi/Makefile.dep +0 -0
- data/pdf2json-0.52-source/fofi/Makefile.in +70 -0
- data/pdf2json-0.52-source/fofi/libfofi.a +0 -0
- data/pdf2json-0.52-source/fofi/vms_make.com +0 -0
- data/pdf2json-0.52-source/freetype.win32/.DS_Store +0 -0
- data/pdf2json-0.52-source/freetype.win32/include/.DS_Store +0 -0
- data/pdf2json-0.52-source/freetype.win32/include/freetype/config/ftconfig.h +528 -0
- data/pdf2json-0.52-source/freetype.win32/include/freetype/config/ftheader.h +780 -0
- data/pdf2json-0.52-source/freetype.win32/include/freetype/config/ftmodule.h +32 -0
- data/pdf2json-0.52-source/freetype.win32/include/freetype/config/ftoption.h +733 -0
- data/pdf2json-0.52-source/freetype.win32/include/freetype/config/ftstdlib.h +173 -0
- data/pdf2json-0.52-source/freetype.win32/include/freetype/freetype.h +3919 -0
- data/pdf2json-0.52-source/freetype.win32/include/freetype/ftadvanc.h +179 -0
- data/pdf2json-0.52-source/freetype.win32/include/freetype/ftbbox.h +94 -0
- data/pdf2json-0.52-source/freetype.win32/include/freetype/ftbdf.h +209 -0
- data/pdf2json-0.52-source/freetype.win32/include/freetype/ftbitmap.h +227 -0
- data/pdf2json-0.52-source/freetype.win32/include/freetype/ftcache.h +1128 -0
- data/pdf2json-0.52-source/freetype.win32/include/freetype/ftchapters.h +103 -0
- data/pdf2json-0.52-source/freetype.win32/include/freetype/ftcid.h +166 -0
- data/pdf2json-0.52-source/freetype.win32/include/freetype/fterrdef.h +244 -0
- data/pdf2json-0.52-source/freetype.win32/include/freetype/fterrors.h +206 -0
- data/pdf2json-0.52-source/freetype.win32/include/freetype/ftgasp.h +120 -0
- data/pdf2json-0.52-source/freetype.win32/include/freetype/ftglyph.h +613 -0
- data/pdf2json-0.52-source/freetype.win32/include/freetype/ftgxval.h +358 -0
- data/pdf2json-0.52-source/freetype.win32/include/freetype/ftgzip.h +102 -0
- data/pdf2json-0.52-source/freetype.win32/include/freetype/ftimage.h +1313 -0
- data/pdf2json-0.52-source/freetype.win32/include/freetype/ftincrem.h +353 -0
- data/pdf2json-0.52-source/freetype.win32/include/freetype/ftlcdfil.h +213 -0
- data/pdf2json-0.52-source/freetype.win32/include/freetype/ftlist.h +277 -0
- data/pdf2json-0.52-source/freetype.win32/include/freetype/ftlzw.h +99 -0
- data/pdf2json-0.52-source/freetype.win32/include/freetype/ftmac.h +274 -0
- data/pdf2json-0.52-source/freetype.win32/include/freetype/ftmm.h +378 -0
- data/pdf2json-0.52-source/freetype.win32/include/freetype/ftmodapi.h +483 -0
- data/pdf2json-0.52-source/freetype.win32/include/freetype/ftmoderr.h +155 -0
- data/pdf2json-0.52-source/freetype.win32/include/freetype/ftotval.h +203 -0
- data/pdf2json-0.52-source/freetype.win32/include/freetype/ftoutln.h +537 -0
- data/pdf2json-0.52-source/freetype.win32/include/freetype/ftpfr.h +172 -0
- data/pdf2json-0.52-source/freetype.win32/include/freetype/ftrender.h +230 -0
- data/pdf2json-0.52-source/freetype.win32/include/freetype/ftsizes.h +159 -0
- data/pdf2json-0.52-source/freetype.win32/include/freetype/ftsnames.h +200 -0
- data/pdf2json-0.52-source/freetype.win32/include/freetype/ftstroke.h +716 -0
- data/pdf2json-0.52-source/freetype.win32/include/freetype/ftsynth.h +80 -0
- data/pdf2json-0.52-source/freetype.win32/include/freetype/ftsystem.h +347 -0
- data/pdf2json-0.52-source/freetype.win32/include/freetype/fttrigon.h +350 -0
- data/pdf2json-0.52-source/freetype.win32/include/freetype/fttypes.h +588 -0
- data/pdf2json-0.52-source/freetype.win32/include/freetype/ftwinfnt.h +274 -0
- data/pdf2json-0.52-source/freetype.win32/include/freetype/ftxf86.h +83 -0
- data/pdf2json-0.52-source/freetype.win32/include/freetype/internal/autohint.h +231 -0
- data/pdf2json-0.52-source/freetype.win32/include/freetype/internal/ftcalc.h +179 -0
- data/pdf2json-0.52-source/freetype.win32/include/freetype/internal/ftdebug.h +250 -0
- data/pdf2json-0.52-source/freetype.win32/include/freetype/internal/ftdriver.h +422 -0
- data/pdf2json-0.52-source/freetype.win32/include/freetype/internal/ftgloadr.h +168 -0
- data/pdf2json-0.52-source/freetype.win32/include/freetype/internal/ftmemory.h +380 -0
- data/pdf2json-0.52-source/freetype.win32/include/freetype/internal/ftobjs.h +1428 -0
- data/pdf2json-0.52-source/freetype.win32/include/freetype/internal/ftpic.h +67 -0
- data/pdf2json-0.52-source/freetype.win32/include/freetype/internal/ftrfork.h +196 -0
- data/pdf2json-0.52-source/freetype.win32/include/freetype/internal/ftserv.h +620 -0
- data/pdf2json-0.52-source/freetype.win32/include/freetype/internal/ftstream.h +539 -0
- data/pdf2json-0.52-source/freetype.win32/include/freetype/internal/fttrace.h +139 -0
- data/pdf2json-0.52-source/freetype.win32/include/freetype/internal/ftvalid.h +150 -0
- data/pdf2json-0.52-source/freetype.win32/include/freetype/internal/internal.h +51 -0
- data/pdf2json-0.52-source/freetype.win32/include/freetype/internal/pcftypes.h +56 -0
- data/pdf2json-0.52-source/freetype.win32/include/freetype/internal/psaux.h +873 -0
- data/pdf2json-0.52-source/freetype.win32/include/freetype/internal/pshints.h +712 -0
- data/pdf2json-0.52-source/freetype.win32/include/freetype/internal/services/svbdf.h +77 -0
- data/pdf2json-0.52-source/freetype.win32/include/freetype/internal/services/svcid.h +83 -0
- data/pdf2json-0.52-source/freetype.win32/include/freetype/internal/services/svgldict.h +82 -0
- data/pdf2json-0.52-source/freetype.win32/include/freetype/internal/services/svgxval.h +72 -0
- data/pdf2json-0.52-source/freetype.win32/include/freetype/internal/services/svkern.h +51 -0
- data/pdf2json-0.52-source/freetype.win32/include/freetype/internal/services/svmm.h +104 -0
- data/pdf2json-0.52-source/freetype.win32/include/freetype/internal/services/svotval.h +55 -0
- data/pdf2json-0.52-source/freetype.win32/include/freetype/internal/services/svpfr.h +66 -0
- data/pdf2json-0.52-source/freetype.win32/include/freetype/internal/services/svpostnm.h +79 -0
- data/pdf2json-0.52-source/freetype.win32/include/freetype/internal/services/svpscmap.h +164 -0
- data/pdf2json-0.52-source/freetype.win32/include/freetype/internal/services/svpsinfo.h +92 -0
- data/pdf2json-0.52-source/freetype.win32/include/freetype/internal/services/svsfnt.h +102 -0
- data/pdf2json-0.52-source/freetype.win32/include/freetype/internal/services/svttcmap.h +106 -0
- data/pdf2json-0.52-source/freetype.win32/include/freetype/internal/services/svtteng.h +53 -0
- data/pdf2json-0.52-source/freetype.win32/include/freetype/internal/services/svttglyf.h +67 -0
- data/pdf2json-0.52-source/freetype.win32/include/freetype/internal/services/svwinfnt.h +50 -0
- data/pdf2json-0.52-source/freetype.win32/include/freetype/internal/services/svxf86nm.h +55 -0
- data/pdf2json-0.52-source/freetype.win32/include/freetype/internal/sfnt.h +897 -0
- data/pdf2json-0.52-source/freetype.win32/include/freetype/internal/t1types.h +270 -0
- data/pdf2json-0.52-source/freetype.win32/include/freetype/internal/tttypes.h +1543 -0
- data/pdf2json-0.52-source/freetype.win32/include/freetype/t1tables.h +504 -0
- data/pdf2json-0.52-source/freetype.win32/include/freetype/ttnameid.h +1247 -0
- data/pdf2json-0.52-source/freetype.win32/include/freetype/tttables.h +759 -0
- data/pdf2json-0.52-source/freetype.win32/include/freetype/tttags.h +107 -0
- data/pdf2json-0.52-source/freetype.win32/include/freetype/ttunpat.h +59 -0
- data/pdf2json-0.52-source/freetype.win32/include/ft2build.h +39 -0
- data/pdf2json-0.52-source/freetype.win32/lib/freetype_a.lib +0 -0
- data/pdf2json-0.52-source/goo/.DS_Store +0 -0
- data/pdf2json-0.52-source/goo/FixedPoint.cc +118 -0
- data/pdf2json-0.52-source/goo/FixedPoint.h +155 -0
- data/pdf2json-0.52-source/goo/FixedPoint.o +0 -0
- data/pdf2json-0.52-source/goo/GHash.cc +380 -0
- data/pdf2json-0.52-source/goo/GHash.h +78 -0
- data/pdf2json-0.52-source/goo/GHash.o +0 -0
- data/pdf2json-0.52-source/goo/GList.cc +97 -0
- data/pdf2json-0.52-source/goo/GList.h +96 -0
- data/pdf2json-0.52-source/goo/GList.o +0 -0
- data/pdf2json-0.52-source/goo/GMutex.h +49 -0
- data/pdf2json-0.52-source/goo/GString.cc +724 -0
- data/pdf2json-0.52-source/goo/GString.cc.fixed +718 -0
- data/pdf2json-0.52-source/goo/GString.h +136 -0
- data/pdf2json-0.52-source/goo/GString.o +0 -0
- data/pdf2json-0.52-source/goo/ImgWriter.o +0 -0
- data/pdf2json-0.52-source/goo/JpegWriter.o +0 -0
- data/pdf2json-0.52-source/goo/Makefile +72 -0
- data/pdf2json-0.52-source/goo/Makefile.dep +0 -0
- data/pdf2json-0.52-source/goo/Makefile.in +72 -0
- data/pdf2json-0.52-source/goo/PNGWriter.o +0 -0
- data/pdf2json-0.52-source/goo/gfile.cc +731 -0
- data/pdf2json-0.52-source/goo/gfile.h +138 -0
- data/pdf2json-0.52-source/goo/gfile.o +0 -0
- data/pdf2json-0.52-source/goo/gmem.cc +264 -0
- data/pdf2json-0.52-source/goo/gmem.h +79 -0
- data/pdf2json-0.52-source/goo/gmem.o +0 -0
- data/pdf2json-0.52-source/goo/gmempp.cc +32 -0
- data/pdf2json-0.52-source/goo/gmempp.o +0 -0
- data/pdf2json-0.52-source/goo/gtypes.h +29 -0
- data/pdf2json-0.52-source/goo/libGoo.a +0 -0
- data/pdf2json-0.52-source/goo/parseargs.c +190 -0
- data/pdf2json-0.52-source/goo/parseargs.h +71 -0
- data/pdf2json-0.52-source/goo/parseargs.o +0 -0
- data/pdf2json-0.52-source/goo/vms_directory.c +214 -0
- data/pdf2json-0.52-source/goo/vms_dirent.h +67 -0
- data/pdf2json-0.52-source/goo/vms_make.com +82 -0
- data/pdf2json-0.52-source/goo/vms_sys_dirent.h +54 -0
- data/pdf2json-0.52-source/goo/vms_unix_time.h +102 -0
- data/pdf2json-0.52-source/goo/vms_unix_times.c +42 -0
- data/pdf2json-0.52-source/goo/vms_unlink.c +22 -0
- data/pdf2json-0.52-source/ms_make.bat +199 -0
- data/pdf2json-0.52-source/splash/.DS_Store +0 -0
- data/pdf2json-0.52-source/splash/Makefile +103 -0
- data/pdf2json-0.52-source/splash/Makefile.dep +0 -0
- data/pdf2json-0.52-source/splash/Makefile.in +103 -0
- data/pdf2json-0.52-source/splash/Splash.cc +3310 -0
- data/pdf2json-0.52-source/splash/Splash.h +293 -0
- data/pdf2json-0.52-source/splash/Splash.o +0 -0
- data/pdf2json-0.52-source/splash/SplashBitmap.cc +188 -0
- data/pdf2json-0.52-source/splash/SplashBitmap.h +64 -0
- data/pdf2json-0.52-source/splash/SplashBitmap.o +0 -0
- data/pdf2json-0.52-source/splash/SplashClip.cc +382 -0
- data/pdf2json-0.52-source/splash/SplashClip.h +107 -0
- data/pdf2json-0.52-source/splash/SplashClip.o +0 -0
- data/pdf2json-0.52-source/splash/SplashErrorCodes.h +32 -0
- data/pdf2json-0.52-source/splash/SplashFTFont.cc +357 -0
- data/pdf2json-0.52-source/splash/SplashFTFont.h +58 -0
- data/pdf2json-0.52-source/splash/SplashFTFont.o +0 -0
- data/pdf2json-0.52-source/splash/SplashFTFontEngine.cc +179 -0
- data/pdf2json-0.52-source/splash/SplashFTFontEngine.h +65 -0
- data/pdf2json-0.52-source/splash/SplashFTFontEngine.o +0 -0
- data/pdf2json-0.52-source/splash/SplashFTFontFile.cc +114 -0
- data/pdf2json-0.52-source/splash/SplashFTFontFile.h +73 -0
- data/pdf2json-0.52-source/splash/SplashFTFontFile.o +0 -0
- data/pdf2json-0.52-source/splash/SplashFont.cc +176 -0
- data/pdf2json-0.52-source/splash/SplashFont.h +104 -0
- data/pdf2json-0.52-source/splash/SplashFont.o +0 -0
- data/pdf2json-0.52-source/splash/SplashFontEngine.cc +317 -0
- data/pdf2json-0.52-source/splash/SplashFontEngine.h +91 -0
- data/pdf2json-0.52-source/splash/SplashFontEngine.o +0 -0
- data/pdf2json-0.52-source/splash/SplashFontFile.cc +55 -0
- data/pdf2json-0.52-source/splash/SplashFontFile.h +60 -0
- data/pdf2json-0.52-source/splash/SplashFontFile.o +0 -0
- data/pdf2json-0.52-source/splash/SplashFontFileID.cc +23 -0
- data/pdf2json-0.52-source/splash/SplashFontFileID.h +30 -0
- data/pdf2json-0.52-source/splash/SplashFontFileID.o +0 -0
- data/pdf2json-0.52-source/splash/SplashGlyphBitmap.h +26 -0
- data/pdf2json-0.52-source/splash/SplashMath.h +89 -0
- data/pdf2json-0.52-source/splash/SplashPath.cc +184 -0
- data/pdf2json-0.52-source/splash/SplashPath.h +121 -0
- data/pdf2json-0.52-source/splash/SplashPath.o +0 -0
- data/pdf2json-0.52-source/splash/SplashPattern.cc +40 -0
- data/pdf2json-0.52-source/splash/SplashPattern.h +65 -0
- data/pdf2json-0.52-source/splash/SplashPattern.o +0 -0
- data/pdf2json-0.52-source/splash/SplashScreen.cc +383 -0
- data/pdf2json-0.52-source/splash/SplashScreen.h +56 -0
- data/pdf2json-0.52-source/splash/SplashScreen.o +0 -0
- data/pdf2json-0.52-source/splash/SplashState.cc +165 -0
- data/pdf2json-0.52-source/splash/SplashState.h +103 -0
- data/pdf2json-0.52-source/splash/SplashState.o +0 -0
- data/pdf2json-0.52-source/splash/SplashT1Font.cc +287 -0
- data/pdf2json-0.52-source/splash/SplashT1Font.h +57 -0
- data/pdf2json-0.52-source/splash/SplashT1Font.o +0 -0
- data/pdf2json-0.52-source/splash/SplashT1FontEngine.cc +124 -0
- data/pdf2json-0.52-source/splash/SplashT1FontEngine.h +53 -0
- data/pdf2json-0.52-source/splash/SplashT1FontEngine.o +0 -0
- data/pdf2json-0.52-source/splash/SplashT1FontFile.cc +97 -0
- data/pdf2json-0.52-source/splash/SplashT1FontFile.h +58 -0
- data/pdf2json-0.52-source/splash/SplashT1FontFile.o +0 -0
- data/pdf2json-0.52-source/splash/SplashTypes.h +132 -0
- data/pdf2json-0.52-source/splash/SplashXPath.cc +438 -0
- data/pdf2json-0.52-source/splash/SplashXPath.h +100 -0
- data/pdf2json-0.52-source/splash/SplashXPath.o +0 -0
- data/pdf2json-0.52-source/splash/SplashXPathScanner.cc +428 -0
- data/pdf2json-0.52-source/splash/SplashXPathScanner.h +87 -0
- data/pdf2json-0.52-source/splash/SplashXPathScanner.o +0 -0
- data/pdf2json-0.52-source/splash/libsplash.a +0 -0
- data/pdf2json-0.52-source/splash/vms_make.com +0 -0
- data/pdf2json-0.52-source/src/.DS_Store +0 -0
- data/pdf2json-0.52-source/src/GVector.h +101 -0
- data/pdf2json-0.52-source/src/ImgOutputDev.cc +1243 -0
- data/pdf2json-0.52-source/src/ImgOutputDev.h +307 -0
- data/pdf2json-0.52-source/src/ImgOutputDev.o +0 -0
- data/pdf2json-0.52-source/src/Makefile +68 -0
- data/pdf2json-0.52-source/src/Makefile.in +68 -0
- data/pdf2json-0.52-source/src/XmlFonts.cc +367 -0
- data/pdf2json-0.52-source/src/XmlFonts.h +91 -0
- data/pdf2json-0.52-source/src/XmlFonts.o +0 -0
- data/pdf2json-0.52-source/src/XmlLinks.cc +101 -0
- data/pdf2json-0.52-source/src/XmlLinks.h +54 -0
- data/pdf2json-0.52-source/src/XmlLinks.o +0 -0
- data/pdf2json-0.52-source/src/pdf2json +0 -0
- data/pdf2json-0.52-source/src/pdf2json.cc +343 -0
- data/pdf2json-0.52-source/src/pdf2json.o +0 -0
- data/pdf2json-0.52-source/src/pdf2xml.dtd +22 -0
- data/pdf2json-0.52-source/src/pdf2xmljson.dtd +9 -0
- data/pdf2json-0.52-source/xpdf/.DS_Store +0 -0
- data/pdf2json-0.52-source/xpdf/Annot.cc +1556 -0
- data/pdf2json-0.52-source/xpdf/Annot.h +142 -0
- data/pdf2json-0.52-source/xpdf/Annot.o +0 -0
- data/pdf2json-0.52-source/xpdf/Array.cc +73 -0
- data/pdf2json-0.52-source/xpdf/Array.h +58 -0
- data/pdf2json-0.52-source/xpdf/Array.o +0 -0
- data/pdf2json-0.52-source/xpdf/BuiltinFont.cc +65 -0
- data/pdf2json-0.52-source/xpdf/BuiltinFont.h +57 -0
- data/pdf2json-0.52-source/xpdf/BuiltinFont.o +0 -0
- data/pdf2json-0.52-source/xpdf/BuiltinFontTables.cc +4284 -0
- data/pdf2json-0.52-source/xpdf/BuiltinFontTables.h +23 -0
- data/pdf2json-0.52-source/xpdf/BuiltinFontTables.o +0 -0
- data/pdf2json-0.52-source/xpdf/CMap.cc +408 -0
- data/pdf2json-0.52-source/xpdf/CMap.h +102 -0
- data/pdf2json-0.52-source/xpdf/CMap.o +0 -0
- data/pdf2json-0.52-source/xpdf/Catalog.cc +374 -0
- data/pdf2json-0.52-source/xpdf/Catalog.h +97 -0
- data/pdf2json-0.52-source/xpdf/Catalog.o +0 -0
- data/pdf2json-0.52-source/xpdf/CharCodeToUnicode.cc +540 -0
- data/pdf2json-0.52-source/xpdf/CharCodeToUnicode.h +117 -0
- data/pdf2json-0.52-source/xpdf/CharCodeToUnicode.o +0 -0
- data/pdf2json-0.52-source/xpdf/CharTypes.h +24 -0
- data/pdf2json-0.52-source/xpdf/CompactFontTables.h +464 -0
- data/pdf2json-0.52-source/xpdf/CoreOutputDev.cc +61 -0
- data/pdf2json-0.52-source/xpdf/CoreOutputDev.h +61 -0
- data/pdf2json-0.52-source/xpdf/Decrypt.cc +776 -0
- data/pdf2json-0.52-source/xpdf/Decrypt.h +95 -0
- data/pdf2json-0.52-source/xpdf/Decrypt.o +0 -0
- data/pdf2json-0.52-source/xpdf/Dict.cc +95 -0
- data/pdf2json-0.52-source/xpdf/Dict.h +77 -0
- data/pdf2json-0.52-source/xpdf/Dict.o +0 -0
- data/pdf2json-0.52-source/xpdf/Error.cc +38 -0
- data/pdf2json-0.52-source/xpdf/Error.h +23 -0
- data/pdf2json-0.52-source/xpdf/Error.o +0 -0
- data/pdf2json-0.52-source/xpdf/ErrorCodes.h +36 -0
- data/pdf2json-0.52-source/xpdf/FontEncodingTables.cc +1824 -0
- data/pdf2json-0.52-source/xpdf/FontEncodingTables.h +20 -0
- data/pdf2json-0.52-source/xpdf/FontEncodingTables.o +0 -0
- data/pdf2json-0.52-source/xpdf/Function.cc +1573 -0
- data/pdf2json-0.52-source/xpdf/Function.h +229 -0
- data/pdf2json-0.52-source/xpdf/Function.o +0 -0
- data/pdf2json-0.52-source/xpdf/Gfx.cc +4187 -0
- data/pdf2json-0.52-source/xpdf/Gfx.h +312 -0
- data/pdf2json-0.52-source/xpdf/Gfx.o +0 -0
- data/pdf2json-0.52-source/xpdf/GfxFont.cc +1568 -0
- data/pdf2json-0.52-source/xpdf/GfxFont.h +320 -0
- data/pdf2json-0.52-source/xpdf/GfxFont.o +0 -0
- data/pdf2json-0.52-source/xpdf/GfxState.cc +4137 -0
- data/pdf2json-0.52-source/xpdf/GfxState.h +1244 -0
- data/pdf2json-0.52-source/xpdf/GfxState.o +0 -0
- data/pdf2json-0.52-source/xpdf/GlobalParams.cc +2924 -0
- data/pdf2json-0.52-source/xpdf/GlobalParams.cc.old +2908 -0
- data/pdf2json-0.52-source/xpdf/GlobalParams.h +466 -0
- data/pdf2json-0.52-source/xpdf/GlobalParams.h.old +463 -0
- data/pdf2json-0.52-source/xpdf/GlobalParams.o +0 -0
- data/pdf2json-0.52-source/xpdf/ImageOutputDev.cc +195 -0
- data/pdf2json-0.52-source/xpdf/ImageOutputDev.h +76 -0
- data/pdf2json-0.52-source/xpdf/ImageOutputDev.o +0 -0
- data/pdf2json-0.52-source/xpdf/JArithmeticDecoder.cc +322 -0
- data/pdf2json-0.52-source/xpdf/JArithmeticDecoder.h +109 -0
- data/pdf2json-0.52-source/xpdf/JArithmeticDecoder.o +0 -0
- data/pdf2json-0.52-source/xpdf/JBIG2Stream.cc +3413 -0
- data/pdf2json-0.52-source/xpdf/JBIG2Stream.h +145 -0
- data/pdf2json-0.52-source/xpdf/JBIG2Stream.o +0 -0
- data/pdf2json-0.52-source/xpdf/JPXStream.cc +3144 -0
- data/pdf2json-0.52-source/xpdf/JPXStream.h +351 -0
- data/pdf2json-0.52-source/xpdf/JPXStream.o +0 -0
- data/pdf2json-0.52-source/xpdf/Lexer.cc +485 -0
- data/pdf2json-0.52-source/xpdf/Lexer.h +80 -0
- data/pdf2json-0.52-source/xpdf/Lexer.o +0 -0
- data/pdf2json-0.52-source/xpdf/Link.cc +806 -0
- data/pdf2json-0.52-source/xpdf/Link.cc.old +784 -0
- data/pdf2json-0.52-source/xpdf/Link.h +415 -0
- data/pdf2json-0.52-source/xpdf/Link.h.old +369 -0
- data/pdf2json-0.52-source/xpdf/Link.o +0 -0
- data/pdf2json-0.52-source/xpdf/Makefile +232 -0
- data/pdf2json-0.52-source/xpdf/Makefile.dep +0 -0
- data/pdf2json-0.52-source/xpdf/Makefile.in +232 -0
- data/pdf2json-0.52-source/xpdf/NameToCharCode.cc +116 -0
- data/pdf2json-0.52-source/xpdf/NameToCharCode.h +42 -0
- data/pdf2json-0.52-source/xpdf/NameToCharCode.o +0 -0
- data/pdf2json-0.52-source/xpdf/NameToUnicodeTable.h +1097 -0
- data/pdf2json-0.52-source/xpdf/Object.cc +231 -0
- data/pdf2json-0.52-source/xpdf/Object.h +303 -0
- data/pdf2json-0.52-source/xpdf/Object.o +0 -0
- data/pdf2json-0.52-source/xpdf/Outline.cc +151 -0
- data/pdf2json-0.52-source/xpdf/Outline.h +76 -0
- data/pdf2json-0.52-source/xpdf/Outline.o +0 -0
- data/pdf2json-0.52-source/xpdf/OutputDev.cc +131 -0
- data/pdf2json-0.52-source/xpdf/OutputDev.h +253 -0
- data/pdf2json-0.52-source/xpdf/OutputDev.o +0 -0
- data/pdf2json-0.52-source/xpdf/PDFCore.cc +2044 -0
- data/pdf2json-0.52-source/xpdf/PDFCore.h +321 -0
- data/pdf2json-0.52-source/xpdf/PDFDoc.cc +404 -0
- data/pdf2json-0.52-source/xpdf/PDFDoc.h +183 -0
- data/pdf2json-0.52-source/xpdf/PDFDoc.o +0 -0
- data/pdf2json-0.52-source/xpdf/PDFDocEncoding.cc +44 -0
- data/pdf2json-0.52-source/xpdf/PDFDocEncoding.h +16 -0
- data/pdf2json-0.52-source/xpdf/PDFDocEncoding.o +0 -0
- data/pdf2json-0.52-source/xpdf/PSOutputDev.cc +6224 -0
- data/pdf2json-0.52-source/xpdf/PSOutputDev.h +395 -0
- data/pdf2json-0.52-source/xpdf/PSOutputDev.o +0 -0
- data/pdf2json-0.52-source/xpdf/PSTokenizer.cc +135 -0
- data/pdf2json-0.52-source/xpdf/PSTokenizer.h +41 -0
- data/pdf2json-0.52-source/xpdf/PSTokenizer.o +0 -0
- data/pdf2json-0.52-source/xpdf/Page.cc +454 -0
- data/pdf2json-0.52-source/xpdf/Page.h +187 -0
- data/pdf2json-0.52-source/xpdf/Page.o +0 -0
- data/pdf2json-0.52-source/xpdf/Parser.cc +227 -0
- data/pdf2json-0.52-source/xpdf/Parser.h +59 -0
- data/pdf2json-0.52-source/xpdf/Parser.o +0 -0
- data/pdf2json-0.52-source/xpdf/PreScanOutputDev.cc +257 -0
- data/pdf2json-0.52-source/xpdf/PreScanOutputDev.h +130 -0
- data/pdf2json-0.52-source/xpdf/PreScanOutputDev.o +0 -0
- data/pdf2json-0.52-source/xpdf/SecurityHandler.cc +390 -0
- data/pdf2json-0.52-source/xpdf/SecurityHandler.h +160 -0
- data/pdf2json-0.52-source/xpdf/SecurityHandler.o +0 -0
- data/pdf2json-0.52-source/xpdf/SplashOutputDev.cc +2845 -0
- data/pdf2json-0.52-source/xpdf/SplashOutputDev.h +247 -0
- data/pdf2json-0.52-source/xpdf/SplashOutputDev.o +0 -0
- data/pdf2json-0.52-source/xpdf/Stream-CCITT.h +459 -0
- data/pdf2json-0.52-source/xpdf/Stream.cc +4627 -0
- data/pdf2json-0.52-source/xpdf/Stream.h +858 -0
- data/pdf2json-0.52-source/xpdf/Stream.o +0 -0
- data/pdf2json-0.52-source/xpdf/TextOutputDev.cc +4090 -0
- data/pdf2json-0.52-source/xpdf/TextOutputDev.h +661 -0
- data/pdf2json-0.52-source/xpdf/TextOutputDev.o +0 -0
- data/pdf2json-0.52-source/xpdf/UTF8.h +56 -0
- data/pdf2json-0.52-source/xpdf/UnicodeMap.cc +302 -0
- data/pdf2json-0.52-source/xpdf/UnicodeMap.cc.old +293 -0
- data/pdf2json-0.52-source/xpdf/UnicodeMap.h +135 -0
- data/pdf2json-0.52-source/xpdf/UnicodeMap.h.old +123 -0
- data/pdf2json-0.52-source/xpdf/UnicodeMap.o +0 -0
- data/pdf2json-0.52-source/xpdf/UnicodeMapTables.h +361 -0
- data/pdf2json-0.52-source/xpdf/UnicodeTypeTable.cc +949 -0
- data/pdf2json-0.52-source/xpdf/UnicodeTypeTable.h +20 -0
- data/pdf2json-0.52-source/xpdf/UnicodeTypeTable.o +0 -0
- data/pdf2json-0.52-source/xpdf/XPDFApp.cc +447 -0
- data/pdf2json-0.52-source/xpdf/XPDFApp.h +114 -0
- data/pdf2json-0.52-source/xpdf/XPDFCore.cc +1655 -0
- data/pdf2json-0.52-source/xpdf/XPDFCore.h +251 -0
- data/pdf2json-0.52-source/xpdf/XPDFTree.cc +931 -0
- data/pdf2json-0.52-source/xpdf/XPDFTree.h +45 -0
- data/pdf2json-0.52-source/xpdf/XPDFTreeP.h +87 -0
- data/pdf2json-0.52-source/xpdf/XPDFViewer.cc +3488 -0
- data/pdf2json-0.52-source/xpdf/XPDFViewer.h +352 -0
- data/pdf2json-0.52-source/xpdf/XRef.cc +896 -0
- data/pdf2json-0.52-source/xpdf/XRef.h +133 -0
- data/pdf2json-0.52-source/xpdf/XRef.o +0 -0
- data/pdf2json-0.52-source/xpdf/XpdfPluginAPI.cc +262 -0
- data/pdf2json-0.52-source/xpdf/XpdfPluginAPI.h +341 -0
- data/pdf2json-0.52-source/xpdf/XpdfPluginAPI.o +0 -0
- data/pdf2json-0.52-source/xpdf/about-text.h +48 -0
- data/pdf2json-0.52-source/xpdf/about.xbm +6 -0
- data/pdf2json-0.52-source/xpdf/backArrow.xbm +6 -0
- data/pdf2json-0.52-source/xpdf/backArrowDis.xbm +6 -0
- data/pdf2json-0.52-source/xpdf/config.h +112 -0
- data/pdf2json-0.52-source/xpdf/dblLeftArrow.xbm +6 -0
- data/pdf2json-0.52-source/xpdf/dblLeftArrowDis.xbm +6 -0
- data/pdf2json-0.52-source/xpdf/dblRightArrow.xbm +6 -0
- data/pdf2json-0.52-source/xpdf/dblRightArrowDis.xbm +6 -0
- data/pdf2json-0.52-source/xpdf/find.xbm +6 -0
- data/pdf2json-0.52-source/xpdf/findDis.xbm +6 -0
- data/pdf2json-0.52-source/xpdf/forwardArrow.xbm +6 -0
- data/pdf2json-0.52-source/xpdf/forwardArrowDis.xbm +6 -0
- data/pdf2json-0.52-source/xpdf/leftArrow.xbm +5 -0
- data/pdf2json-0.52-source/xpdf/leftArrowDis.xbm +5 -0
- data/pdf2json-0.52-source/xpdf/libXpdf.a +0 -0
- data/pdf2json-0.52-source/xpdf/pdffonts +0 -0
- data/pdf2json-0.52-source/xpdf/pdffonts.cc +298 -0
- data/pdf2json-0.52-source/xpdf/pdffonts.o +0 -0
- data/pdf2json-0.52-source/xpdf/pdfimages +0 -0
- data/pdf2json-0.52-source/xpdf/pdfimages.cc +155 -0
- data/pdf2json-0.52-source/xpdf/pdfimages.o +0 -0
- data/pdf2json-0.52-source/xpdf/pdfinfo +0 -0
- data/pdf2json-0.52-source/xpdf/pdfinfo.cc +387 -0
- data/pdf2json-0.52-source/xpdf/pdfinfo.o +0 -0
- data/pdf2json-0.52-source/xpdf/pdftoppm.cc +203 -0
- data/pdf2json-0.52-source/xpdf/pdftops +0 -0
- data/pdf2json-0.52-source/xpdf/pdftops.cc +344 -0
- data/pdf2json-0.52-source/xpdf/pdftops.o +0 -0
- data/pdf2json-0.52-source/xpdf/pdftotext +0 -0
- data/pdf2json-0.52-source/xpdf/pdftotext.cc +333 -0
- data/pdf2json-0.52-source/xpdf/pdftotext.o +0 -0
- data/pdf2json-0.52-source/xpdf/print.xbm +6 -0
- data/pdf2json-0.52-source/xpdf/printDis.xbm +6 -0
- data/pdf2json-0.52-source/xpdf/rightArrow.xbm +5 -0
- data/pdf2json-0.52-source/xpdf/rightArrowDis.xbm +5 -0
- data/pdf2json-0.52-source/xpdf/vms_make.com +129 -0
- data/pdf2json-0.52-source/xpdf/xpdf.cc +344 -0
- data/pdf2json-0.52-source/xpdf/xpdfIcon.xpm +62 -0
- data/pdf2json.gemspec +29 -0
- metadata +518 -0
@@ -0,0 +1,463 @@
|
|
1
|
+
//========================================================================
|
2
|
+
//
|
3
|
+
// GlobalParams.h
|
4
|
+
//
|
5
|
+
// Copyright 2001-2003 Glyph & Cog, LLC
|
6
|
+
//
|
7
|
+
//========================================================================
|
8
|
+
|
9
|
+
#ifndef GLOBALPARAMS_H
|
10
|
+
#define GLOBALPARAMS_H
|
11
|
+
|
12
|
+
#include <aconf.h>
|
13
|
+
|
14
|
+
#ifdef USE_GCC_PRAGMAS
|
15
|
+
#pragma interface
|
16
|
+
#endif
|
17
|
+
|
18
|
+
#include <stdio.h>
|
19
|
+
#include "gtypes.h"
|
20
|
+
#include "CharTypes.h"
|
21
|
+
|
22
|
+
#if MULTITHREADED
|
23
|
+
#include "GMutex.h"
|
24
|
+
#endif
|
25
|
+
|
26
|
+
class GString;
|
27
|
+
class GList;
|
28
|
+
class GHash;
|
29
|
+
class NameToCharCode;
|
30
|
+
class CharCodeToUnicode;
|
31
|
+
class CharCodeToUnicodeCache;
|
32
|
+
class UnicodeMap;
|
33
|
+
class UnicodeMapCache;
|
34
|
+
class CMap;
|
35
|
+
class CMapCache;
|
36
|
+
struct XpdfSecurityHandler;
|
37
|
+
class GlobalParams;
|
38
|
+
#ifdef WIN32
|
39
|
+
class WinFontList;
|
40
|
+
#endif
|
41
|
+
|
42
|
+
//------------------------------------------------------------------------
|
43
|
+
|
44
|
+
// The global parameters object.
|
45
|
+
extern GlobalParams *globalParams;
|
46
|
+
|
47
|
+
//------------------------------------------------------------------------
|
48
|
+
|
49
|
+
enum DisplayFontParamKind {
|
50
|
+
displayFontT1,
|
51
|
+
displayFontTT
|
52
|
+
};
|
53
|
+
|
54
|
+
struct DisplayFontParamT1 {
|
55
|
+
GString *fileName;
|
56
|
+
};
|
57
|
+
|
58
|
+
struct DisplayFontParamTT {
|
59
|
+
GString *fileName;
|
60
|
+
};
|
61
|
+
|
62
|
+
class DisplayFontParam {
|
63
|
+
public:
|
64
|
+
|
65
|
+
GString *name; // font name for 8-bit fonts and named
|
66
|
+
// CID fonts; collection name for
|
67
|
+
// generic CID fonts
|
68
|
+
DisplayFontParamKind kind;
|
69
|
+
union {
|
70
|
+
DisplayFontParamT1 t1;
|
71
|
+
DisplayFontParamTT tt;
|
72
|
+
};
|
73
|
+
|
74
|
+
DisplayFontParam(GString *nameA, DisplayFontParamKind kindA);
|
75
|
+
virtual ~DisplayFontParam();
|
76
|
+
};
|
77
|
+
|
78
|
+
//------------------------------------------------------------------------
|
79
|
+
|
80
|
+
class PSFontParam {
|
81
|
+
public:
|
82
|
+
|
83
|
+
GString *pdfFontName; // PDF font name for 8-bit fonts and
|
84
|
+
// named 16-bit fonts; char collection
|
85
|
+
// name for generic 16-bit fonts
|
86
|
+
int wMode; // writing mode (0=horiz, 1=vert) for
|
87
|
+
// 16-bit fonts
|
88
|
+
GString *psFontName; // PostScript font name
|
89
|
+
GString *encoding; // encoding, for 16-bit fonts only
|
90
|
+
|
91
|
+
PSFontParam(GString *pdfFontNameA, int wModeA,
|
92
|
+
GString *psFontNameA, GString *encodingA);
|
93
|
+
~PSFontParam();
|
94
|
+
};
|
95
|
+
|
96
|
+
//------------------------------------------------------------------------
|
97
|
+
|
98
|
+
enum PSLevel {
|
99
|
+
psLevel1,
|
100
|
+
psLevel1Sep,
|
101
|
+
psLevel2,
|
102
|
+
psLevel2Sep,
|
103
|
+
psLevel3,
|
104
|
+
psLevel3Sep
|
105
|
+
};
|
106
|
+
|
107
|
+
//------------------------------------------------------------------------
|
108
|
+
|
109
|
+
enum EndOfLineKind {
|
110
|
+
eolUnix, // LF
|
111
|
+
eolDOS, // CR+LF
|
112
|
+
eolMac // CR
|
113
|
+
};
|
114
|
+
|
115
|
+
//------------------------------------------------------------------------
|
116
|
+
|
117
|
+
enum ScreenType {
|
118
|
+
screenUnset,
|
119
|
+
screenDispersed,
|
120
|
+
screenClustered,
|
121
|
+
screenStochasticClustered
|
122
|
+
};
|
123
|
+
|
124
|
+
//------------------------------------------------------------------------
|
125
|
+
|
126
|
+
class KeyBinding {
|
127
|
+
public:
|
128
|
+
|
129
|
+
int code; // 0x20 .. 0xfe = ASCII,
|
130
|
+
// >=0x10000 = special keys, mouse buttons,
|
131
|
+
// etc. (xpdfKeyCode* symbols)
|
132
|
+
int mods; // modifiers (xpdfKeyMod* symbols, or-ed
|
133
|
+
// together)
|
134
|
+
int context; // context (xpdfKeyContext* symbols, or-ed
|
135
|
+
// together)
|
136
|
+
GList *cmds; // list of commands [GString]
|
137
|
+
|
138
|
+
KeyBinding(int codeA, int modsA, int contextA, char *cmd0);
|
139
|
+
KeyBinding(int codeA, int modsA, int contextA, char *cmd0, char *cmd1);
|
140
|
+
KeyBinding(int codeA, int modsA, int contextA, GList *cmdsA);
|
141
|
+
~KeyBinding();
|
142
|
+
};
|
143
|
+
|
144
|
+
#define xpdfKeyCodeTab 0x1000
|
145
|
+
#define xpdfKeyCodeReturn 0x1001
|
146
|
+
#define xpdfKeyCodeEnter 0x1002
|
147
|
+
#define xpdfKeyCodeBackspace 0x1003
|
148
|
+
#define xpdfKeyCodeInsert 0x1004
|
149
|
+
#define xpdfKeyCodeDelete 0x1005
|
150
|
+
#define xpdfKeyCodeHome 0x1006
|
151
|
+
#define xpdfKeyCodeEnd 0x1007
|
152
|
+
#define xpdfKeyCodePgUp 0x1008
|
153
|
+
#define xpdfKeyCodePgDn 0x1009
|
154
|
+
#define xpdfKeyCodeLeft 0x100a
|
155
|
+
#define xpdfKeyCodeRight 0x100b
|
156
|
+
#define xpdfKeyCodeUp 0x100c
|
157
|
+
#define xpdfKeyCodeDown 0x100d
|
158
|
+
#define xpdfKeyCodeF1 0x1100
|
159
|
+
#define xpdfKeyCodeF35 0x1122
|
160
|
+
#define xpdfKeyCodeMousePress1 0x2001
|
161
|
+
#define xpdfKeyCodeMousePress2 0x2002
|
162
|
+
#define xpdfKeyCodeMousePress3 0x2003
|
163
|
+
#define xpdfKeyCodeMousePress4 0x2004
|
164
|
+
#define xpdfKeyCodeMousePress5 0x2005
|
165
|
+
#define xpdfKeyCodeMousePress6 0x2006
|
166
|
+
#define xpdfKeyCodeMousePress7 0x2007
|
167
|
+
#define xpdfKeyCodeMouseRelease1 0x2101
|
168
|
+
#define xpdfKeyCodeMouseRelease2 0x2102
|
169
|
+
#define xpdfKeyCodeMouseRelease3 0x2103
|
170
|
+
#define xpdfKeyCodeMouseRelease4 0x2104
|
171
|
+
#define xpdfKeyCodeMouseRelease5 0x2105
|
172
|
+
#define xpdfKeyCodeMouseRelease6 0x2106
|
173
|
+
#define xpdfKeyCodeMouseRelease7 0x2107
|
174
|
+
#define xpdfKeyModNone 0
|
175
|
+
#define xpdfKeyModShift (1 << 0)
|
176
|
+
#define xpdfKeyModCtrl (1 << 1)
|
177
|
+
#define xpdfKeyModAlt (1 << 2)
|
178
|
+
#define xpdfKeyContextAny 0
|
179
|
+
#define xpdfKeyContextFullScreen (1 << 0)
|
180
|
+
#define xpdfKeyContextWindow (2 << 0)
|
181
|
+
#define xpdfKeyContextContinuous (1 << 2)
|
182
|
+
#define xpdfKeyContextSinglePage (2 << 2)
|
183
|
+
#define xpdfKeyContextOverLink (1 << 4)
|
184
|
+
#define xpdfKeyContextOffLink (2 << 4)
|
185
|
+
#define xpdfKeyContextOutline (1 << 6)
|
186
|
+
#define xpdfKeyContextMainWin (2 << 6)
|
187
|
+
#define xpdfKeyContextScrLockOn (1 << 8)
|
188
|
+
#define xpdfKeyContextScrLockOff (2 << 8)
|
189
|
+
|
190
|
+
//------------------------------------------------------------------------
|
191
|
+
|
192
|
+
class GlobalParams {
|
193
|
+
public:
|
194
|
+
|
195
|
+
// Initialize the global parameters by attempting to read a config
|
196
|
+
// file.
|
197
|
+
GlobalParams(char *cfgFileName);
|
198
|
+
|
199
|
+
~GlobalParams();
|
200
|
+
|
201
|
+
void setBaseDir(char *dir);
|
202
|
+
void setupBaseFonts(char *dir);
|
203
|
+
|
204
|
+
void parseLine(char *buf, GString *fileName, int line);
|
205
|
+
|
206
|
+
//----- accessors
|
207
|
+
|
208
|
+
CharCode getMacRomanCharCode(char *charName);
|
209
|
+
|
210
|
+
GString *getBaseDir();
|
211
|
+
Unicode mapNameToUnicode(char *charName);
|
212
|
+
UnicodeMap *getResidentUnicodeMap(GString *encodingName);
|
213
|
+
FILE *getUnicodeMapFile(GString *encodingName);
|
214
|
+
FILE *findCMapFile(GString *collection, GString *cMapName);
|
215
|
+
FILE *findToUnicodeFile(GString *name);
|
216
|
+
DisplayFontParam *getDisplayFont(GString *fontName);
|
217
|
+
DisplayFontParam *getDisplayCIDFont(GString *fontName, GString *collection);
|
218
|
+
GString *getPSFile();
|
219
|
+
int getPSPaperWidth();
|
220
|
+
int getPSPaperHeight();
|
221
|
+
void getPSImageableArea(int *llx, int *lly, int *urx, int *ury);
|
222
|
+
GBool getPSDuplex();
|
223
|
+
GBool getPSCrop();
|
224
|
+
GBool getPSExpandSmaller();
|
225
|
+
GBool getPSShrinkLarger();
|
226
|
+
GBool getPSCenter();
|
227
|
+
PSLevel getPSLevel();
|
228
|
+
PSFontParam *getPSFont(GString *fontName);
|
229
|
+
PSFontParam *getPSFont16(GString *fontName, GString *collection, int wMode);
|
230
|
+
GBool getPSEmbedType1();
|
231
|
+
GBool getPSEmbedTrueType();
|
232
|
+
GBool getPSEmbedCIDPostScript();
|
233
|
+
GBool getPSEmbedCIDTrueType();
|
234
|
+
GBool getPSPreload();
|
235
|
+
GBool getPSOPI();
|
236
|
+
GBool getPSASCIIHex();
|
237
|
+
GString *getTextEncodingName();
|
238
|
+
EndOfLineKind getTextEOL();
|
239
|
+
GBool getTextPageBreaks();
|
240
|
+
GBool getTextKeepTinyChars();
|
241
|
+
GString *findFontFile(GString *fontName, char **exts);
|
242
|
+
GString *getInitialZoom();
|
243
|
+
GBool getContinuousView();
|
244
|
+
GBool getEnableT1lib();
|
245
|
+
GBool getEnableFreeType();
|
246
|
+
GBool getAntialias();
|
247
|
+
GBool getVectorAntialias();
|
248
|
+
GBool getStrokeAdjust();
|
249
|
+
ScreenType getScreenType();
|
250
|
+
int getScreenSize();
|
251
|
+
int getScreenDotRadius();
|
252
|
+
double getScreenGamma();
|
253
|
+
double getScreenBlackThreshold();
|
254
|
+
double getScreenWhiteThreshold();
|
255
|
+
GString *getURLCommand() { return urlCommand; }
|
256
|
+
GString *getMovieCommand() { return movieCommand; }
|
257
|
+
GBool getMapNumericCharNames();
|
258
|
+
GBool getMapUnknownCharNames();
|
259
|
+
GList *getKeyBinding(int code, int mods, int context);
|
260
|
+
GBool getPrintCommands();
|
261
|
+
GBool getErrQuiet();
|
262
|
+
|
263
|
+
CharCodeToUnicode *getCIDToUnicode(GString *collection);
|
264
|
+
CharCodeToUnicode *getUnicodeToUnicode(GString *fontName);
|
265
|
+
UnicodeMap *getUnicodeMap(GString *encodingName);
|
266
|
+
CMap *getCMap(GString *collection, GString *cMapName);
|
267
|
+
UnicodeMap *getTextEncoding();
|
268
|
+
|
269
|
+
//----- functions to set parameters
|
270
|
+
|
271
|
+
void addDisplayFont(DisplayFontParam *param);
|
272
|
+
void setPSFile(char *file);
|
273
|
+
GBool setPSPaperSize(char *size);
|
274
|
+
void setPSPaperWidth(int width);
|
275
|
+
void setPSPaperHeight(int height);
|
276
|
+
void setPSImageableArea(int llx, int lly, int urx, int ury);
|
277
|
+
void setPSDuplex(GBool duplex);
|
278
|
+
void setPSCrop(GBool crop);
|
279
|
+
void setPSExpandSmaller(GBool expand);
|
280
|
+
void setPSShrinkLarger(GBool shrink);
|
281
|
+
void setPSCenter(GBool center);
|
282
|
+
void setPSLevel(PSLevel level);
|
283
|
+
void setPSEmbedType1(GBool embed);
|
284
|
+
void setPSEmbedTrueType(GBool embed);
|
285
|
+
void setPSEmbedCIDPostScript(GBool embed);
|
286
|
+
void setPSEmbedCIDTrueType(GBool embed);
|
287
|
+
void setPSPreload(GBool preload);
|
288
|
+
void setPSOPI(GBool opi);
|
289
|
+
void setPSASCIIHex(GBool hex);
|
290
|
+
void setTextEncoding(char *encodingName);
|
291
|
+
GBool setTextEOL(char *s);
|
292
|
+
void setTextPageBreaks(GBool pageBreaks);
|
293
|
+
void setTextKeepTinyChars(GBool keep);
|
294
|
+
void setInitialZoom(char *s);
|
295
|
+
void setContinuousView(GBool cont);
|
296
|
+
GBool setEnableT1lib(char *s);
|
297
|
+
GBool setEnableFreeType(char *s);
|
298
|
+
GBool setAntialias(char *s);
|
299
|
+
GBool setVectorAntialias(char *s);
|
300
|
+
void setScreenType(ScreenType t);
|
301
|
+
void setScreenSize(int size);
|
302
|
+
void setScreenDotRadius(int r);
|
303
|
+
void setScreenGamma(double gamma);
|
304
|
+
void setScreenBlackThreshold(double thresh);
|
305
|
+
void setScreenWhiteThreshold(double thresh);
|
306
|
+
void setMapNumericCharNames(GBool map);
|
307
|
+
void setMapUnknownCharNames(GBool map);
|
308
|
+
void setPrintCommands(GBool printCommandsA);
|
309
|
+
void setErrQuiet(GBool errQuietA);
|
310
|
+
|
311
|
+
//----- security handlers
|
312
|
+
|
313
|
+
void addSecurityHandler(XpdfSecurityHandler *handler);
|
314
|
+
XpdfSecurityHandler *getSecurityHandler(char *name);
|
315
|
+
|
316
|
+
private:
|
317
|
+
|
318
|
+
void createDefaultKeyBindings();
|
319
|
+
void parseFile(GString *fileName, FILE *f);
|
320
|
+
void parseNameToUnicode(GList *tokens, GString *fileName, int line);
|
321
|
+
void parseCIDToUnicode(GList *tokens, GString *fileName, int line);
|
322
|
+
void parseUnicodeToUnicode(GList *tokens, GString *fileName, int line);
|
323
|
+
void parseUnicodeMap(GList *tokens, GString *fileName, int line);
|
324
|
+
void parseCMapDir(GList *tokens, GString *fileName, int line);
|
325
|
+
void parseToUnicodeDir(GList *tokens, GString *fileName, int line);
|
326
|
+
void parseDisplayFont(GList *tokens, GHash *fontHash,
|
327
|
+
DisplayFontParamKind kind,
|
328
|
+
GString *fileName, int line);
|
329
|
+
void parsePSFile(GList *tokens, GString *fileName, int line);
|
330
|
+
void parsePSPaperSize(GList *tokens, GString *fileName, int line);
|
331
|
+
void parsePSImageableArea(GList *tokens, GString *fileName, int line);
|
332
|
+
void parsePSLevel(GList *tokens, GString *fileName, int line);
|
333
|
+
void parsePSFont(GList *tokens, GString *fileName, int line);
|
334
|
+
void parsePSFont16(char *cmdName, GList *fontList,
|
335
|
+
GList *tokens, GString *fileName, int line);
|
336
|
+
void parseTextEncoding(GList *tokens, GString *fileName, int line);
|
337
|
+
void parseTextEOL(GList *tokens, GString *fileName, int line);
|
338
|
+
void parseFontDir(GList *tokens, GString *fileName, int line);
|
339
|
+
void parseInitialZoom(GList *tokens, GString *fileName, int line);
|
340
|
+
void parseScreenType(GList *tokens, GString *fileName, int line);
|
341
|
+
void parseBind(GList *tokens, GString *fileName, int line);
|
342
|
+
void parseUnbind(GList *tokens, GString *fileName, int line);
|
343
|
+
GBool parseKey(GString *modKeyStr, GString *contextStr,
|
344
|
+
int *code, int *mods, int *context,
|
345
|
+
char *cmdName,
|
346
|
+
GList *tokens, GString *fileName, int line);
|
347
|
+
void parseCommand(char *cmdName, GString **val,
|
348
|
+
GList *tokens, GString *fileName, int line);
|
349
|
+
void parseYesNo(char *cmdName, GBool *flag,
|
350
|
+
GList *tokens, GString *fileName, int line);
|
351
|
+
GBool parseYesNo2(char *token, GBool *flag);
|
352
|
+
void parseInteger(char *cmdName, int *val,
|
353
|
+
GList *tokens, GString *fileName, int line);
|
354
|
+
void parseFloat(char *cmdName, double *val,
|
355
|
+
GList *tokens, GString *fileName, int line);
|
356
|
+
UnicodeMap *getUnicodeMap2(GString *encodingName);
|
357
|
+
#ifdef ENABLE_PLUGINS
|
358
|
+
GBool loadPlugin(char *type, char *name);
|
359
|
+
#endif
|
360
|
+
|
361
|
+
//----- static tables
|
362
|
+
|
363
|
+
NameToCharCode * // mapping from char name to
|
364
|
+
macRomanReverseMap; // MacRomanEncoding index
|
365
|
+
|
366
|
+
//----- user-modifiable settings
|
367
|
+
|
368
|
+
GString *baseDir; // base directory - for plugins, etc.
|
369
|
+
NameToCharCode * // mapping from char name to Unicode
|
370
|
+
nameToUnicode;
|
371
|
+
GHash *cidToUnicodes; // files for mappings from char collections
|
372
|
+
// to Unicode, indexed by collection name
|
373
|
+
// [GString]
|
374
|
+
GHash *unicodeToUnicodes; // files for Unicode-to-Unicode mappings,
|
375
|
+
// indexed by font name pattern [GString]
|
376
|
+
GHash *residentUnicodeMaps; // mappings from Unicode to char codes,
|
377
|
+
// indexed by encoding name [UnicodeMap]
|
378
|
+
GHash *unicodeMaps; // files for mappings from Unicode to char
|
379
|
+
// codes, indexed by encoding name [GString]
|
380
|
+
GHash *cMapDirs; // list of CMap dirs, indexed by collection
|
381
|
+
// name [GList[GString]]
|
382
|
+
GList *toUnicodeDirs; // list of ToUnicode CMap dirs [GString]
|
383
|
+
GHash *displayFonts; // display font info, indexed by font name
|
384
|
+
// [DisplayFontParam]
|
385
|
+
#ifdef WIN32
|
386
|
+
WinFontList *winFontList; // system TrueType fonts
|
387
|
+
#endif
|
388
|
+
GHash *displayCIDFonts; // display CID font info, indexed by
|
389
|
+
// collection [DisplayFontParam]
|
390
|
+
GHash *displayNamedCIDFonts; // display CID font info, indexed by
|
391
|
+
// font name [DisplayFontParam]
|
392
|
+
GString *psFile; // PostScript file or command (for xpdf)
|
393
|
+
int psPaperWidth; // paper size, in PostScript points, for
|
394
|
+
int psPaperHeight; // PostScript output
|
395
|
+
int psImageableLLX, // imageable area, in PostScript points,
|
396
|
+
psImageableLLY, // for PostScript output
|
397
|
+
psImageableURX,
|
398
|
+
psImageableURY;
|
399
|
+
GBool psCrop; // crop PS output to CropBox
|
400
|
+
GBool psExpandSmaller; // expand smaller pages to fill paper
|
401
|
+
GBool psShrinkLarger; // shrink larger pages to fit paper
|
402
|
+
GBool psCenter; // center pages on the paper
|
403
|
+
GBool psDuplex; // enable duplexing in PostScript?
|
404
|
+
PSLevel psLevel; // PostScript level to generate
|
405
|
+
GHash *psFonts; // PostScript font info, indexed by PDF
|
406
|
+
// font name [PSFontParam]
|
407
|
+
GList *psNamedFonts16; // named 16-bit fonts [PSFontParam]
|
408
|
+
GList *psFonts16; // generic 16-bit fonts [PSFontParam]
|
409
|
+
GBool psEmbedType1; // embed Type 1 fonts?
|
410
|
+
GBool psEmbedTrueType; // embed TrueType fonts?
|
411
|
+
GBool psEmbedCIDPostScript; // embed CID PostScript fonts?
|
412
|
+
GBool psEmbedCIDTrueType; // embed CID TrueType fonts?
|
413
|
+
GBool psPreload; // preload PostScript images and forms into
|
414
|
+
// memory
|
415
|
+
GBool psOPI; // generate PostScript OPI comments?
|
416
|
+
GBool psASCIIHex; // use ASCIIHex instead of ASCII85?
|
417
|
+
GString *textEncoding; // encoding (unicodeMap) to use for text
|
418
|
+
// output
|
419
|
+
EndOfLineKind textEOL; // type of EOL marker to use for text
|
420
|
+
// output
|
421
|
+
GBool textPageBreaks; // insert end-of-page markers?
|
422
|
+
GBool textKeepTinyChars; // keep all characters in text output
|
423
|
+
GList *fontDirs; // list of font dirs [GString]
|
424
|
+
GString *initialZoom; // initial zoom level
|
425
|
+
GBool continuousView; // continuous view mode
|
426
|
+
GBool enableT1lib; // t1lib enable flag
|
427
|
+
GBool enableFreeType; // FreeType enable flag
|
428
|
+
GBool antialias; // font anti-aliasing enable flag
|
429
|
+
GBool vectorAntialias; // vector anti-aliasing enable flag
|
430
|
+
GBool strokeAdjust; // stroke adjustment enable flag
|
431
|
+
ScreenType screenType; // halftone screen type
|
432
|
+
int screenSize; // screen matrix size
|
433
|
+
int screenDotRadius; // screen dot radius
|
434
|
+
double screenGamma; // screen gamma correction
|
435
|
+
double screenBlackThreshold; // screen black clamping threshold
|
436
|
+
double screenWhiteThreshold; // screen white clamping threshold
|
437
|
+
GString *urlCommand; // command executed for URL links
|
438
|
+
GString *movieCommand; // command executed for movie annotations
|
439
|
+
GBool mapNumericCharNames; // map numeric char names (from font subsets)?
|
440
|
+
GBool mapUnknownCharNames; // map unknown char names?
|
441
|
+
GList *keyBindings; // key & mouse button bindings [KeyBinding]
|
442
|
+
GBool printCommands; // print the drawing commands
|
443
|
+
GBool errQuiet; // suppress error messages?
|
444
|
+
|
445
|
+
CharCodeToUnicodeCache *cidToUnicodeCache;
|
446
|
+
CharCodeToUnicodeCache *unicodeToUnicodeCache;
|
447
|
+
UnicodeMapCache *unicodeMapCache;
|
448
|
+
CMapCache *cMapCache;
|
449
|
+
|
450
|
+
#ifdef ENABLE_PLUGINS
|
451
|
+
GList *plugins; // list of plugins [Plugin]
|
452
|
+
GList *securityHandlers; // list of loaded security handlers
|
453
|
+
// [XpdfSecurityHandler]
|
454
|
+
#endif
|
455
|
+
|
456
|
+
#if MULTITHREADED
|
457
|
+
GMutex mutex;
|
458
|
+
GMutex unicodeMapCacheMutex;
|
459
|
+
GMutex cMapCacheMutex;
|
460
|
+
#endif
|
461
|
+
};
|
462
|
+
|
463
|
+
#endif
|