Commit 7c0c216d authored by Kazuhiko Shiozaki's avatar Kazuhiko Shiozaki

use _convert instead of convert in _convertToText to skip format permission check.

parent c39b8e0a
......@@ -141,7 +141,7 @@ class PDFDocument(Image):
content_information = self.getContentInformation()
page_count = int(content_information.get('Pages', 0))
for page_number in range(page_count):
src_mimetype, png_data = self.convert(
src_mimetype, png_data = self._convert(
'png', quality=100, resolution=300,
frame=page_number, display='identical')
if not src_mimetype.endswith('png'):
......
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