WKHTMLtoPDF 설치방법(Static 버젼)

WKHTMLtoPDF 파일 다운로드

  • RHEL/CentOS/Fedora 32-bit OS
    # wget https://wkhtmltopdf.googlecode.com/files/wkhtmltopdf-0.11.0_rc1-static-i386.tar.bz2
  • RHEL/CentOS/Fedora 64-bit OS
    # wget https://wkhtmltopdf.googlecode.com/files/wkhtmltopdf-0.11.0_rc1-static-amd64.tar.bz2

WKHTMLtoPDF 압축 풀기

  • RHEL/CentOS/Fedora 32-bit OS
    # tar -xvf  wkhtmltopdf-0.11.0_rc1-static-i386.tar.bz2
  • RHEL/CentOS/Fedora 64-bit OS
    # tar -xvf  wkhtmltopdf-0.11.0_rc1-static-amd64.tar.bz2

파일 이름변경 및 시스템 패스로 이동 시키기

  • RHEL/CentOS/Fedora 32-bit OS
    # mv wkhtmltopdf-i386 wkhtmltopdf
    # mv wkhtmltopdf /usr/local/bin
  • RHEL/CentOS/Fedora 64-bit OS
    # mv wkhtmltopdf-amd64 wkhtmltopdf
    # mv wkhtmltopdf /usr/local/bin

실행방법

  • Remote HTML file to PDF
    # wkhtmltopdf "http://www.google.com" newfile.pdf
  • Local HTML file to PDF
    # wkhtmltodpf local.html newfile.pdf
  • Extended HELP
    # wkhtmltopdf -H