Compare commits
| Author | SHA1 | Date | |
|---|---|---|---|
|
|
af777c0b6a | ||
|
|
fc299032a4 | ||
|
|
e0f3f07907 | ||
|
|
b36df9cf9e |
@@ -27,6 +27,10 @@ matrix:
|
|||||||
language: python
|
language: python
|
||||||
python: 3.6
|
python: 3.6
|
||||||
env: EXTRAS=[fitz]
|
env: EXTRAS=[fitz]
|
||||||
|
- os: osx
|
||||||
|
osx_image: xcode8
|
||||||
|
language: generic
|
||||||
|
env: EXTRAS=
|
||||||
- os: osx
|
- os: osx
|
||||||
osx_image: xcode8
|
osx_image: xcode8
|
||||||
language: generic
|
language: generic
|
||||||
|
|||||||
@@ -5,6 +5,12 @@ OCRmyPDF uses `semantic versioning <http://semver.org/>`_ for its command line i
|
|||||||
|
|
||||||
The OCRmyPDF package itself does not contain a public API, although it is fairly stable and breaking changes are usually timed with a major release. A future release will clearly define the stable public API.
|
The OCRmyPDF package itself does not contain a public API, although it is fairly stable and breaking changes are usually timed with a major release. A future release will clearly define the stable public API.
|
||||||
|
|
||||||
|
v6.1.1
|
||||||
|
------
|
||||||
|
|
||||||
|
- Fix text being reported as found on all pages if PyMuPDF is not installed.
|
||||||
|
|
||||||
|
|
||||||
v6.1.0
|
v6.1.0
|
||||||
------
|
------
|
||||||
|
|
||||||
|
|||||||
@@ -18,7 +18,7 @@
|
|||||||
# Generate a PDFA_def.ps file for Ghostscript >= 9.14
|
# Generate a PDFA_def.ps file for Ghostscript >= 9.14
|
||||||
|
|
||||||
from string import Template
|
from string import Template
|
||||||
import codecs
|
from binascii import hexlify
|
||||||
import pkg_resources
|
import pkg_resources
|
||||||
import PyPDF2 as pypdf
|
import PyPDF2 as pypdf
|
||||||
|
|
||||||
@@ -93,7 +93,7 @@ def encode_text_string(s: str) -> str:
|
|||||||
return ''
|
return ''
|
||||||
|
|
||||||
utf16_bytes = s.encode('utf-16be')
|
utf16_bytes = s.encode('utf-16be')
|
||||||
ascii_hex_bytes = codecs.encode(b'\xfe\xff' + utf16_bytes, 'hex')
|
ascii_hex_bytes = hexlify(b'\xfe\xff' + utf16_bytes)
|
||||||
ascii_hex_str = ascii_hex_bytes.decode('ascii').lower()
|
ascii_hex_str = ascii_hex_bytes.decode('ascii').lower()
|
||||||
return ascii_hex_str
|
return ascii_hex_str
|
||||||
|
|
||||||
|
|||||||
@@ -205,7 +205,7 @@ def _interpret_contents(contentstream, initial_shorthand=UNIT_SQUARE):
|
|||||||
return ContentsInfo(
|
return ContentsInfo(
|
||||||
xobject_settings=xobject_settings,
|
xobject_settings=xobject_settings,
|
||||||
inline_images=inline_images,
|
inline_images=inline_images,
|
||||||
found_text=True)
|
found_text=found_text)
|
||||||
|
|
||||||
|
|
||||||
def _get_dpi(ctm_shorthand, image_size):
|
def _get_dpi(ctm_shorthand, image_size):
|
||||||
|
|||||||
Reference in New Issue
Block a user