본문 바로가기
utils

[Linux] Simple Merge PDF files

by ds31x 2023. 6. 22.

pdf pro등은 무겁다보니, 많은 경우 인터넷만 되면 동작하는 ilovepdf 를 많이 사용하는 것을 보게 된다.

문제는 다들 가지고 있는 원격지에 파일을 전송하는 불안감이...

(회사나 연구실 정보가 많은 경우엔 꺼려진다. ==;;)

 

linux나 wsl등을 사용하는 경우, pdfunite라는 간단한 CLI program으로 PDF를 합칠 수 있다.

 

pdftk라는 툴이 *를 이용한 대량의 작업에는 편한데... 이 녀석은 가끔 동작을 안해서
(영문 pdf는 잘되는데, 일부 한글로 만든 pdf에서 자주 에러가 남.)

Syntax

명령어 사용법은 정말 직관적이다.

pdfunite src_a.pdf src_b.pdf result.pdf

맨 마지막이 합쳐진 결과 pdf이며, 위의 예에선 result.pdf임.
2개를 초과하는 pdf파일들도 합칠 수 있다.

Install

pdfunitepoppler-utils라는 PDF utilities를 설치하면 이용가능하다.
poppler-utilspoppler라는 pdf처리 library에 기반하여 만들어진 프로그램이다.

뭐, 전형적인 install 방식 그대로 다음과 같이 설치하면 된다.

sudo apt install poppler-utils

References

https://howtoinstall.co/en/poppler-utils

 

How to Install

Instructions on how to install and uninstall packages on Linux.

howtoinstall.co

https://linuxhint.com/merge_pdf_files_command_line/

 

How to Merge PDF Files Using the Command Line on Ubuntu

“Did you happen to see a presentation? You would have seen the screen with graphs and text, right? That data is in the PDF or portable documents format is, perhaps, the most popular for the ease of sharing documents that can be viewed on almost any devic

linuxhint.com

 

728x90