Unir varios archivos pdf en GNU-Linux
This is a simple CLI tool for pasting toghether several pdf files.
Es una herramienta simple, utilizada en la línea de comandos, para unir dos o más archivos pdf.
pdfunite
In many Linux distros, it is already installed. You can check that with the command pdfunite --version
.
If it’s not installed, it can be done with this command, if your distro uses apt
:
sudo apt update && sudo apt install poppler-utils
Once installed, let’s supose that you’re in a directory (folder) that has three pdf files you want to join: 1.pdf
, 2.pdf
and 3.pdf
. You want to create a new file, 123.pdf
that will have the pages of 1.pdf
, then the pages of 2.pdf
, and the pages of 3.pdf
at the end.
You can achieve this goal with this simple command:
pdfunite 1.pdf 2.pdf 3.pdf 123.pdf
In general, you should write:
- pdfunite
- a list of pdf files that you want to unite (remember: if the filenames have blank spaces, or unusual charachters, you should enclose the filename between quotation marks, like this:
"this is an only file.pdf"
). - the name of the destination file
Of course, you can replace any filename for its whole path, if the files are not in the same folder, or if you want to place the destination file somewhere else.
pdfunite
En muchas distribuciones de GNU/Linux, esta herramienta ya viene instalada. Esto se puede verificar con el comando pdfunite --version
.
Si no estuviera instalada, podemos hacerlo con este comando, si la distro usa apt
:
sudo apt update && sudo apt install poppler-utils
Una vez instalada, supongamos que estamos en un directorio (carpeta) que tiene tres archivos pdf que queremos unir: 1.pdf
, 2.pdf
y 3.pdf
. Queremos crear un nuevo archivo, 123.pdf
que tendrá las páginas de 1.pdf
, luego las páginas de 2.pdf
y por último las de 3.pdf
.
Podemos lograr este objetivo con este comando:
pdfunite 1.pdf 2.pdf 3.pdf 123.pdf
En terminos generales, este comando se utiliza escribiendo:
- pdfunite
- una lista de dos o más archivos pdf que queramos unir. (Recordatorio: si el nombre de archivo tiene espacios en blanco o caracteres inusuales, debemos escribirlos entre comillas, así:
"este es un solo archivo.pdf"
). - el nombre del archivo destino.
Desde luego, podemos reemplazar cualquiera de los nombres de archivo por su ruta completa, si los archivos no están en la misma carpeta, o si queremos que el archivo destino esté ubicado en otro lugar.
Tags: articulos, castellano, english, herramientas, tools