Commit ccf1b058 authored by Jérome Perrin's avatar Jérome Perrin

probably a typo


git-svn-id: https://svn.erp5.org/repos/public/erp5/trunk@32067 20353a03-c40f-0410-a6d1-a30d3c3de9de
parent c2ef4e57
...@@ -174,7 +174,7 @@ class PDFDocument(Image, CachedConvertableMixin): ...@@ -174,7 +174,7 @@ class PDFDocument(Image, CachedConvertableMixin):
width = int(size.split(' ')[0]) width = int(size.split(' ')[0])
height = int(size.split(' ')[2]) height = int(size.split(' ')[2])
resolution = 72.0 * max_size / max(width, height) resolution = 72.0 * max_size / max(width, height)
except ValueError, ZeroDivisionError: except (ValueError, ZeroDivisionError):
resolution = None resolution = None
for page_number in range(page_count): for page_number in range(page_count):
src_mimetype, png_data = self.convert( src_mimetype, png_data = self.convert(
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment