Notice
Recent Posts
Recent Comments
Link
| 일 | 월 | 화 | 수 | 목 | 금 | 토 |
|---|---|---|---|---|---|---|
| 1 | 2 | 3 | ||||
| 4 | 5 | 6 | 7 | 8 | 9 | 10 |
| 11 | 12 | 13 | 14 | 15 | 16 | 17 |
| 18 | 19 | 20 | 21 | 22 | 23 | 24 |
| 25 | 26 | 27 | 28 | 29 | 30 | 31 |
Tags
- sha-2 root
- mariadb upgrade
- javascript
- 파라미터 & 오류
- thumbnail 클래스
- bootstrap
- postfix 설치
- mod_security2 설치
- php 배열제거
- 비밀번호검증정규식
- usb 삭제
- 비밀번호정규식
- apple push notification service (apns) is changing
- group_concat 구분자
- 자바스크립트비밀번호검증
- (using password: YES)" when trying to connect
- php 이미지 url 검증 함수
- PHP 정규식 예제
- usb efi 시스템 파티션 삭제
- wsl2 우분투에 docker 설치
- 윈도우 mod_security2
- bootstrap modal
- 윈도우 환경 아파치 mod_security2 설치
- 숫자 3자리(천단위) 마다 콤마 찍기
- httpd.conf 보안 설정
- 유튜브 플레이 리스트 저장
- VS Code 서버설치
- modsecurity 설치
- 아파치 웹 서버의 정보 숨기기
- html pdf 변환
Archives
- Today
- Total
투덜이 개발자
wkhtmltopdf 설치 본문
반응형
yum install wkhtmltopdf
[root@neokidis_dev kidis]# rpm -qa | grep wkhtmltopdf
wkhtmltopdf-0.12.4-1.el7.x86_64
[root@neokidis_dev kidis]# wkhtmltopdf http://tms.gmediasoft.com:81/layout/etc/pdf.html pdf_save.pdf
wkhtmltopdf: cannot connect to X server
rpm 설치한거 삭제함
[root@neokidis_dev kidis]# rpm -qa | grep wkhtmltopdf
wkhtmltopdf-0.12.4-1.el7.x86_64
[root@neokidis_dev kidis]# rpm -e wkhtmltopdf-0.12.4-1.el7.x86_64
[root@neokidis_dev kidis]# rpm -qa | grep wkhtmltopdf
[root@neokidis_dev kidis]# rpm -qa | grep wkhtmltox
소스로 설치 해서 해결
wget https://github.com/wkhtmltopdf/wkhtmltopdf/releases/download/0.12.4/wkhtmltox-0.12.4_linux-generic-amd64.tar.xz
mv wkhtmltox-0.12.4_linux-generic-amd64.tar.xz /usr/bin
cd /usr/bin/
ll wkhtmltox-0.12.4_linux-generic-amd64.tar.xz
tar -xvf wkhtmltox-0.12.4_linux-generic-amd64.tar.xz
cp wkhtmltox/bin/wkhtmltopdf /usr/bin/
# 정상적으로 실행확인
wkhtmltopdf
wkhtmltopdf http://google.com pdf_save.pdf
# 한글이 깨진다.. 이유 한글 폰트가 리눅스에 기본적으로 설치가 되지 않아 생기는 문제
# NanumFont_TTF.zip 폰트 다운로드
wget http://static.campaign.naver.com/0/hangeul/renew/download/NanumFont_TTF.zip
# 압푹 풀기
unzip NanumFont_TTF.zip
# 폰트 폴더 생성
mkdir /usr/share/fonts/nanumfont
# 폰트 파일 확인
ls *.ttf
NanumGothicBold.ttf NanumGothic.ttf NanumMyeongjoExtraBold.ttf
NanumGothicExtraBold.ttf NanumMyeongjoBold.ttf NanumMyeongjo.ttf
mv *.ttf /usr/share/fonts/nanumfont/.
ls *.ttf
fc-cache
# 정상적으로 한글 저장이 된다.
wkhtmltopdf http://google.com pdf_save2.pdf
wkhtmltopdf 한글 깨짐
리눅스 서버에는 한글로 된 글꼴이 기본적으로 설치 되어 있지 않다. 그래서 wkhtmltopdf를 실행하면 한글...
blog.naver.com
반응형
'Etc' 카테고리의 다른 글
| 유심 초기화 재활용 (0) | 2022.06.28 |
|---|---|
| Vmx86': 지정된 파일을 찾을 수 없습니다. Did you reboot after installing VMware Player (0) | 2022.06.24 |
| edu 이메일 계정 만들기 대학교계정 2021.6 확인 (0) | 2022.02.23 |
| DLG_FLAGS_SEC_CERT_DATE_INVALID (0) | 2022.02.21 |
| Git Hub 토큰 생성 (0) | 2022.01.25 |