informatica:linux:pdf:juntar_ficheros_pdf
Differences
This shows you the differences between two versions of the page.
Next revision | Previous revision | ||
informatica:linux:pdf:juntar_ficheros_pdf [2009/04/17 10:37] – editor externo 127.0.0.1 | informatica:linux:pdf:juntar_ficheros_pdf [2015/04/13 20:19] (current) – external edit 127.0.0.1 | ||
---|---|---|---|
Line 1: | Line 1: | ||
- | **ANTECEDENTES** | + | ====== Juntar pdf ====== |
- | Tenemos fichero_1.pdf y fichero_2.pdf, | + | ===== pdftk ===== |
- | **SOLUCIÓN** | + | pdftk pdf merge split pdfcracker |
+ | |||
+ | Aplicación para operar con documentos .pdf | ||
+ | |||
+ | | ||
(Como root) | (Como root) | ||
Line 9: | Line 13: | ||
1. aptitude update && aptitude install pdftk | 1. aptitude update && aptitude install pdftk | ||
- | 2. (Con cualquier usuario) | + | * Juntar n ficheros |
pdftk fichero_1.pdf fichero_2.pdf cat output fichero_conjunto.pdf | pdftk fichero_1.pdf fichero_2.pdf cat output fichero_conjunto.pdf | ||
+ | * Crear n ficheros .pdf (1 por página) a partir de 1 fichero: | ||
+ | |||
+ | pdftk fichero_conjunto.pdf burst | ||
+ | |||
+ | ** ERRORES ** | ||
+ | |||
+ | < | ||
+ | Error: Failed to open PDF file: | ||
+ | | ||
+ | OWNER PASSWORD REQUIRED, but not given (or incorrect) | ||
+ | Error: Failed to open PDF file: | ||
+ | | ||
+ | OWNER PASSWORD REQUIRED, but not given (or incorrect) | ||
+ | Errors encountered. | ||
+ | Done. Input errors, so no output created. | ||
+ | </ | ||
+ | |||
+ | El/los archivos están protegidos por contraseña de propietario. | ||
+ | |||
+ | **Solución** | ||
+ | |||
+ | 1. (Como root) Instalar un rompedor de contraseñas: | ||
+ | |||
+ | aptitude update && aptitude install pdfcracker | ||
+ | |||
+ | 2. (Como usuario) Intentar conseguir, por fuerza bruta, la contraseña de propietario del archivo: | ||
+ | |||
+ | pdfcrack -o -f fichero_1.pdf | ||
+ | < | ||
+ | PDF version 1.5 | ||
+ | Security Handler: Standard | ||
+ | V: 2 | ||
+ | R: 3 | ||
+ | P: -1852 | ||
+ | Length: 128 | ||
+ | Encrypted Metadata: True | ||
+ | FileID: 787d8d5e0dfd4104223bed1f37220ef5 | ||
+ | U: ecde561bf3c2171c17aa0251b852f21500000000000000000000000000000000 | ||
+ | O: b56fae1604cfc3f8817b454d61606732ad2926ff02833323228f2b40f38115f3 | ||
+ | Average Speed: 18701.2 w/s. Current Word: ' | ||
+ | ... | ||
+ | </ | ||
+ | |||
+ | ===== gs ===== | ||
+ | |||
+ | Existe otra alternativa: | ||
+ | |||
+ | gs -dBATCH -dNOPAUSE -q -sDEVICE=pdfwrite -sOutputFile=ARCHIVO_FINAL.pdf ARCHIVO_01.pdf ARCHIVO_02.pdf |
informatica/linux/pdf/juntar_ficheros_pdf.1239964666.txt.gz · Last modified: 2015/04/13 20:19 (external edit)