 PyMuPDF 1.24.2 Documentationimport print_function, division import sys import os import time from multiprocessing import Pool, cpu_count import fitz # choose a version specific timer function (bytes == str in Python 2) mytime = time parameters. """ # recreate the arguments idx = vector[0] # this is the segment number we have to process cpu = vector[1] # number of CPUs filename = vector[2] # document filename mat = vector[3] # the matrix page_count # get number of pages # pages per segment: make sure that cpu * seg_size >= num_pages! seg_size = int(num_pages / cpu + 1) seg_from = idx * seg_size # our first page number seg_to = min(seg_from0 码力 | 565 页 | 6.84 MB | 1 年前3 PyMuPDF 1.24.2 Documentationimport print_function, division import sys import os import time from multiprocessing import Pool, cpu_count import fitz # choose a version specific timer function (bytes == str in Python 2) mytime = time parameters. """ # recreate the arguments idx = vector[0] # this is the segment number we have to process cpu = vector[1] # number of CPUs filename = vector[2] # document filename mat = vector[3] # the matrix page_count # get number of pages # pages per segment: make sure that cpu * seg_size >= num_pages! seg_size = int(num_pages / cpu + 1) seg_from = idx * seg_size # our first page number seg_to = min(seg_from0 码力 | 565 页 | 6.84 MB | 1 年前3
 MuPDF 1.23.0 Documentationpython ./scripts/mupdfwrap.py -d build/shared-debug -b ... – Windows. ∗ One has to also specify the CPU type and Python version, for example: python ./scripts/mupdfwrap.py -d build/shared-debug-x64-py30 码力 | 245 页 | 817.74 KB | 8 月前3 MuPDF 1.23.0 Documentationpython ./scripts/mupdfwrap.py -d build/shared-debug -b ... – Windows. ∗ One has to also specify the CPU type and Python version, for example: python ./scripts/mupdfwrap.py -d build/shared-debug-x64-py30 码力 | 245 页 | 817.74 KB | 8 月前3
共 2 条
- 1













