Convert PDF to HTML

* Ubuntu – pdf to html convert

* pdftohtml
install
sudo apt update -y
sudo apt install poppler-utils

* 사용법 – 하위 폴더 모두 변경
find ./ -name “*.pdf” -type f -exec pdftohtml -c -i -noframes -nomerge -zoom 1.8 {} {}.html \;
find ./ -type f -name “*.html” -exec sed -i ‘s/bgcolor=”#A0A0A0″//g’ {} +

* pdf2htmlEX – https://github.com/coolwanglu/pdf2htmlEX
install
sudo apt update
sudo apt install -y libfontconfig1 libcairo2 libjpeg-turbo8
sudo apt apt –fix-broken install
wget https://github.com/pdf2htmlEX/pdf2htmlEX/releases/download/v0.18.8.rc1/pdf2htmlEX-0.18.8.rc1-master-20200630-Ubuntu-bionic-x86_64.deb
sudo mv pdf2htmlEX-0.18.8.rc1-master-20200630-Ubuntu-bionic-x86_64.deb pdf2htmlEX.deb
sudo apt install ./pdf2htmlEX.deb
pdf2htmlEX -v

* 사용법 – 하위 폴더 모두 변경
find ./ -name “*.pdf” -type f -exec pdf2htmlEX –zoom 1.8 {} {}.html \;
find ./ -name “*.pdf” -type f -exec pdf2htmlEX –zoom 1.3 {} {}.html \;

답글 남기기

이메일 주소는 공개되지 않습니다. 필수 필드는 *로 표시됩니다