pdf2json 0.1.0
Sign up to get free protection for your applications and to get access to all the features.
- 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,67 @@
|
|
1
|
+
/* @(#)dirent.h 1.7 89/06/25 SMI */
|
2
|
+
|
3
|
+
/*
|
4
|
+
* Filesystem-independent directory information.
|
5
|
+
*/
|
6
|
+
|
7
|
+
#ifndef __dirent_h
|
8
|
+
#define __dirent_h
|
9
|
+
|
10
|
+
#ifdef __cplusplus
|
11
|
+
extern "C" {
|
12
|
+
#endif
|
13
|
+
|
14
|
+
/* Make sure we don't get the V7 RTL dirent functions. These are broken. */
|
15
|
+
|
16
|
+
#ifndef __CRTL_VER
|
17
|
+
# define __CRTL_VER __VMS_VER
|
18
|
+
#endif
|
19
|
+
#if __CRTL_VER >= 70000000
|
20
|
+
#include <dirent.h>
|
21
|
+
#endif
|
22
|
+
|
23
|
+
#include <types.h>
|
24
|
+
|
25
|
+
#define opendir goo_opendir
|
26
|
+
#define readdir goo_readdir
|
27
|
+
#define closedir goo_closedir
|
28
|
+
#define seekdir goo_seekdir
|
29
|
+
#define telldir goo_telldir
|
30
|
+
#define rewinddir goo_rewindir
|
31
|
+
#define DIR GOO_DIR
|
32
|
+
|
33
|
+
#ifndef _POSIX_SOURCE
|
34
|
+
#define d_ino d_fileno /* compatability */
|
35
|
+
#ifndef NULL
|
36
|
+
#define NULL 0
|
37
|
+
#endif
|
38
|
+
#endif /* !_POSIX_SOURCE */
|
39
|
+
|
40
|
+
/*
|
41
|
+
* Definitions for library routines operating on directories.
|
42
|
+
*/
|
43
|
+
typedef struct __dirdesc {
|
44
|
+
unsigned long dd_fd; /* file descriptor */
|
45
|
+
long dd_loc; /* buf offset of entry from last readddir() */
|
46
|
+
long dd_size; /* amount of valid data in buffer */
|
47
|
+
long dd_bsize; /* amount of entries read at a time */
|
48
|
+
long dd_off; /* Current offset in dir (for telldir) */
|
49
|
+
char *dd_buf; /* directory data buffer */
|
50
|
+
} DIR;
|
51
|
+
|
52
|
+
#include "vms_sys_dirent.h"
|
53
|
+
|
54
|
+
extern DIR *opendir(char *dirname);
|
55
|
+
extern struct dirent *readdir(DIR *dirp);
|
56
|
+
extern void closedir(DIR *dirp);
|
57
|
+
#ifndef _POSIX_SOURCE
|
58
|
+
extern void seekdir(DIR *dirp, int loc);
|
59
|
+
extern long telldir(DIR *dirp);
|
60
|
+
#endif /* POSIX_SOURCE */
|
61
|
+
extern void rewinddir(DIR *dirp);
|
62
|
+
|
63
|
+
#ifdef __cplusplus
|
64
|
+
}
|
65
|
+
#endif
|
66
|
+
|
67
|
+
#endif /* !__dirent_h */
|
@@ -0,0 +1,82 @@
|
|
1
|
+
$!========================================================================
|
2
|
+
$!
|
3
|
+
$! Goo library compile script for VMS.
|
4
|
+
$!
|
5
|
+
$! Written by Patrick Moreau, Martin P.J. Zinser.
|
6
|
+
$!
|
7
|
+
$! Copyright 1996-2003 Glyph & Cog, LLC
|
8
|
+
$!
|
9
|
+
$!========================================================================
|
10
|
+
$!
|
11
|
+
$ GOO_CXXOBJS = "GString.obj,gmempp.obj,gfile.obj,ghash.obj,glist.obj"
|
12
|
+
$ GOO_CCOBJS = "gmem.obj,parseargs.obj,vms_directory.obj,vms_unix_times.obj"
|
13
|
+
$!
|
14
|
+
$ if f$extract(1,3,f$getsyi("Version")) .lts. "7.0"
|
15
|
+
$ then
|
16
|
+
$ GOO_CCOBJS = GOO_CCOBJS + ",vms_unlink.obj"
|
17
|
+
$ endif
|
18
|
+
$!
|
19
|
+
$ i = 0
|
20
|
+
$ j = 0
|
21
|
+
$COMPILE_CXX_LOOP:
|
22
|
+
$ file = f$element(i, ",",GOO_CXXOBJS)
|
23
|
+
$ if file .eqs. "," then goto COMPILE_CC_LOOP
|
24
|
+
$ i = i + 1
|
25
|
+
$ name = f$parse(file,,,"NAME")
|
26
|
+
$ call make 'file "CXXCOMP ''name'.cc" -
|
27
|
+
'name'.cc
|
28
|
+
$ goto COMPILE_CXX_LOOP
|
29
|
+
$!
|
30
|
+
$COMPILE_CC_LOOP:
|
31
|
+
$ file = f$element(j, ",",GOO_CCOBJS)
|
32
|
+
$ if file .eqs. "," then goto COMPILE_END
|
33
|
+
$ j = j + 1
|
34
|
+
$ name = f$parse(file,,,"NAME")
|
35
|
+
$ call make 'file "CCOMP ''name'.c" -
|
36
|
+
'name'.c
|
37
|
+
$ goto COMPILE_CC_LOOP
|
38
|
+
$!
|
39
|
+
$COMPILE_END:
|
40
|
+
$ call make libgoo.olb "lib/cre libgoo.olb ''GOO_CXXOBJS',''GOO_CCOBJS'" *.obj
|
41
|
+
$!
|
42
|
+
$ exit
|
43
|
+
$!
|
44
|
+
$MAKE: SUBROUTINE !SUBROUTINE TO CHECK DEPENDENCIES
|
45
|
+
$ V = 'F$Verify(0)
|
46
|
+
$! P1 = What we are trying to make
|
47
|
+
$! P2 = Command to make it
|
48
|
+
$! P3 - P8 What it depends on
|
49
|
+
$
|
50
|
+
$ If F$Search(P1) .Eqs. "" Then Goto Makeit
|
51
|
+
$ Time = F$CvTime(F$File(P1,"RDT"))
|
52
|
+
$arg=3
|
53
|
+
$Loop:
|
54
|
+
$ Argument = P'arg
|
55
|
+
$ If Argument .Eqs. "" Then Goto Exit
|
56
|
+
$ El=0
|
57
|
+
$Loop2:
|
58
|
+
$ File = F$Element(El," ",Argument)
|
59
|
+
$ If File .Eqs. " " Then Goto Endl
|
60
|
+
$ AFile = ""
|
61
|
+
$Loop3:
|
62
|
+
$ OFile = AFile
|
63
|
+
$ AFile = F$Search(File)
|
64
|
+
$ If AFile .Eqs. "" .Or. AFile .Eqs. OFile Then Goto NextEl
|
65
|
+
$ If F$CvTime(F$File(AFile,"RDT")) .Ges. Time Then Goto Makeit
|
66
|
+
$ Goto Loop3
|
67
|
+
$NextEL:
|
68
|
+
$ El = El + 1
|
69
|
+
$ Goto Loop2
|
70
|
+
$EndL:
|
71
|
+
$ arg=arg+1
|
72
|
+
$ If arg .Le. 8 Then Goto Loop
|
73
|
+
$ Goto Exit
|
74
|
+
$
|
75
|
+
$Makeit:
|
76
|
+
$ VV=F$VERIFY(0)
|
77
|
+
$ write sys$output P2
|
78
|
+
$ 'P2
|
79
|
+
$ VV='F$Verify(VV)
|
80
|
+
$Exit:
|
81
|
+
$ If V Then Set Verify
|
82
|
+
$ENDSUBROUTINE
|
@@ -0,0 +1,54 @@
|
|
1
|
+
/* @(#)dirent.h 1.4 89/06/16 SMI */
|
2
|
+
|
3
|
+
/*
|
4
|
+
* Filesystem-independent directory information.
|
5
|
+
* Directory entry structures are of variable length.
|
6
|
+
* Each directory entry is a struct dirent containing its file number, the
|
7
|
+
* offset of the next entry (a cookie interpretable only the filesystem
|
8
|
+
* type that generated it), the length of the entry, and the length of the
|
9
|
+
* name contained in the entry. These are followed by the name. The
|
10
|
+
* entire entry is padded with null bytes to a 4 byte boundary. All names
|
11
|
+
* are guaranteed null terminated. The maximum length of a name in a
|
12
|
+
* directory is MAXNAMLEN, plus a null byte.
|
13
|
+
*/
|
14
|
+
|
15
|
+
#ifndef __sys_dirent_h
|
16
|
+
#define __sys_dirent_h
|
17
|
+
|
18
|
+
#ifdef __cplusplus
|
19
|
+
extern "C" {
|
20
|
+
#endif
|
21
|
+
|
22
|
+
#define dirent GOO_dirent
|
23
|
+
|
24
|
+
struct dirent {
|
25
|
+
long d_off; /* offset of next disk dir entry */
|
26
|
+
unsigned long d_fileno; /* file number of entry */
|
27
|
+
unsigned short d_reclen; /* length of this record */
|
28
|
+
unsigned short d_namlen; /* length of string in d_name */
|
29
|
+
char d_name[255+1]; /* name (up to MAXNAMLEN + 1) */
|
30
|
+
};
|
31
|
+
|
32
|
+
#ifndef _POSIX_SOURCE
|
33
|
+
/*
|
34
|
+
* It's unlikely to change, but make sure that sizeof d_name above is
|
35
|
+
* at least MAXNAMLEN + 1 (more may be added for padding).
|
36
|
+
*/
|
37
|
+
#define MAXNAMLEN 255
|
38
|
+
/*
|
39
|
+
* The macro DIRSIZ(dp) gives the minimum amount of space required to represent
|
40
|
+
* a directory entry. For any directory entry dp->d_reclen >= DIRSIZ(dp).
|
41
|
+
* Specific filesystem types may use this macro to construct the value
|
42
|
+
* for d_reclen.
|
43
|
+
*/
|
44
|
+
#undef DIRSIZ
|
45
|
+
#define DIRSIZ(dp) \
|
46
|
+
(((sizeof(struct dirent) - (MAXNAMLEN+1) + ((dp)->d_namlen+1)) +3) & ~3)
|
47
|
+
|
48
|
+
#endif /* !_POSIX_SOURCE */
|
49
|
+
|
50
|
+
#ifdef __cplusplus
|
51
|
+
}
|
52
|
+
#endif
|
53
|
+
|
54
|
+
#endif /* !__sys_dirent_h */
|
@@ -0,0 +1,102 @@
|
|
1
|
+
/* @(#)time.h 2.9 87/01/17 SMI; from UCB 7.1 6/4/86 */
|
2
|
+
|
3
|
+
/*
|
4
|
+
Definitions of various structures used on UNIX for
|
5
|
+
time-related syscalls.
|
6
|
+
*/
|
7
|
+
|
8
|
+
/*
|
9
|
+
* Copyright (c) 1982, 1986 Regents of the University of California.
|
10
|
+
* All rights reserved. The Berkeley software License Agreement
|
11
|
+
* specifies the terms and conditions for redistribution.
|
12
|
+
*/
|
13
|
+
|
14
|
+
#ifndef _UNIX_TIME_
|
15
|
+
#define _UNIX_TIME_
|
16
|
+
|
17
|
+
#ifdef __cplusplus
|
18
|
+
extern "C" {
|
19
|
+
#endif
|
20
|
+
|
21
|
+
/*
|
22
|
+
* Structure returned by gettimeofday(2) system call,
|
23
|
+
* and used in other calls.
|
24
|
+
*/
|
25
|
+
#ifndef __DECC
|
26
|
+
struct timeval
|
27
|
+
{
|
28
|
+
long tv_sec; /* seconds */
|
29
|
+
long tv_usec; /* and microseconds */
|
30
|
+
};
|
31
|
+
#else
|
32
|
+
#if (__DECC_VER < 50200000) && (__VMS_VER < 70000000)
|
33
|
+
struct timeval
|
34
|
+
{
|
35
|
+
long tv_sec; /* seconds */
|
36
|
+
long tv_usec; /* and microseconds */
|
37
|
+
};
|
38
|
+
#endif /* __DECC_VER */
|
39
|
+
#endif /* __DECC */
|
40
|
+
struct timezone
|
41
|
+
{
|
42
|
+
int tz_minuteswest; /* minutes west of Greenwich */
|
43
|
+
int tz_dsttime; /* type of dst correction */
|
44
|
+
};
|
45
|
+
|
46
|
+
#define DST_NONE 0 /* not on dst */
|
47
|
+
#define DST_USA 1 /* USA style dst */
|
48
|
+
#define DST_AUST 2 /* Australian style dst */
|
49
|
+
#define DST_WET 3 /* Western European dst */
|
50
|
+
#define DST_MET 4 /* Middle European dst */
|
51
|
+
#define DST_EET 5 /* Eastern European dst */
|
52
|
+
#define DST_CAN 6 /* Canada */
|
53
|
+
#define DST_GB 7 /* Great Britain and Eire */
|
54
|
+
#define DST_RUM 8 /* Rumania */
|
55
|
+
#define DST_TUR 9 /* Turkey */
|
56
|
+
#define DST_AUSTALT 10 /* Australian style with shift in 1986 */
|
57
|
+
|
58
|
+
/*
|
59
|
+
* Operations on timevals.
|
60
|
+
*
|
61
|
+
* NB: timercmp does not work for >= or <=.
|
62
|
+
*/
|
63
|
+
#define timerisset(tvp) ((tvp)->tv_sec || (tvp)->tv_usec)
|
64
|
+
#define timercmp(tvp, uvp, cmp) \
|
65
|
+
((tvp)->tv_sec cmp (uvp)->tv_sec || \
|
66
|
+
(tvp)->tv_sec == (uvp)->tv_sec && (tvp)->tv_usec cmp (uvp)->tv_usec)
|
67
|
+
#define timerclear(tvp) (tvp)->tv_sec = (tvp)->tv_usec = 0
|
68
|
+
|
69
|
+
/*
|
70
|
+
* Names of the interval timers, and structure
|
71
|
+
* defining a timer setting.
|
72
|
+
*/
|
73
|
+
#define ITIMER_REAL 0
|
74
|
+
#define ITIMER_VIRTUAL 1
|
75
|
+
#define ITIMER_PROF 2
|
76
|
+
|
77
|
+
#ifndef __DECC
|
78
|
+
struct itimerval
|
79
|
+
{
|
80
|
+
struct timeval it_interval; /* timer interval */
|
81
|
+
struct timeval it_value; /* current value */
|
82
|
+
};
|
83
|
+
#else
|
84
|
+
#if (__DECC_VER < 50200000) && (__VMS_VER < 70000000)
|
85
|
+
struct itimerval
|
86
|
+
{
|
87
|
+
struct timeval it_interval; /* timer interval */
|
88
|
+
struct timeval it_value; /* current value */
|
89
|
+
};
|
90
|
+
#endif /* __DECC_VER */
|
91
|
+
#endif /* __DECC */
|
92
|
+
|
93
|
+
#ifndef KERNEL
|
94
|
+
#include <time.h>
|
95
|
+
#endif
|
96
|
+
|
97
|
+
#ifdef __cplusplus
|
98
|
+
}
|
99
|
+
#endif
|
100
|
+
|
101
|
+
#endif /*!_UNIX_TIME_*/
|
102
|
+
|
@@ -0,0 +1,42 @@
|
|
1
|
+
/*
|
2
|
+
* UNIX-style Time Functions
|
3
|
+
*
|
4
|
+
*/
|
5
|
+
#include <stdio.h>
|
6
|
+
#include <signal.h>
|
7
|
+
#include <time.h>
|
8
|
+
#include "vms_unix_time.h"
|
9
|
+
|
10
|
+
/*
|
11
|
+
* gettimeofday(2) - Returns the current time
|
12
|
+
*
|
13
|
+
* NOTE: The timezone portion is useless on VMS.
|
14
|
+
* Even on UNIX, it is only provided for backwards
|
15
|
+
* compatibilty and is not guaranteed to be correct.
|
16
|
+
*/
|
17
|
+
|
18
|
+
#if (__VMS_VER < 70000000)
|
19
|
+
int gettimeofday(tv, tz)
|
20
|
+
struct timeval *tv;
|
21
|
+
struct timezone *tz;
|
22
|
+
{
|
23
|
+
timeb_t tmp_time;
|
24
|
+
|
25
|
+
ftime(&tmp_time);
|
26
|
+
|
27
|
+
if (tv != NULL)
|
28
|
+
{
|
29
|
+
tv->tv_sec = tmp_time.time;
|
30
|
+
tv->tv_usec = tmp_time.millitm * 1000;
|
31
|
+
}
|
32
|
+
|
33
|
+
if (tz != NULL)
|
34
|
+
{
|
35
|
+
tz->tz_minuteswest = tmp_time.timezone;
|
36
|
+
tz->tz_dsttime = tmp_time.dstflag;
|
37
|
+
}
|
38
|
+
|
39
|
+
return (0);
|
40
|
+
|
41
|
+
} /*** End gettimeofday() ***/
|
42
|
+
#endif
|
@@ -0,0 +1,22 @@
|
|
1
|
+
/*
|
2
|
+
* vms_unlink.c
|
3
|
+
*
|
4
|
+
* A UNIX-style unlink() function for VMS.
|
5
|
+
*
|
6
|
+
* Thanks to Patrick Moreau (pmoreau@cena.dgac.fr).
|
7
|
+
*/
|
8
|
+
|
9
|
+
#include <descrip.h>
|
10
|
+
#include <string.h>
|
11
|
+
#include <lib$routines.h>
|
12
|
+
|
13
|
+
int unlink(char *filename) {
|
14
|
+
static struct dsc$descriptor_s file_desc;
|
15
|
+
|
16
|
+
file_desc.dsc$w_length = strlen(filename);
|
17
|
+
file_desc.dsc$b_dtype = DSC$K_DTYPE_T;
|
18
|
+
file_desc.dsc$b_class = DSC$K_CLASS_S;
|
19
|
+
file_desc.dsc$a_pointer= filename;
|
20
|
+
|
21
|
+
return (lib$delete_file(&file_desc));
|
22
|
+
}
|
@@ -0,0 +1,199 @@
|
|
1
|
+
set CC=cl
|
2
|
+
set FPFLAGS=/I..\freetype\include\freetype.win32 /I..\freetype.win32\include\ /I..\freetype.win32\lib
|
3
|
+
set CFLAGS=/DWIN32 %FPFLAGS% /I.. /I..\splash /I..\goo /I..\fofi /I..\xpdf /O2 /nologo
|
4
|
+
|
5
|
+
set CXX=cl
|
6
|
+
|
7
|
+
set CXXFLAGS=%CFLAGS% /TP
|
8
|
+
|
9
|
+
set LIBPROG=lib
|
10
|
+
set FTLIBS=-lfreetype
|
11
|
+
|
12
|
+
|
13
|
+
copy aconf-win32.h aconf.h
|
14
|
+
|
15
|
+
|
16
|
+
|
17
|
+
cd goo
|
18
|
+
|
19
|
+
%CXX% %CXXFLAGS% /c GHash.cc
|
20
|
+
|
21
|
+
%CXX% %CXXFLAGS% /c GList.cc
|
22
|
+
|
23
|
+
%CXX% %CXXFLAGS% /c GString.cc
|
24
|
+
|
25
|
+
%CXX% %CXXFLAGS% /c gmempp.cc
|
26
|
+
|
27
|
+
%CXX% %CXXFLAGS% /c gfile.cc
|
28
|
+
|
29
|
+
%CC% %CFLAGS% /c gmem.cc
|
30
|
+
|
31
|
+
%CC% %CFLAGS% /c parseargs.c
|
32
|
+
|
33
|
+
%LIBPROG% /nologo /out:libGoo.lib GHash.obj GList.obj GString.obj gmempp.obj gfile.obj gmem.obj parseargs.obj
|
34
|
+
|
35
|
+
|
36
|
+
|
37
|
+
cd ..\splash
|
38
|
+
|
39
|
+
%CXX% %CXXFLAGS% /c Splash.cc
|
40
|
+
|
41
|
+
%CXX% %CXXFLAGS% /c SplashBitmap.cc
|
42
|
+
|
43
|
+
%CXX% %CXXFLAGS% /c SplashClip.cc
|
44
|
+
|
45
|
+
%CXX% %CXXFLAGS% /c SplashFTFont.cc
|
46
|
+
|
47
|
+
%CXX% %CXXFLAGS% /c SplashFTFontEngine.cc
|
48
|
+
|
49
|
+
%CXX% %CXXFLAGS% /c SplashFTFontFile.cc
|
50
|
+
|
51
|
+
%CXX% %CXXFLAGS% /c SplashFont.cc
|
52
|
+
|
53
|
+
%CXX% %CXXFLAGS% /c SplashFontEngine.cc
|
54
|
+
|
55
|
+
%CXX% %CXXFLAGS% /c SplashFontFile.cc
|
56
|
+
|
57
|
+
%CXX% %CXXFLAGS% /c SplashFontFileID.cc
|
58
|
+
|
59
|
+
%CXX% %CXXFLAGS% /c SplashPath.cc
|
60
|
+
|
61
|
+
%CXX% %CXXFLAGS% /c SplashPattern.cc
|
62
|
+
|
63
|
+
%CXX% %CXXFLAGS% /c SplashScreen.cc
|
64
|
+
|
65
|
+
%CXX% %CXXFLAGS% /c SplashState.cc
|
66
|
+
|
67
|
+
%CXX% %CXXFLAGS% /c SplashT1Font.cc
|
68
|
+
|
69
|
+
%CXX% %CXXFLAGS% /c SplashT1FontEngine.cc
|
70
|
+
|
71
|
+
%CXX% %CXXFLAGS% /c SplashT1FontFile.cc
|
72
|
+
|
73
|
+
%CXX% %CXXFLAGS% /c SplashXPath.cc
|
74
|
+
|
75
|
+
%CXX% %CXXFLAGS% /c SplashXPathScanner.cc
|
76
|
+
|
77
|
+
%LIBPROG% /nologo /out:libsplash.lib Splash.obj SplashBitmap.obj SplashClip.obj SplashFTFont.obj SplashFTFontEngine.obj SplashFTFontFile.obj SplashFont.obj SplashFontEngine.obj SplashFontFile.obj SplashFontFileID.obj SplashPath.obj SplashPattern.obj SplashScreen.obj SplashState.obj SplashT1Font.obj SplashT1FontEngine.obj SplashT1FontFile.obj SplashXPath.obj SplashXPathScanner.obj
|
78
|
+
|
79
|
+
|
80
|
+
|
81
|
+
cd ..\fofi
|
82
|
+
|
83
|
+
%CXX% %CXXFLAGS% /c FoFiBase.cc
|
84
|
+
|
85
|
+
%CXX% %CXXFLAGS% /c FoFiEncodings.cc
|
86
|
+
|
87
|
+
%CXX% %CXXFLAGS% /c FoFiTrueType.cc
|
88
|
+
|
89
|
+
%CXX% %CXXFLAGS% /c FoFiType1.cc
|
90
|
+
|
91
|
+
%CXX% %CXXFLAGS% /c FoFiType1C.cc
|
92
|
+
|
93
|
+
%LIBPROG% /nologo /out:libfofi.lib FoFiBase.obj FoFiEncodings.obj FoFiTrueType.obj FoFiType1.obj FoFiType1C.obj
|
94
|
+
|
95
|
+
|
96
|
+
|
97
|
+
cd ..\xpdf
|
98
|
+
|
99
|
+
%CXX% %CXXFLAGS% /c Annot.cc
|
100
|
+
|
101
|
+
%CXX% %CXXFLAGS% /c Array.cc
|
102
|
+
|
103
|
+
%CXX% %CXXFLAGS% /c BuiltinFont.cc
|
104
|
+
|
105
|
+
%CXX% %CXXFLAGS% /c BuiltinFontTables.cc
|
106
|
+
|
107
|
+
%CXX% %CXXFLAGS% /c CMap.cc
|
108
|
+
|
109
|
+
%CXX% %CXXFLAGS% /c Catalog.cc
|
110
|
+
|
111
|
+
%CXX% %CXXFLAGS% /c CharCodeToUnicode.cc
|
112
|
+
|
113
|
+
%CXX% %CXXFLAGS% /c Decrypt.cc
|
114
|
+
|
115
|
+
%CXX% %CXXFLAGS% /c Dict.cc
|
116
|
+
|
117
|
+
%CXX% %CXXFLAGS% /c Error.cc
|
118
|
+
|
119
|
+
%CXX% %CXXFLAGS% /c FontEncodingTables.cc
|
120
|
+
|
121
|
+
%CXX% %CXXFLAGS% /c Function.cc
|
122
|
+
|
123
|
+
%CXX% %CXXFLAGS% /c Gfx.cc
|
124
|
+
|
125
|
+
%CXX% %CXXFLAGS% /c GfxFont.cc
|
126
|
+
|
127
|
+
%CXX% %CXXFLAGS% /c GfxState.cc
|
128
|
+
|
129
|
+
%CXX% %CXXFLAGS% /c GlobalParams.cc
|
130
|
+
|
131
|
+
%CXX% %CXXFLAGS% /c JArithmeticDecoder.cc
|
132
|
+
|
133
|
+
%CXX% %CXXFLAGS% /c JBIG2Stream.cc
|
134
|
+
|
135
|
+
%CXX% %CXXFLAGS% /c JPXStream.cc
|
136
|
+
|
137
|
+
%CXX% %CXXFLAGS% /c Lexer.cc
|
138
|
+
|
139
|
+
%CXX% %CXXFLAGS% /c Link.cc
|
140
|
+
|
141
|
+
%CXX% %CXXFLAGS% /c PSTokenizer.cc
|
142
|
+
|
143
|
+
%CXX% %CXXFLAGS% /c NameToCharCode.cc
|
144
|
+
|
145
|
+
%CXX% %CXXFLAGS% /c Object.cc
|
146
|
+
|
147
|
+
%CXX% %CXXFLAGS% /c Outline.cc
|
148
|
+
|
149
|
+
%CXX% %CXXFLAGS% /c OutputDev.cc
|
150
|
+
|
151
|
+
%CXX% %CXXFLAGS% /c PDFDoc.cc
|
152
|
+
|
153
|
+
%CXX% %CXXFLAGS% /c PDFDocEncoding.cc
|
154
|
+
|
155
|
+
%CXX% %CXXFLAGS% /c PSOutputDev.cc
|
156
|
+
|
157
|
+
%CXX% %CXXFLAGS% /c PSTokenizer.cc
|
158
|
+
|
159
|
+
%CXX% %CXXFLAGS% /c Page.cc
|
160
|
+
|
161
|
+
%CXX% %CXXFLAGS% /c Parser.cc
|
162
|
+
|
163
|
+
%CXX% %CXXFLAGS% /c PreScanOutputDev.cc
|
164
|
+
|
165
|
+
%CXX% %CXXFLAGS% /c Stream.cc
|
166
|
+
|
167
|
+
%CXX% %CXXFLAGS% /c SplashOutputDev.cc
|
168
|
+
|
169
|
+
%CXX% %CXXFLAGS% /c UnicodeMap.cc
|
170
|
+
|
171
|
+
%CXX% %CXXFLAGS% /c SecurityHandler.cc
|
172
|
+
|
173
|
+
%CXX% %CXXFLAGS% /c UnicodeTypeTable.cc
|
174
|
+
|
175
|
+
%CXX% %CXXFLAGS% /c XRef.cc
|
176
|
+
|
177
|
+
|
178
|
+
|
179
|
+
%LIBPROG% /nologo /out:libxpdf.lib Annot.obj Array.obj BuiltinFont.obj BuiltinFontTables.obj Catalog.obj CharCodeToUnicode.obj CMap.obj Decrypt.obj Dict.obj Error.obj FontEncodingTables.obj Function.obj Gfx.obj GfxFont.obj GfxState.obj GlobalParams.obj JArithmeticDecoder.obj JBIG2Stream.obj JPXStream.obj Lexer.obj Link.obj NameToCharCode.obj Object.obj Outline.obj OutputDev.obj Page.obj Parser.obj PDFDoc.obj PDFDocEncoding.obj PreScanOutputDev.obj PSOutputDev.obj PSTokenizer.obj Stream.obj SplashOutputDev.obj UnicodeMap.obj SecurityHandler.obj UnicodeTypeTable.obj XRef.obj
|
180
|
+
|
181
|
+
|
182
|
+
|
183
|
+
cd ..\src
|
184
|
+
|
185
|
+
%CXX% %CXXFLAGS% /c XmlFonts.cc
|
186
|
+
|
187
|
+
%CXX% %CXXFLAGS% /c XmlLinks.cc
|
188
|
+
|
189
|
+
%CXX% %CXXFLAGS% /c ImgOutPutDev.cc
|
190
|
+
|
191
|
+
%CXX% %CXXFLAGS% /c pdf2json.cc
|
192
|
+
|
193
|
+
|
194
|
+
|
195
|
+
%CXX% %FPFLAGS% /nologo /Fepdf2json.exe XmlFonts.obj XmlLinks.obj ImgOutPutDev.obj pdf2json.obj ..\goo\libGoo.lib ..\xpdf\libxpdf.lib ..\fofi\libfofi.lib ..\splash\libsplash.lib advapi32.lib Gdi32.lib User32.lib ..\freetype.win32\lib\freetype_a.lib
|
196
|
+
|
197
|
+
|
198
|
+
|
199
|
+
cd ..
|