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
Binary file
|
@@ -0,0 +1,48 @@
|
|
1
|
+
//========================================================================
|
2
|
+
//
|
3
|
+
// about-text.h
|
4
|
+
//
|
5
|
+
// Copyright 2002-2007 Glyph & Cog, LLC
|
6
|
+
//
|
7
|
+
//========================================================================
|
8
|
+
|
9
|
+
static char *aboutWinText[] = {
|
10
|
+
"http://www.foolabs.com/xpdf/",
|
11
|
+
"derekn@foolabs.com",
|
12
|
+
" ",
|
13
|
+
"Licensed under the GNU General Public License (GPL).",
|
14
|
+
"See the 'COPYING' file for details.",
|
15
|
+
" ",
|
16
|
+
"Supports PDF version " supportedPDFVersionStr ".",
|
17
|
+
" ",
|
18
|
+
"The PDF data structures, operators, and specification",
|
19
|
+
"are copyright 1985-2006 Adobe Systems Inc.",
|
20
|
+
" ",
|
21
|
+
"Mouse bindings:",
|
22
|
+
" button 1: select text / follow link",
|
23
|
+
" button 2: pan window",
|
24
|
+
" button 3: menu",
|
25
|
+
" ",
|
26
|
+
"Key bindings:",
|
27
|
+
" o = open file",
|
28
|
+
" r = reload",
|
29
|
+
" f / ctrl-F = find text",
|
30
|
+
" ctrl-G = find next",
|
31
|
+
" ctrl-P = print",
|
32
|
+
" n = next page",
|
33
|
+
" p = previous page",
|
34
|
+
" <PgDn> = <space> = scroll down",
|
35
|
+
" <PgUp> = <backspace> = <delete> = scroll up",
|
36
|
+
" v = forward (history path)",
|
37
|
+
" b = backward (history path)",
|
38
|
+
" 0 / + / - = zoom zero / in / out",
|
39
|
+
" z / w = zoom page / page width",
|
40
|
+
" alt-F = toggle full-screen mode",
|
41
|
+
" ctrl-L = redraw",
|
42
|
+
" q = quit",
|
43
|
+
" <home> / <end> = top / bottom of page",
|
44
|
+
" <arrows> = scroll",
|
45
|
+
" ",
|
46
|
+
"For more information, please read the xpdf(1) man page.",
|
47
|
+
NULL
|
48
|
+
};
|
@@ -0,0 +1,6 @@
|
|
1
|
+
#define about_width 10
|
2
|
+
#define about_height 15
|
3
|
+
static unsigned char about_bits[] = {
|
4
|
+
0x78, 0x00, 0xfc, 0x00, 0xce, 0x01, 0x86, 0x01, 0x80, 0x01, 0x80, 0x01,
|
5
|
+
0xc0, 0x01, 0xe0, 0x00, 0x70, 0x00, 0x30, 0x00, 0x30, 0x00, 0x30, 0x00,
|
6
|
+
0x00, 0x00, 0x30, 0x00, 0x30, 0x00};
|
@@ -0,0 +1,6 @@
|
|
1
|
+
#define backArrow_width 16
|
2
|
+
#define backArrow_height 15
|
3
|
+
static unsigned char backArrow_bits[] = {
|
4
|
+
0x80, 0x00, 0xc0, 0x00, 0xe0, 0x00, 0xf0, 0x00, 0xf8, 0x00, 0xfc, 0xcc,
|
5
|
+
0xfe, 0xcc, 0xff, 0xcc, 0xfe, 0xcc, 0xfc, 0xcc, 0xf8, 0xcc, 0xf0, 0x00,
|
6
|
+
0xe0, 0x00, 0xc0, 0x00, 0x80, 0x00};
|
@@ -0,0 +1,6 @@
|
|
1
|
+
#define backArrowDis_width 16
|
2
|
+
#define backArrowDis_height 15
|
3
|
+
static unsigned char backArrowDis_bits[] = {
|
4
|
+
0x80, 0x00, 0x40, 0x00, 0xa0, 0x00, 0x50, 0x00, 0xa8, 0x00, 0x54, 0x44,
|
5
|
+
0xaa, 0x88, 0x55, 0x44, 0xaa, 0x88, 0x54, 0x44, 0xa8, 0x88, 0x50, 0x00,
|
6
|
+
0xa0, 0x00, 0x40, 0x00, 0x80, 0x00};
|
@@ -0,0 +1,112 @@
|
|
1
|
+
//========================================================================
|
2
|
+
//
|
3
|
+
// config.h
|
4
|
+
//
|
5
|
+
// Copyright 1996-2007 Glyph & Cog, LLC
|
6
|
+
//
|
7
|
+
//========================================================================
|
8
|
+
|
9
|
+
#ifndef CONFIG_H
|
10
|
+
#define CONFIG_H
|
11
|
+
|
12
|
+
//------------------------------------------------------------------------
|
13
|
+
// version
|
14
|
+
//------------------------------------------------------------------------
|
15
|
+
|
16
|
+
// xpdf version
|
17
|
+
#define xpdfVersion "3.02"
|
18
|
+
#define xpdfVersionNum 3.02
|
19
|
+
#define xpdfMajorVersion 3
|
20
|
+
#define xpdfMinorVersion 2
|
21
|
+
#define xpdfUpdateVersion 0
|
22
|
+
#define xpdfMajorVersionStr "3"
|
23
|
+
#define xpdfMinorVersionStr "2"
|
24
|
+
#define xpdfUpdateVersionStr "0"
|
25
|
+
|
26
|
+
// supported PDF version
|
27
|
+
#define supportedPDFVersionStr "1.7"
|
28
|
+
#define supportedPDFVersionNum 1.7
|
29
|
+
|
30
|
+
// copyright notice
|
31
|
+
#define xpdfCopyright "Copyright 1996-2007 Glyph & Cog, LLC"
|
32
|
+
|
33
|
+
// Windows resource file stuff
|
34
|
+
#define winxpdfVersion "WinXpdf 3.02"
|
35
|
+
#define xpdfCopyrightAmp "Copyright 1996-2007 Glyph && Cog, LLC"
|
36
|
+
|
37
|
+
//------------------------------------------------------------------------
|
38
|
+
// paper size
|
39
|
+
//------------------------------------------------------------------------
|
40
|
+
|
41
|
+
// default paper size (in points) for PostScript output
|
42
|
+
#ifdef A4_PAPER
|
43
|
+
#define defPaperWidth 595 // ISO A4 (210x297 mm)
|
44
|
+
#define defPaperHeight 842
|
45
|
+
#else
|
46
|
+
#define defPaperWidth 612 // American letter (8.5x11")
|
47
|
+
#define defPaperHeight 792
|
48
|
+
#endif
|
49
|
+
|
50
|
+
//------------------------------------------------------------------------
|
51
|
+
// config file (xpdfrc) path
|
52
|
+
//------------------------------------------------------------------------
|
53
|
+
|
54
|
+
// user config file name, relative to the user's home directory
|
55
|
+
#if defined(VMS) || (defined(WIN32) && !defined(__CYGWIN32__))
|
56
|
+
#define xpdfUserConfigFile "xpdfrc"
|
57
|
+
#else
|
58
|
+
#define xpdfUserConfigFile ".xpdfrc"
|
59
|
+
#endif
|
60
|
+
|
61
|
+
// system config file name (set via the configure script)
|
62
|
+
#ifdef SYSTEM_XPDFRC
|
63
|
+
#define xpdfSysConfigFile SYSTEM_XPDFRC
|
64
|
+
#else
|
65
|
+
// under Windows, we get the directory with the executable and then
|
66
|
+
// append this file name
|
67
|
+
#define xpdfSysConfigFile "xpdfrc"
|
68
|
+
#endif
|
69
|
+
|
70
|
+
//------------------------------------------------------------------------
|
71
|
+
// X-related constants
|
72
|
+
//------------------------------------------------------------------------
|
73
|
+
|
74
|
+
// default maximum size of color cube to allocate
|
75
|
+
#define defaultRGBCube 5
|
76
|
+
|
77
|
+
// number of fonts (combined t1lib, FreeType, X server) to cache
|
78
|
+
#define xOutFontCacheSize 64
|
79
|
+
|
80
|
+
// number of Type 3 fonts to cache
|
81
|
+
#define xOutT3FontCacheSize 8
|
82
|
+
|
83
|
+
//------------------------------------------------------------------------
|
84
|
+
// popen
|
85
|
+
//------------------------------------------------------------------------
|
86
|
+
|
87
|
+
#if defined(_MSC_VER) || defined(__BORLANDC__)
|
88
|
+
#define popen _popen
|
89
|
+
#define pclose _pclose
|
90
|
+
#endif
|
91
|
+
|
92
|
+
#if defined(VMS) || defined(VMCMS) || defined(DOS) || defined(OS2) || defined(__EMX__) || defined(WIN32) || defined(__DJGPP__) || defined(MACOS)
|
93
|
+
#define POPEN_READ_MODE "rb"
|
94
|
+
#else
|
95
|
+
#define POPEN_READ_MODE "r"
|
96
|
+
#endif
|
97
|
+
|
98
|
+
//------------------------------------------------------------------------
|
99
|
+
// Win32 stuff
|
100
|
+
//------------------------------------------------------------------------
|
101
|
+
|
102
|
+
#ifdef CDECL
|
103
|
+
#undef CDECL
|
104
|
+
#endif
|
105
|
+
|
106
|
+
#if defined(_MSC_VER) || defined(__BORLANDC__)
|
107
|
+
#define CDECL __cdecl
|
108
|
+
#else
|
109
|
+
#define CDECL
|
110
|
+
#endif
|
111
|
+
|
112
|
+
#endif
|
@@ -0,0 +1,6 @@
|
|
1
|
+
#define dblLeftArrow_width 16
|
2
|
+
#define dblLeftArrow_height 15
|
3
|
+
static unsigned char dblLeftArrow_bits[] = {
|
4
|
+
0x80, 0x80, 0xc0, 0xc0, 0xe0, 0xe0, 0xf0, 0xf0, 0xf8, 0xf8, 0xfc, 0xfc,
|
5
|
+
0xfe, 0xfe, 0xff, 0xff, 0xfe, 0xfe, 0xfc, 0xfc, 0xf8, 0xf8, 0xf0, 0xf0,
|
6
|
+
0xe0, 0xe0, 0xc0, 0xc0, 0x80, 0x80};
|
@@ -0,0 +1,6 @@
|
|
1
|
+
#define dblLeftArrowDis_width 16
|
2
|
+
#define dblLeftArrowDis_height 15
|
3
|
+
static unsigned char dblLeftArrowDis_bits[] = {
|
4
|
+
0x80, 0x80, 0x40, 0x40, 0xa0, 0xa0, 0x50, 0x50, 0xa8, 0xa8, 0x54, 0x54,
|
5
|
+
0xaa, 0xaa, 0x55, 0x55, 0xaa, 0xaa, 0x54, 0x54, 0xa8, 0xa8, 0x50, 0x50,
|
6
|
+
0xa0, 0xa0, 0x40, 0x40, 0x80, 0x80};
|
@@ -0,0 +1,6 @@
|
|
1
|
+
#define dblRightArrow_width 16
|
2
|
+
#define dblRightArrow_height 15
|
3
|
+
static unsigned char dblRightArrow_bits[] = {
|
4
|
+
0x01, 0x01, 0x03, 0x03, 0x07, 0x07, 0x0f, 0x0f, 0x1f, 0x1f, 0x3f, 0x3f,
|
5
|
+
0x7f, 0x7f, 0xff, 0xff, 0x7f, 0x7f, 0x3f, 0x3f, 0x1f, 0x1f, 0x0f, 0x0f,
|
6
|
+
0x07, 0x07, 0x03, 0x03, 0x01, 0x01};
|
@@ -0,0 +1,6 @@
|
|
1
|
+
#define dblRightArrowDis_width 16
|
2
|
+
#define dblRightArrowDis_height 15
|
3
|
+
static unsigned char dblRightArrowDis_bits[] = {
|
4
|
+
0x01, 0x01, 0x02, 0x02, 0x05, 0x05, 0x0a, 0x0a, 0x15, 0x15, 0x2a, 0x2a,
|
5
|
+
0x55, 0x55, 0xaa, 0xaa, 0x55, 0x55, 0x2a, 0x2a, 0x15, 0x15, 0x0a, 0x0a,
|
6
|
+
0x05, 0x05, 0x02, 0x02, 0x01, 0x01};
|
@@ -0,0 +1,6 @@
|
|
1
|
+
#define find_width 15
|
2
|
+
#define find_height 15
|
3
|
+
static unsigned char find_bits[] = {
|
4
|
+
0x38, 0x0e, 0x28, 0x0a, 0x2e, 0x3a, 0xfe, 0x3f, 0x7f, 0x7f, 0x61, 0x43,
|
5
|
+
0x61, 0x43, 0x61, 0x43, 0x61, 0x43, 0xe1, 0x43, 0x21, 0x42, 0x21, 0x42,
|
6
|
+
0x21, 0x42, 0x21, 0x42, 0x3f, 0x7e};
|
@@ -0,0 +1,6 @@
|
|
1
|
+
#define findDis_width 15
|
2
|
+
#define findDis_height 15
|
3
|
+
static unsigned char findDis_bits[] = {
|
4
|
+
0x10, 0x04, 0x28, 0x0a, 0x04, 0x10, 0xaa, 0x2a, 0x55, 0x55, 0x20, 0x02,
|
5
|
+
0x41, 0x41, 0x20, 0x02, 0x41, 0x41, 0xa0, 0x02, 0x01, 0x40, 0x20, 0x02,
|
6
|
+
0x01, 0x40, 0x20, 0x02, 0x15, 0x54};
|
@@ -0,0 +1,6 @@
|
|
1
|
+
#define forwardArrow_width 16
|
2
|
+
#define forwardArrow_height 15
|
3
|
+
static unsigned char forwardArrow_bits[] = {
|
4
|
+
0x00, 0x01, 0x00, 0x03, 0x00, 0x07, 0x00, 0x0f, 0x00, 0x1f, 0x33, 0x3f,
|
5
|
+
0x33, 0x7f, 0x33, 0xff, 0x33, 0x7f, 0x33, 0x3f, 0x00, 0x1f, 0x00, 0x0f,
|
6
|
+
0x00, 0x07, 0x00, 0x03, 0x00, 0x01};
|
@@ -0,0 +1,6 @@
|
|
1
|
+
#define forwardArrowDis_width 16
|
2
|
+
#define forwardArrowDis_height 15
|
3
|
+
static unsigned char forwardArrowDis_bits[] = {
|
4
|
+
0x00, 0x01, 0x00, 0x02, 0x00, 0x05, 0x00, 0x0a, 0x00, 0x15, 0x22, 0x2a,
|
5
|
+
0x11, 0x55, 0x22, 0xaa, 0x11, 0x55, 0x22, 0x2a, 0x00, 0x15, 0x00, 0x0a,
|
6
|
+
0x00, 0x05, 0x00, 0x02, 0x00, 0x01};
|
Binary file
|
Binary file
|
@@ -0,0 +1,298 @@
|
|
1
|
+
//========================================================================
|
2
|
+
//
|
3
|
+
// pdffonts.cc
|
4
|
+
//
|
5
|
+
// Copyright 2001-2007 Glyph & Cog, LLC
|
6
|
+
//
|
7
|
+
//========================================================================
|
8
|
+
|
9
|
+
#include <aconf.h>
|
10
|
+
#include <stdio.h>
|
11
|
+
#include <stdlib.h>
|
12
|
+
#include <stddef.h>
|
13
|
+
#include <string.h>
|
14
|
+
#include <math.h>
|
15
|
+
#include "parseargs.h"
|
16
|
+
#include "GString.h"
|
17
|
+
#include "gmem.h"
|
18
|
+
#include "GlobalParams.h"
|
19
|
+
#include "Error.h"
|
20
|
+
#include "Object.h"
|
21
|
+
#include "Dict.h"
|
22
|
+
#include "GfxFont.h"
|
23
|
+
#include "Annot.h"
|
24
|
+
#include "PDFDoc.h"
|
25
|
+
#include "config.h"
|
26
|
+
|
27
|
+
// NB: this must match the definition of GfxFontType in GfxFont.h.
|
28
|
+
static char *fontTypeNames[] = {
|
29
|
+
"unknown",
|
30
|
+
"Type 1",
|
31
|
+
"Type 1C",
|
32
|
+
"Type 1C (OT)",
|
33
|
+
"Type 3",
|
34
|
+
"TrueType",
|
35
|
+
"TrueType (OT)",
|
36
|
+
"CID Type 0",
|
37
|
+
"CID Type 0C",
|
38
|
+
"CID Type 0C (OT)",
|
39
|
+
"CID TrueType",
|
40
|
+
"CID TrueType (OT)"
|
41
|
+
};
|
42
|
+
|
43
|
+
static void scanFonts(Dict *resDict, PDFDoc *doc);
|
44
|
+
static void scanFont(GfxFont *font, PDFDoc *doc);
|
45
|
+
|
46
|
+
static int firstPage = 1;
|
47
|
+
static int lastPage = 0;
|
48
|
+
static char ownerPassword[33] = "\001";
|
49
|
+
static char userPassword[33] = "\001";
|
50
|
+
static char cfgFileName[256] = "";
|
51
|
+
static GBool printVersion = gFalse;
|
52
|
+
static GBool printHelp = gFalse;
|
53
|
+
|
54
|
+
static ArgDesc argDesc[] = {
|
55
|
+
{"-f", argInt, &firstPage, 0,
|
56
|
+
"first page to examine"},
|
57
|
+
{"-l", argInt, &lastPage, 0,
|
58
|
+
"last page to examine"},
|
59
|
+
{"-opw", argString, ownerPassword, sizeof(ownerPassword),
|
60
|
+
"owner password (for encrypted files)"},
|
61
|
+
{"-upw", argString, userPassword, sizeof(userPassword),
|
62
|
+
"user password (for encrypted files)"},
|
63
|
+
{"-cfg", argString, cfgFileName, sizeof(cfgFileName),
|
64
|
+
"configuration file to use in place of .xpdfrc"},
|
65
|
+
{"-v", argFlag, &printVersion, 0,
|
66
|
+
"print copyright and version info"},
|
67
|
+
{"-h", argFlag, &printHelp, 0,
|
68
|
+
"print usage information"},
|
69
|
+
{"-help", argFlag, &printHelp, 0,
|
70
|
+
"print usage information"},
|
71
|
+
{"--help", argFlag, &printHelp, 0,
|
72
|
+
"print usage information"},
|
73
|
+
{"-?", argFlag, &printHelp, 0,
|
74
|
+
"print usage information"},
|
75
|
+
{NULL}
|
76
|
+
};
|
77
|
+
|
78
|
+
static Ref *fonts;
|
79
|
+
static int fontsLen;
|
80
|
+
static int fontsSize;
|
81
|
+
|
82
|
+
int main(int argc, char *argv[]) {
|
83
|
+
PDFDoc *doc;
|
84
|
+
GString *fileName;
|
85
|
+
GString *ownerPW, *userPW;
|
86
|
+
GBool ok;
|
87
|
+
Page *page;
|
88
|
+
Dict *resDict;
|
89
|
+
Annots *annots;
|
90
|
+
Object obj1, obj2;
|
91
|
+
int pg, i;
|
92
|
+
int exitCode;
|
93
|
+
|
94
|
+
exitCode = 99;
|
95
|
+
|
96
|
+
// parse args
|
97
|
+
ok = parseArgs(argDesc, &argc, argv);
|
98
|
+
if (!ok || argc != 2 || printVersion || printHelp) {
|
99
|
+
fprintf(stderr, "pdffonts version %s\n", xpdfVersion);
|
100
|
+
fprintf(stderr, "%s\n", xpdfCopyright);
|
101
|
+
if (!printVersion) {
|
102
|
+
printUsage("pdffonts", "<PDF-file>", argDesc);
|
103
|
+
}
|
104
|
+
goto err0;
|
105
|
+
}
|
106
|
+
fileName = new GString(argv[1]);
|
107
|
+
|
108
|
+
// read config file
|
109
|
+
globalParams = new GlobalParams(cfgFileName);
|
110
|
+
|
111
|
+
// open PDF file
|
112
|
+
if (ownerPassword[0] != '\001') {
|
113
|
+
ownerPW = new GString(ownerPassword);
|
114
|
+
} else {
|
115
|
+
ownerPW = NULL;
|
116
|
+
}
|
117
|
+
if (userPassword[0] != '\001') {
|
118
|
+
userPW = new GString(userPassword);
|
119
|
+
} else {
|
120
|
+
userPW = NULL;
|
121
|
+
}
|
122
|
+
doc = new PDFDoc(fileName, ownerPW, userPW);
|
123
|
+
if (userPW) {
|
124
|
+
delete userPW;
|
125
|
+
}
|
126
|
+
if (ownerPW) {
|
127
|
+
delete ownerPW;
|
128
|
+
}
|
129
|
+
if (!doc->isOk()) {
|
130
|
+
exitCode = 1;
|
131
|
+
goto err1;
|
132
|
+
}
|
133
|
+
|
134
|
+
// get page range
|
135
|
+
if (firstPage < 1) {
|
136
|
+
firstPage = 1;
|
137
|
+
}
|
138
|
+
if (lastPage < 1 || lastPage > doc->getNumPages()) {
|
139
|
+
lastPage = doc->getNumPages();
|
140
|
+
}
|
141
|
+
|
142
|
+
// scan the fonts
|
143
|
+
printf("name type emb sub uni object ID\n");
|
144
|
+
printf("------------------------------------ ----------------- --- --- --- ---------\n");
|
145
|
+
fonts = NULL;
|
146
|
+
fontsLen = fontsSize = 0;
|
147
|
+
for (pg = firstPage; pg <= lastPage; ++pg) {
|
148
|
+
page = doc->getCatalog()->getPage(pg);
|
149
|
+
if ((resDict = page->getResourceDict())) {
|
150
|
+
scanFonts(resDict, doc);
|
151
|
+
}
|
152
|
+
annots = new Annots(doc->getXRef(), doc->getCatalog(),
|
153
|
+
page->getAnnots(&obj1));
|
154
|
+
obj1.free();
|
155
|
+
for (i = 0; i < annots->getNumAnnots(); ++i) {
|
156
|
+
if (annots->getAnnot(i)->getAppearance(&obj1)->isStream()) {
|
157
|
+
obj1.streamGetDict()->lookup("Resources", &obj2);
|
158
|
+
if (obj2.isDict()) {
|
159
|
+
scanFonts(obj2.getDict(), doc);
|
160
|
+
}
|
161
|
+
obj2.free();
|
162
|
+
}
|
163
|
+
obj1.free();
|
164
|
+
}
|
165
|
+
delete annots;
|
166
|
+
}
|
167
|
+
|
168
|
+
exitCode = 0;
|
169
|
+
|
170
|
+
// clean up
|
171
|
+
gfree(fonts);
|
172
|
+
err1:
|
173
|
+
delete doc;
|
174
|
+
delete globalParams;
|
175
|
+
err0:
|
176
|
+
|
177
|
+
// check for memory leaks
|
178
|
+
Object::memCheck(stderr);
|
179
|
+
gMemReport(stderr);
|
180
|
+
|
181
|
+
return exitCode;
|
182
|
+
}
|
183
|
+
|
184
|
+
static void scanFonts(Dict *resDict, PDFDoc *doc) {
|
185
|
+
Object obj1, obj2, xObjDict, xObj, resObj;
|
186
|
+
Ref r;
|
187
|
+
GfxFontDict *gfxFontDict;
|
188
|
+
GfxFont *font;
|
189
|
+
int i;
|
190
|
+
|
191
|
+
// scan the fonts in this resource dictionary
|
192
|
+
gfxFontDict = NULL;
|
193
|
+
resDict->lookupNF("Font", &obj1);
|
194
|
+
if (obj1.isRef()) {
|
195
|
+
obj1.fetch(doc->getXRef(), &obj2);
|
196
|
+
if (obj2.isDict()) {
|
197
|
+
r = obj1.getRef();
|
198
|
+
gfxFontDict = new GfxFontDict(doc->getXRef(), &r, obj2.getDict());
|
199
|
+
}
|
200
|
+
obj2.free();
|
201
|
+
} else if (obj1.isDict()) {
|
202
|
+
gfxFontDict = new GfxFontDict(doc->getXRef(), NULL, obj1.getDict());
|
203
|
+
}
|
204
|
+
if (gfxFontDict) {
|
205
|
+
for (i = 0; i < gfxFontDict->getNumFonts(); ++i) {
|
206
|
+
if ((font = gfxFontDict->getFont(i))) {
|
207
|
+
scanFont(font, doc);
|
208
|
+
}
|
209
|
+
}
|
210
|
+
delete gfxFontDict;
|
211
|
+
}
|
212
|
+
obj1.free();
|
213
|
+
|
214
|
+
// recursively scan any resource dictionaries in objects in this
|
215
|
+
// resource dictionary
|
216
|
+
resDict->lookup("XObject", &xObjDict);
|
217
|
+
if (xObjDict.isDict()) {
|
218
|
+
for (i = 0; i < xObjDict.dictGetLength(); ++i) {
|
219
|
+
xObjDict.dictGetVal(i, &xObj);
|
220
|
+
if (xObj.isStream()) {
|
221
|
+
xObj.streamGetDict()->lookup("Resources", &resObj);
|
222
|
+
if (resObj.isDict()) {
|
223
|
+
scanFonts(resObj.getDict(), doc);
|
224
|
+
}
|
225
|
+
resObj.free();
|
226
|
+
}
|
227
|
+
xObj.free();
|
228
|
+
}
|
229
|
+
}
|
230
|
+
xObjDict.free();
|
231
|
+
}
|
232
|
+
|
233
|
+
static void scanFont(GfxFont *font, PDFDoc *doc) {
|
234
|
+
Ref fontRef, embRef;
|
235
|
+
Object fontObj, toUnicodeObj;
|
236
|
+
GString *name;
|
237
|
+
GBool emb, subset, hasToUnicode;
|
238
|
+
int i;
|
239
|
+
|
240
|
+
fontRef = *font->getID();
|
241
|
+
|
242
|
+
// check for an already-seen font
|
243
|
+
for (i = 0; i < fontsLen; ++i) {
|
244
|
+
if (fontRef.num == fonts[i].num && fontRef.gen == fonts[i].gen) {
|
245
|
+
return;
|
246
|
+
}
|
247
|
+
}
|
248
|
+
|
249
|
+
// font name
|
250
|
+
name = font->getOrigName();
|
251
|
+
|
252
|
+
// check for an embedded font
|
253
|
+
if (font->getType() == fontType3) {
|
254
|
+
emb = gTrue;
|
255
|
+
} else {
|
256
|
+
emb = font->getEmbeddedFontID(&embRef);
|
257
|
+
}
|
258
|
+
|
259
|
+
// look for a ToUnicode map
|
260
|
+
hasToUnicode = gFalse;
|
261
|
+
if (doc->getXRef()->fetch(fontRef.num, fontRef.gen, &fontObj)->isDict()) {
|
262
|
+
hasToUnicode = fontObj.dictLookup("ToUnicode", &toUnicodeObj)->isStream();
|
263
|
+
toUnicodeObj.free();
|
264
|
+
}
|
265
|
+
fontObj.free();
|
266
|
+
|
267
|
+
// check for a font subset name: capital letters followed by a '+'
|
268
|
+
// sign
|
269
|
+
subset = gFalse;
|
270
|
+
if (name) {
|
271
|
+
for (i = 0; i < name->getLength(); ++i) {
|
272
|
+
if (name->getChar(i) < 'A' || name->getChar(i) > 'Z') {
|
273
|
+
break;
|
274
|
+
}
|
275
|
+
}
|
276
|
+
subset = i > 0 && i < name->getLength() && name->getChar(i) == '+';
|
277
|
+
}
|
278
|
+
|
279
|
+
// print the font info
|
280
|
+
printf("%-36s %-17s %-3s %-3s %-3s",
|
281
|
+
name ? name->getCString() : "[none]",
|
282
|
+
fontTypeNames[font->getType()],
|
283
|
+
emb ? "yes" : "no",
|
284
|
+
subset ? "yes" : "no",
|
285
|
+
hasToUnicode ? "yes" : "no");
|
286
|
+
if (fontRef.gen >= 100000) {
|
287
|
+
printf(" [none]\n");
|
288
|
+
} else {
|
289
|
+
printf(" %6d %2d\n", fontRef.num, fontRef.gen);
|
290
|
+
}
|
291
|
+
|
292
|
+
// add this font to the list
|
293
|
+
if (fontsLen == fontsSize) {
|
294
|
+
fontsSize += 32;
|
295
|
+
fonts = (Ref *)greallocn(fonts, fontsSize, sizeof(Ref));
|
296
|
+
}
|
297
|
+
fonts[fontsLen++] = *font->getID();
|
298
|
+
}
|