Compare commits

...
4 Commits
Author SHA1 Message Date
James R. Barlow af777c0b6a Test macos without fitz too 2018-03-30 00:13:09 -07:00
James R. Barlow fc299032a4 v6.1.1 release notes
Better get the last one out
2018-03-30 00:11:52 -07:00
James R. Barlow e0f3f07907 Fix text reported as found on all pages when PyMuPDF is not available 2018-03-30 00:10:53 -07:00
James R. Barlow b36df9cf9e pdfa: codecs.encode -> hexlify (simpler) 2018-03-29 22:17:23 -07:00
4 changed files with 13 additions and 3 deletions
+4
View File
@@ -27,6 +27,10 @@ matrix:
language: python
python: 3.6
env: EXTRAS=[fitz]
- os: osx
osx_image: xcode8
language: generic
env: EXTRAS=
- os: osx
osx_image: xcode8
language: generic
+6
View File
@@ -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.
v6.1.1
------
- Fix text being reported as found on all pages if PyMuPDF is not installed.
v6.1.0
------
+2 -2
View File
@@ -18,7 +18,7 @@
# Generate a PDFA_def.ps file for Ghostscript >= 9.14
from string import Template
import codecs
from binascii import hexlify
import pkg_resources
import PyPDF2 as pypdf
@@ -93,7 +93,7 @@ def encode_text_string(s: str) -> str:
return ''
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()
return ascii_hex_str
+1 -1
View File
@@ -205,7 +205,7 @@ def _interpret_contents(contentstream, initial_shorthand=UNIT_SQUARE):
return ContentsInfo(
xobject_settings=xobject_settings,
inline_images=inline_images,
found_text=True)
found_text=found_text)
def _get_dpi(ctm_shorthand, image_size):