Bug 88151 - Evince opens attached PDF file as locked
Summary: Evince opens attached PDF file as locked
Status: RESOLVED DUPLICATE of bug 85368
Alias: None
Product: poppler
Classification: Unclassified
Component: general (show other bugs)
Version: unspecified
Hardware: x86-64 (AMD64) Linux (All)
: medium normal
Assignee: poppler-bugs
QA Contact:
URL:
Whiteboard:
Keywords:
Depends on:
Blocks:
 
Reported: 2015-01-07 11:23 UTC by madbiologist
Modified: 2015-01-07 20:40 UTC (History)
0 users

See Also:
i915 platform:
i915 features:


Attachments
PDF file (1.28 MB, text/plain)
2015-01-07 11:23 UTC, madbiologist
Details

Description madbiologist 2015-01-07 11:23:40 UTC
Created attachment 111902 [details]
PDF file

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
<snip>
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?
Comment 1 madbiologist 2015-01-07 14:52:34 UTC
From http://bugs.ghostscript.com/show_bug.cgi?id=693305

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.
Comment 2 madbiologist 2015-01-07 15:01:55 UTC
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.
Comment 3 madbiologist 2015-01-07 15:08:30 UTC
Publication of ISO 32000-2 is now expected in the first half of 2016.  Hopefully something can be implemented in poppler before then.
Comment 4 Albert Astals Cid 2015-01-07 20:40:49 UTC

*** This bug has been marked as a duplicate of bug 85368 ***


Use of freedesktop.org services, including Bugzilla, is subject to our Code of Conduct. How we collect and use information is described in our Privacy Policy.