Difference: MuPDFWrap (3 vs. 4)

Revision 42020-08-26 - JulianSmith

Line: 1 to 1
 
META TOPICPARENT name="JulianSmith"

C++ and Python APIs for MuPDF

Line: 25 to 25
 

The Python MuPDF API

  • Generated from the C++ MuPDF API's header files.
Changed:
<
<
  • Allow implementation of mutool in Python - see mupdf:scripts/mutool.py and mupdf:scripts/mutool_draw.py.
>
>
  • Allows implementation of mutool in Python - see mupdf:scripts/mutool.py and mupdf:scripts/mutool_draw.py.
 

Building the C++ and Python MuPDF APIs

Line: 37 to 37
 
  • python3-dev version 3.6 or later.
  • SWIG version 3 or 4.
Changed:
<
<
Build C++ and Python MuPDF APIs and run basic tests:
>
>
Build MuPDF shared library, C++ and Python MuPDF APIs, and run basic tests:
 
    git clone --recursive git://git.ghostscript.com/mupdf.git
Line: 82 to 82
  (This enables Python to find the mupdf module, and enables the system dynamic linker to find the shared libraries that implement the underlying C, C++ and Python MuPDF APIs.)
Changed:
<
<
Minimal example Python code:
>
>
Minimal Python code that uses the mupdf module:
 
    import mupdf
    document = mupdf.Document('foo.pdf')
Changed:
<
<
Detailed usage of the Python API can be found in:
>
>
A simple example Python test script (run by scripts/mupdfwrap.py -t) is:
  • scripts/mupdfwrap_test.py
 
Added:
>
>
More detailed usage of the Python API can be found in:
 
  • scripts/mutool.py
  • scripts/mutool_draw.py
Line: 131 to 132
  platform/ c++/ include/
Changed:
<
<
mupdf/ [C++ MuPDF API]
>
>
mupdf/ [C++ MuPDF API header files]
  classes.h exceptions.h functions.h internal.h
Deleted:
<
<

Other internal generated files:

    mupdf/
        build/
        platform/
            c++/
  implementation/
Changed:
<
<
*.cpp [MuPDF C++ implementation]
>
>
*.cpp [MuPDF C++ implementation files]
  python/
Changed:
<
<
[SWIG files]
>
>
[SWIG build files]
 


 
This site is powered by the TWiki collaboration platform Powered by PerlCopyright 2014 Artifex Software Inc