01854092 by 冯轩

MOD single page info

1 parent 2932c540
......@@ -1599,7 +1599,8 @@ class Command(BaseCommand, LoggerMixin):
time.sleep(self.sleep_time_img_put)
if pdf_handler.is_e_weixin_bs:
try:
text_list = pdf_handler.page_text_list
#self.online_log.info('{0} [pdf_2_img_2_queue] [img_idx={1}] [page_text_list={2}]'.format(self.log_base, img_idx, pdf_handler.page_text_list))
text_list = pdf_handler.page_text_list[img_idx].pop('rebuild_text')
except Exception as e:
text_list = []
else:
......
......@@ -187,6 +187,8 @@ class PDFHandler:
self.img_path_list.append(img_save_path)
if self.is_ebank:
self.rebuild_bbox(pm.width, pm.height, page.number)
if self.is_e_weixin_bs:
self.rebuild_bbox(pm.width, pm.height, page.number)
@staticmethod
def getimage(pix):
......
Styling with Markdown is supported
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!