You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Traceback (most recent call last):
File "d:/temp/pdf2doc/pdf2doc.py", line 8, in
cv.convert(docx_file) # all pages by default
File "D:\anaconda\envs\pdf2doc\lib\site-packages\pdf2docx\converter.py", line 328, in convert
self.parse(start, end, pages, **settings).make_docx(docx_filename, **settings)
File "D:\anaconda\envs\pdf2doc\lib\site-packages\pdf2docx\converter.py", line 112, in parse
.parse_document(**kwargs)
File "D:\anaconda\envs\pdf2doc\lib\site-packages\pdf2docx\converter.py", line 152, in parse_document
self._pages.parse(self.fitz_doc, **kwargs)
File "D:\anaconda\envs\pdf2doc\lib\site-packages\pdf2docx\page\Pages.py", line 36, in parse
raw_page.restore(**settings)
File "D:\anaconda\envs\pdf2doc\lib\site-packages\pdf2docx\common\share.py", line 226, in inner
objects = func(*args, **kwargs)
File "D:\anaconda\envs\pdf2doc\lib\site-packages\pdf2docx\page\RawPage.py", line 74, in restore
raw_dict = self.extract_raw_dict(**settings)
File "D:\anaconda\envs\pdf2doc\lib\site-packages\pdf2docx\page\RawPage.py", line 279, in extract_raw_dict
Element.set_rotation_matrix(self.fitz_page.rotationMatrix)
AttributeError: 'Page' object has no attribute 'rotationMatrix'
need to delete this line in the file RawPage.py:
Element.set_rotation_matrix(self.fitz_page.rotationMatrix)
then the code can run successfully
The text was updated successfully, but these errors were encountered:
Traceback (most recent call last):
File "d:/temp/pdf2doc/pdf2doc.py", line 8, in
cv.convert(docx_file) # all pages by default
File "D:\anaconda\envs\pdf2doc\lib\site-packages\pdf2docx\converter.py", line 328, in convert
self.parse(start, end, pages, **settings).make_docx(docx_filename, **settings)
File "D:\anaconda\envs\pdf2doc\lib\site-packages\pdf2docx\converter.py", line 112, in parse
.parse_document(**kwargs)
File "D:\anaconda\envs\pdf2doc\lib\site-packages\pdf2docx\converter.py", line 152, in parse_document
self._pages.parse(self.fitz_doc, **kwargs)
File "D:\anaconda\envs\pdf2doc\lib\site-packages\pdf2docx\page\Pages.py", line 36, in parse
raw_page.restore(**settings)
File "D:\anaconda\envs\pdf2doc\lib\site-packages\pdf2docx\common\share.py", line 226, in inner
objects = func(*args, **kwargs)
File "D:\anaconda\envs\pdf2doc\lib\site-packages\pdf2docx\page\RawPage.py", line 74, in restore
raw_dict = self.extract_raw_dict(**settings)
File "D:\anaconda\envs\pdf2doc\lib\site-packages\pdf2docx\page\RawPage.py", line 279, in extract_raw_dict
Element.set_rotation_matrix(self.fitz_page.rotationMatrix)
AttributeError: 'Page' object has no attribute 'rotationMatrix'
need to delete this line in the file RawPage.py:
Element.set_rotation_matrix(self.fitz_page.rotationMatrix)
then the code can run successfully
The text was updated successfully, but these errors were encountered: