From aff597cef4384f4690b1bc36e10c374c106f08aa Mon Sep 17 00:00:00 2001 From: "James R. Barlow" Date: Thu, 13 Oct 2016 13:26:39 -0700 Subject: [PATCH] v4.2.5: update release notes, fix silly typo in pageinfo.py --- RELEASE_NOTES.rst | 7 +++++++ ocrmypdf/pageinfo.py | 2 +- 2 files changed, 8 insertions(+), 1 deletion(-) diff --git a/RELEASE_NOTES.rst b/RELEASE_NOTES.rst index 44243ea2..5f2bea6a 100644 --- a/RELEASE_NOTES.rst +++ b/RELEASE_NOTES.rst @@ -4,6 +4,13 @@ RELEASE NOTES OCRmyPDF uses `semantic versioning `_. +v4.2.5: +======= + +- Fixed an issue (#100) with PDFs that omit the optional /BitsPerComponent parameter on images +- Removed non-free file milk.pdf + + v4.2.4: ======= diff --git a/ocrmypdf/pageinfo.py b/ocrmypdf/pageinfo.py index e5a2af66..c0d55314 100644 --- a/ocrmypdf/pageinfo.py +++ b/ocrmypdf/pageinfo.py @@ -211,7 +211,7 @@ def _find_page_inline_images(page, pageinfo, contentsinfo): image['name'] = str('inline-%02d' % n) image['width'] = inline.settings['/W'] image['height'] = inline.settings['/H'] - if '/BPC' in inline.settings['/BPC'] + if '/BPC' in inline.settings: image['bpc'] = inline.settings['/BPC'] else: image['bpc'] = 8