Compare commits

..
3 Commits
3 changed files with 9 additions and 5 deletions
+8 -1
View File
@@ -6,15 +6,22 @@ Please always read this file before installing the package
Download software here: https://github.com/jbarlow83/OCRmyPDF/tags
v4.0.4:
v4.0.5:
=======
Fixes
-----
- Remove some verbose debug messages from v4.0.4
- Fixed temporary that wasn't being deleted
- DPI is now calculated correctly for cropped images, along with other image transformations
- Inline images are now checked during DPI calculation instead of rejecting the image
v4.0.4:
=======
Released with verbose debug message turned on. Do not use. Skip to v4.0.5.
v4.0.3:
=======
+1 -1
View File
@@ -378,7 +378,7 @@ def cleanup_working_files(*args):
@transform(
input=options.input_file,
filter=formatter('(?i)\.pdf'),
output=work_folder + '{basename[0]}.repaired.pdf',
output=os.path.join(work_folder, '{basename[0]}.repaired.pdf'),
extras=[_log, _pdfinfo, _pdfinfo_lock])
def repair_pdf(
input_file,
-3
View File
@@ -82,7 +82,6 @@ def _interpret_contents(contentstream):
image_raster_settings = []
inline_images = []
print(operations)
for op in operations:
operands, command = op
if command == b'q':
@@ -182,7 +181,6 @@ def _get_dpi(ctm_shorthand, image_size):
def _find_page_images(page, pageinfo, contentsinfo):
for n, im in enumerate(contentsinfo.inline_images):
print(n)
settings, shorthand = im
image = {}
image['name'] = str('inline-%02d' % n)
@@ -295,7 +293,6 @@ def _pdf_get_pageinfo(infile, pageno: int):
return pageinfo
contentsinfo = _interpret_contents(contentstream)
print(contentsinfo)
pageinfo['images'] = [im for im in _find_page_images(
page, pageinfo, contentsinfo)]