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

Both sides previous revisionPrevious revision
Next revision
Previous revision
informatica:linux:pdf:juntar_ficheros_pdf [2009/06/12 06:41] 194.179.83.87informatica:linux:pdf:juntar_ficheros_pdf [2015/04/13 20:19] (current) – external edit 127.0.0.1
Line 1: Line 1:
-pdftk pdf merge split +====== Juntar pdf ====== 
 + 
 +===== pdftk ===== 
 + 
 +pdftk pdf merge split pdfcracker
  
 Aplicación para operar con documentos .pdf Aplicación para operar con documentos .pdf
Line 16: Line 20:
  
   pdftk fichero_conjunto.pdf burst   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.1244788911.txt.gz · Last modified: 2015/04/13 20:19 (external edit)