Pandoc (문서변환 유틸리티) 사용법
Pandoc (문서변환 유틸리티) 사용법 
- 테스트 결과 호환성 있게 변환하는 포맷이 없음 
- 리브레 오피스 soffice 명령이 더 좋음 
Pandoc 
https://github.com/jgm/pandoc - 34.6k 
v3.5 , 2024-10 
https://pandoc.org/
https://pypi.org/project/pandoc/
- 다양한 문서 변환 프로그램 
- PDF로 변경은 할 수 있지만, PDF에서 다른 포맷으로 변경은 할 수 없다. 
- HTML을 변경한 경우, HTML의 형식은 유지되지 않는다. 
//------------------------------------- 
ubuntu 에 최신 버전 pandoc을 설치하는 방법 
sudo apt update 
sudo apt install wget 
# 최신 패키지 파일 다운로드 
wget https://github.com/jgm/pandoc/releases/download/3.5/pandoc-3.5-1-amd64.deb
# 다운로드한 패키지 설치 
sudo dpkg -i pandoc-3.5-1-amd64.deb 
# 의존성 패키지 설치 
sudo apt install -f 
# Verify the installation 
pandoc --version 
# Clean up - remove the downloaded .deb file 
rm pandoc-3.5-1-amd64.deb 
//------------------------------------- 
pandoc input.html -o output.pdf 
pandoc input.html -o output.docx 
//------------------------------------- 
호환안됨 
pandoc word4.docx -o word4.odt 
pandoc word4.docx -o word4.rtf <== 에러 수준 
//------------------------------------- 
불가 
pandoc word4.doc -o word4.docx 
pandoc word4.docx -o word4.doc 
pandoc word4.docx -o word4.pdf --pdf-engine=xelatex --variable mainfont="Noto Sans CJK KR" <= 에러 발생