加密PDF轉文字

2021-10-05 01:30:47 字數 726 閱讀 6576

加密pdf轉文字

adobe acrobat pro dc:將解密的pdf匯出成word

天若ocr:

專業版 59元

word**格式修改

sub selectalltables()

dim temptable as table

'判斷文件是否被保護

if activedocument.protectiontype = wdallowonlyformfields then

msgbox "文件已保護,此時不能選中多個**!"

exit sub

end if

'刪除所有可編輯的區域

activedocument.deletealleditableranges wdeditoreveryone

'新增可編輯區域

for each temptable in activedocument.tables

temptable.range.editors.add wdeditoreveryone

next

'選中所有可編輯區域

activedocument.selectalleditableranges wdeditoreveryone

'刪除所有可編輯的區域

activedocument.deletealleditableranges wdeditoreveryone

end sub

Python實現PDF轉文字

安裝依賴 pip install pdfminer3k coding utf 8 import sys import importlib importlib.reload sys from pdfminer.pdfparser import pdfparser,pdfdocument from pd...

Qt for Python 七 pdf轉文字

環境 win7 64 py3 第一步 安裝pdf操作庫 pdfminer3k pdfminer3k是python3使用的pdfminer的版本,這裡安裝一定要選定穩定版版本號,pip自動選擇的最新版,貌似有問題,坑了我好久 具體用法官網看文件 pip3 install pdfminer3k 1.2....

呼叫百度ocr實現PDF轉文字

讀取函式 defocr path with open path,rb as f return f.read deflink ocr client,image for i in range 5 try dict1 client.basicgeneral image except continue el...