Created attachment 111902 [details]
Originally reported on Ubuntu Vivid as https://bugs.launchpad.net/ubuntu/+source/evince/+bug/1404645 using poppler 0.28.1
Evince 3.14.1-0ubuntu1 (which uses poppler as it's renderer) prompts for a password when opening the attached file. Adobe Reader and Firefox 34's built-in PDF viewer can open the file.
The file has been created by a professor and is about Java programming.
Renaming the file to script.pdf and attempting to convert the file with ghostscript 9.10 via this command:
gs -q -dNOPAUSE -dBATCH -sDEVICE=pdfwrite -sOutputFile=unencrypted.pdf -c .setpdfwrite -f script.pdf
gives this warning:
**** This file uses an unknown standard security handler revision: 6
Error: /undefined in pdf_check_password
GPL Ghostscript 9.10: Unrecoverable error, exit code 1
Ghostscript 9.15 now supports the PDF security handler revision 6 - see http://www.ghostscript.com/doc/9.15/News.htm
Perhaps you can reuse the new ghostscript code?
Code has been added for this in commit c8673cb8209a9f294721fae7a1842fcd8940ecab
The revision 6 security handler is still not publicly available at this time, we are awaiting the published ISO 32000-2 specification which should contain it (due to be published in 2012....). The security handler is listed as 'extension level 8' and the most recent extension level document available is 3.
As a result we cannot guarantee that this code will work in all circumstances.
The last ISO TC 171, Document Management Applications meeting seems to have been in May 2014 in Pretoria, South Africa, with the meeting notification stating:
" The meetings to be held will support the following sub committees and working groups:
* ISO/TC 171/SC1 : Quality
* ISO/TC 171/SC2 : Application Issues
* ISO/TC 171/SC3 : General Issues
The ISO TC 171 SC 2 page is at http://www.iso.org/iso/home/standards_development/list_of_iso_technical_committees/iso_technical_committee.htm?commid=53674 with working group 8 looking after the PDF specification.
Publication of ISO 32000-2 is now expected in the first half of 2016. Hopefully something can be implemented in poppler before then.
*** This bug has been marked as a duplicate of bug 85368 ***