User Tools

Site Tools


informatica:linux:pdf:juntar_ficheros_pdf

Differences

This shows you the differences between two versions of the page.

Link to this comparison view

Next revision
Previous revision
Last revisionBoth sides next revision
informatica:linux:pdf:juntar_ficheros_pdf [2009/04/17 10:37] – editor externo 127.0.0.1informatica:linux:pdf:juntar_ficheros_pdf [2012/01/22 10:06] 95.21.145.93
Line 1: Line 1:
-**ANTECEDENTES**+====== Juntar pdf ======
  
-Tenemos fichero_1.pdf y fichero_2.pdf, y queremos juntarlos en un único fichero: fichero_conjunto.pdf+===== pdftk =====
  
-**SOLUCIÓN**+pdftk pdf merge split pdfcracker 
 + 
 +Aplicación para operar con documentos .pdf 
 + 
 +  Instalación
  
 (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 .pdf en 1: 
   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 **
 +
 +<code>
 +Error: Failed to open PDF file: 
 +   fichero_1.pdf
 +   OWNER PASSWORD REQUIRED, but not given (or incorrect)
 +Error: Failed to open PDF file: 
 +   fichero_2.pdf
 +   OWNER PASSWORD REQUIRED, but not given (or incorrect)
 +Errors encountered.  No output created.
 +Done.  Input errors, so no output created.
 +</code>
 +
 +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 
 +<code>
 +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: 'OrIa'
 +...
 +</code>
 +
 +===== 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.txt · Last modified: 2015/04/13 20:19 by 127.0.0.1