Auto-generated mupdf C++ wrappers
Auto-generated C++ headers and implementation files, plus test outputs (.html files have syntax-colouring):
These were generated by the mupdfwrap.py programme, which also runs g++ and SWIG to generate a Python module that gives a Python API:
The generated Python module is tested by the (rather hacky) test_mupdfcpp_swig() function in mupdfwrap.py. For convenience, this function and its output can be viewed in
https://ghostscript.com/~julian/mupdf/platform/python
.
In mupdfwrap.py:
- See "Todo:" section in comment near top, for status of various todo items.
Integration with mupdf git.
In mupdf, have added various things:
mupdf/
build/
shared/
libmupdf.so [generated file]
libmupdfcpp.so [generated file, implements C++ API]
platform/
c++/
Makefile
implementation/
*.cpp [generated files]
include/
mupdf/
*.h [generated files]
python/
Makefile
mudf.py [generated file, implements Python API]
_mupdf.so [generated file, implements Python API internals]
scripts/
mupdfwrap.py
jlib.py
See:
To build:
cd mupdf/platform/python
make
make test
The makefiles build things by running ../../scripts/mupdfwrap.py.
Have also added crude support for building mupdf as a shared object, which
is required for integrating with the SWIG python module. At the moment,
mupdfwrap.py drives this to build mupdf.so.
--
Julian Smith - 2020-03-04
Comments