Linux Archive

Linux Archive (http://www.linux-archive.org/)
-   Ubuntu User (http://www.linux-archive.org/ubuntu-user/)
-   -   opening a password protected pdf (http://www.linux-archive.org/ubuntu-user/499787-opening-password-protected-pdf.html)

Patton Echols 03-10-2011 07:08 PM

opening a password protected pdf
 
I have agreed to modify an existing PDF to add fillable fields. My
intention is to import it into OO Writer and work on it there. The PDF
is readable and printable without a password, but OO demands a password
to open it.


I ran pdfcrack on it and, after a while got a result:
found owner-password: 'pass5'
found user-password: '
(# Note: not the real password, but it is five characters)

Problem is that OO does not think it is the correct password. I also
tried pdftk to strip the password and it does not think that it is
correct either. Anyone have experience that may shed some light? Other
tools I might try?


By the way, the company that "owns" the pdf is ok with my efforts, but
the employee who created it is no longer available so I can't just ask
for the correct password.


Thanks,
--PE

--
ubuntu-users mailing list
ubuntu-users@lists.ubuntu.com
Modify settings or unsubscribe at: https://lists.ubuntu.com/mailman/listinfo/ubuntu-users

NoOp 03-10-2011 09:02 PM

opening a password protected pdf
 
On 03/10/2011 12:08 PM, Patton Echols wrote:
> I have agreed to modify an existing PDF to add fillable fields. My
> intention is to import it into OO Writer and work on it there. The PDF
> is readable and printable without a password, but OO demands a password
> to open it.
>
> I ran pdfcrack on it and, after a while got a result:
> found owner-password: 'pass5'
> found user-password: '
> (# Note: not the real password, but it is five characters)
>
> Problem is that OO does not think it is the correct password. I also
> tried pdftk to strip the password and it does not think that it is
> correct either. Anyone have experience that may shed some light? Other
> tools I might try?
>
> By the way, the company that "owns" the pdf is ok with my efforts, but
> the employee who created it is no longer available so I can't just ask
> for the correct password.
>
> Thanks,
> --PE
>

owner-password is only used to prevent making changes to the pdf,
user-password is for opening. Try opening in OOo Draw and just hit enter
at the password prompt.

For example, this file had only the owner-password set (to prevent changes):

$ pdfcrack -o --maxpw=4 --minpw=4 test_withpassword_test2.pdf
PDF version 1.4
Security Handler: Standard
V: 2
R: 3
P: -1028
Length: 128
Encrypted Metadata: True
FileID: 96cd26a09373440204dd9547bbc5e6c5
U: 034a647be2544a20f569efcf23ae8637000000000000000000 00000000000000
O: e600ecc20288ad8b0d64a929c6a83ee2517679aa0218beceea 8b7986726a8cdb
Average Speed: 22951.7 w/s. Current Word: 'Vz5b'
Average Speed: 22052.7 w/s. Current Word: 'HjWd'
Average Speed: 23501.5 w/s. Current Word: 'OAUf'
Average Speed: 23480.2 w/s. Current Word: '4KSh'
Average Speed: 23644.2 w/s. Current Word: 'dMRj'
Average Speed: 21754.7 w/s. Current Word: 'RXGl'
Average Speed: 18915.2 w/s. Current Word: 'wnhn'
Average Speed: 23377.8 w/s. Current Word: 'J0ep'
Average Speed: 22199.7 w/s. Current Word: 'Vv6q'
Average Speed: 20298.5 w/s. Current Word: 'O7Ns'
found owner-password: 'test'
found user-password: '

The owner-password 'test' is correct. There is no user-password set. If
I open in OOo I get the password prompt, but just hit 'Enter' & the
document opens just fine.

This one has both the owner and user password set. To open in OOo I need
to enter the user password 'test':

$ pdfcrack -o --maxpw=4 --minpw=4 test_withpassword.pdf
PDF version 1.4
Security Handler: Standard
V: 2
R: 3
P: -1028
Length: 128
Encrypted Metadata: True
FileID: 1e4991efd1c2bdfb3bc37fd1d2cf1703
U: 142e1cc2c183226c9dc5d3e5bc1f46b2000000000000000000 00000000000000
O: badad1e86442699427116d3e5d5271bc80a27814fc5e80f815 efeef839354c5f
Average Speed: 10081.9 w/s. Current Word: 'nC0a'
Average Speed: 8366.4 w/s. Current Word: 'd9Hb'
Average Speed: 10519.2 w/s. Current Word: 'wSAc'
Average Speed: 10766.4 w/s. Current Word: 'yTud'
Average Speed: 9127.8 w/s. Current Word: 'Znge'
Average Speed: 10034.9 w/s. Current Word: '3A6e'
Average Speed: 8511.9 w/s. Current Word: 'OSOf'
Average Speed: 5488.7 w/s. Current Word: 'mrhg'
Average Speed: 5515.7 w/s. Current Word: 'C8Jg'
Average Speed: 5635.6 w/s. Current Word: 'xsdh'
Average Speed: 7186.9 w/s. Current Word: 'TQOh'
Average Speed: 11140.4 w/s. Current Word: 'zOKi'
Average Speed: 11185.0 w/s. Current Word: 'C0Gj'
Average Speed: 11034.2 w/s. Current Word: '3pCk'
Average Speed: 7871.6 w/s. Current Word: 'inhl'
Average Speed: 10611.2 w/s. Current Word: 'gAam'
Average Speed: 11136.2 w/s. Current Word: 'Bw6m'
Average Speed: 10808.2 w/s. Current Word: '7K0n'
Average Speed: 10815.2 w/s. Current Word: 'U1Uo'
Average Speed: 11359.5 w/s. Current Word: 'f8Rp'
Average Speed: 11124.6 w/s. Current Word: 'P0Nq'
Average Speed: 11360.7 w/s. Current Word: 'z7Kr'
Average Speed: 11410.1 w/s. Current Word: 'fuIs'
found owner-password: 'test2'
found user-password: 'test'

Once opened I can edit.


--
ubuntu-users mailing list
ubuntu-users@lists.ubuntu.com
Modify settings or unsubscribe at: https://lists.ubuntu.com/mailman/listinfo/ubuntu-users


All times are GMT. The time now is 08:37 AM.

VBulletin, Copyright ©2000 - 2014, Jelsoft Enterprises Ltd.
Content Relevant URLs by vBSEO ©2007, Crawlability, Inc.