PyMuPDF 1.24.2 Documentationimage at the base of each page. You should ensure that the image has the required opacity and aspect ratio to make it look the way you need it to. In the example above a new image is created from each file spage.number) # input page number # by all means, save new file using garbage collection and compression doc.save("4up.pdf", garbage=3, deflate=True) Example: 5.20. Combining Single Pages 27 PyMuPDF PyMuPDF Documentation, Release 1.24.2 For example, mutool clean -ggggz file.pdf yields excellent compression results. It corresponds to doc.save(filename, garbage=4, deflate=True). 6.9 Closing It is often0 码力 | 565 页 | 6.84 MB | 1 年前3
Python 标准库参考指南 2.7.18 格式的支持 . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 350 12.3 bz2 —Compression compatible with bzip2 . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 352 12.4 zipfile 5.4.3 浮点类型的附加方法 float 类型实现了numbers.Real abstract base class。float 还具有以下附加方法。 float.as_integer_ratio() 返回一对整数,其比率正好等于原浮点数并且分母为正数。无穷大会引发OverflowError 而 NaN 则 会引发ValueError。 2.6 新版功能. float.is_integer() 行上下文的分组的generator。 从get_opcodes() 所返回的组开始,此方法会拆分出较小的更改簇并消除没有更改的间隔区域。 这些分组以与get_opcodes() 相同的格式返回。 2.3 新版功能. ratio() 返回一个取值范围 [0, 1] 的浮点数作为序列相似性度量。 其中 T 是两个序列中元素的总数量,M 是匹配的数量,即 2.0*M / T。请注意如果两个序列完全相 同则该值为 1.0,如果两者完全不同则为0 码力 | 1552 页 | 7.42 MB | 10 月前3
Python 标准库参考指南 2.7.18 格式的支持 . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 350 12.3 bz2 —Compression compatible with bzip2 . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 352 12.4 zipfile 5.4.3 浮点类型的附加方法 float 类型实现了numbers.Real abstract base class。float 还具有以下附加方法。 float.as_integer_ratio() 返回一对整数,其比率正好等于原浮点数并且分母为正数。无穷大会引发OverflowError 而 NaN 则 会引发ValueError。 2.6 新版功能. float.is_integer() 行上下文的分组的generator。 从get_opcodes() 所返回的组开始,此方法会拆分出较小的更改簇并消除没有更改的间隔区域。 这些分组以与get_opcodes() 相同的格式返回。 2.3 新版功能. ratio() 返回一个取值范围 [0, 1] 的浮点数作为序列相似性度量。 其中 T 是两个序列中元素的总数量,M 是匹配的数量,即 2.0*M / T。请注意如果两个序列完全相 同则该值为 1.0,如果两者完全不同则为0 码力 | 1552 页 | 7.42 MB | 10 月前3
Python 标准库参考指南 2.7.18 格式的支持 . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 350 12.3 bz2 —Compression compatible with bzip2 . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 352 12.4 zipfile 5.4.3 浮点类型的附加方法 float 类型实现了numbers.Real abstract base class。float 还具有以下附加方法。 float.as_integer_ratio() 返回一对整数,其比率正好等于原浮点数并且分母为正数。无穷大会引发OverflowError 而 NaN 则 会引发ValueError。 2.6 新版功能. float.is_integer() 行上下文的分组的generator。 从get_opcodes() 所返回的组开始,此方法会拆分出较小的更改簇并消除没有更改的间隔区域。 这些分组以与get_opcodes() 相同的格式返回。 2.3 新版功能. ratio() 返回一个取值范围 [0, 1] 的浮点数作为序列相似性度量。 其中 T 是两个序列中元素的总数量,M 是匹配的数量,即 2.0*M / T。请注意如果两个序列完全相 同则该值为 1.0,如果两者完全不同则为0 码力 | 1552 页 | 7.42 MB | 10 月前3
MuPDF 1.22.0 Documentationheight (or, if the -r flag is used, render with a maximum height). -f Fit exactly; ignore the aspect ratio when matching specified width/heights. -B bandheight Render in banded mode with each band no taller spacing (*b Y and clear seed row). • mode2 Enable mode 2 graphics compression. • mode3 Enable mode 3 graphics compression. • eog_reset End of graphics ( *rB) resets all parameters. • has_duplex Disable/Enable Oce 9050 model-specific output. PCLm output options: • compression=none No compression (default). • compression=flate Flate compression. • strip-height=N Strip height (default 16). PWG output options: 0 码力 | 175 页 | 698.87 KB | 8 月前3
MuPDF 1.23.0 Documentationheight (or, if the -r flag is used, render with a maximum height). -f Fit exactly; ignore the aspect ratio when matching specified width/heights. -B bandheight Render in banded mode with each band no taller spacing (*b Y and clear seed row). • mode2 Enable mode 2 graphics compression. • mode3 Enable mode 3 graphics compression. • eog_reset End of graphics ( *rB) resets all parameters. • has_duplex Disable/Enable Oce 9050 model-specific output. PCLm output options: • compression=none No compression (default). • compression=flate Flate compression. • strip-height=N Strip height (default 16). PWG output options: 0 码力 | 245 页 | 817.74 KB | 8 月前3
MuPDF 1.25.0 Documentationheight (or, if the -r flag is used, render with a maximum height). -f Fit exactly; ignore the aspect ratio when matching specified width/heights. -B bandheight Render in banded mode with each band no taller spacing (*b Y and clear seed row). • mode2 Enable mode 2 graphics compression. • mode3 Enable mode 3 graphics compression. • eog_reset End of graphics ( *rB) resets all parameters. • has_duplex Disable/Enable Oce 9050 model-specific output. PCLm output options: • compression=none No compression (default). • compression=flate Flate compression. • strip-height=N Strip height (default 16). PWG output options: 0 码力 | 259 页 | 1.11 MB | 8 月前3
MuPDF 1.24.0 Documentationheight (or, if the -r flag is used, render with a maximum height). -f Fit exactly; ignore the aspect ratio when matching specified width/heights. -B bandheight Render in banded mode with each band no taller spacing (*b Y and clear seed row). • mode2 Enable mode 2 graphics compression. • mode3 Enable mode 3 graphics compression. • eog_reset End of graphics ( *rB) resets all parameters. • has_duplex Disable/Enable Oce 9050 model-specific output. PCLm output options: • compression=none No compression (default). • compression=flate Flate compression. • strip-height=N Strip height (default 16). PWG output options: 0 码力 | 249 页 | 830.15 KB | 8 月前3
Python 标准库参考指南 3.6.15 4.4.3 浮点类型的附加方法 float 类型实现了numbers.Real abstract base class。float 还具有以下附加方法。 float.as_integer_ratio() 返回一对整数,其比率正好等于原浮点数并且分母为正数。无穷大会引发OverflowError 而 NaN 则 会引发ValueError。 float.is_integer() 如果 float return sys.hash_info.inf if x > 0 else -sys.hash_info.inf else: return hash_fraction(*x.as_integer_ratio()) def hash_complex(z): """Compute the hash of a complex number z.""" hash_value = hash_float(z 行上下文的分组的generator。 从get_opcodes() 所返回的组开始,此方法会拆分出较小的更改簇并消除没有更改的间隔区域。 这些分组以与get_opcodes() 相同的格式返回。 ratio() 返回一个取值范围 [0, 1] 的浮点数作为序列相似性度量。 其中 T 是两个序列中元素的总数量,M 是匹配的数量,即 2.0*M / T。请注意如果两个序列完全相 同则该值为 1.0,如果两者完全不同则为0 码力 | 1886 页 | 8.95 MB | 10 月前3
Python 标准库参考指南 3.6.15 4.4.3 浮点类型的附加方法 float 类型实现了numbers.Real abstract base class。float 还具有以下附加方法。 float.as_integer_ratio() 返回一对整数,其比率正好等于原浮点数并且分母为正数。无穷大会引发OverflowError 而 NaN 则 会引发ValueError。 float.is_integer() 如果 float return sys.hash_info.inf if x > 0 else -sys.hash_info.inf else: return hash_fraction(*x.as_integer_ratio()) def hash_complex(z): """Compute the hash of a complex number z.""" hash_value = hash_float(z 行上下文的分组的generator。 从get_opcodes() 所返回的组开始,此方法会拆分出较小的更改簇并消除没有更改的间隔区域。 这些分组以与get_opcodes() 相同的格式返回。 ratio() 返回一个取值范围 [0, 1] 的浮点数作为序列相似性度量。 其中 T 是两个序列中元素的总数量,M 是匹配的数量,即 2.0*M / T。请注意如果两个序列完全相 同则该值为 1.0,如果两者完全不同则为0 码力 | 1886 页 | 8.95 MB | 10 月前3
共 378 条
- 1
- 2
- 3
- 4
- 5
- 6
- 38













