Bug 104329 - New ipdf filter does not prompt for password for Secured PDF and returns "Image filter not found"
Summary: New ipdf filter does not prompt for password for Secured PDF and returns "Ima...
Status: RESOLVED WORKSFORME
Alias: None
Product: LibreOffice
Classification: Unclassified
Component: filters and storage (show other bugs)
Version:
(earliest affected)
5.3.0.0.beta1
Hardware: All All
: medium normal
Assignee: Not Assigned
URL:
Whiteboard:
Keywords:
Depends on:
Blocks: PDF-Import-Draw
  Show dependency treegraph
 
Reported: 2016-12-01 20:12 UTC by V Stuart Foote
Modified: 2021-06-26 14:25 UTC (History)
3 users (show)

See Also:
Crash report or crash signature:


Attachments

Note You need to log in before you can comment on or make changes to this bug.
Description V Stuart Foote 2016-12-01 20:12:17 UTC
Description:
@Miklos, when the new sd filter import PDF to svm (bug 89727) encounters an encrypted PDF, rather than prompting for the PDF's password [1] it just errors with the graphic filter fall through message -- STR_IMPORT_GRFILTER_FILTERERROR -> "Image filter not found"[2].

I don't know that we'll want to start caring about /P permission settings (bug 103807), but the new insert first page filter should handle secured PDF and prompt for password if needed.

Steps to Reproduce:
1. locate or create a simple signed PDF
2. open new Writer document
3. Insert -> Image and choose PDF

Actual Results:  
Error: "Image filter not found"

Expected Results:
Prompt for password: "Enter password" dialog [4]


Reproducible: Always

User Profile Reset: No

Additional Info:
=-ref-=

[1] http://opengrok.libreoffice.org/xref/core/sdext/source/pdfimport/wrapper/wrapper.cxx?a=true#1034

[2] http://opengrok.libreoffice.org/xref/core/sd/source/filter/grf/sdgrffilter.cxx#133

[3]http://opengrok.libreoffice.org/xref/core/sdext/source/pdfimport/pdfparse/pdfentries.cxx#1295

[4] http://opengrok.libreoffice.org/xref/core/uui/source/passworddlg.cxx#28


User-Agent: Mozilla/5.0 (Windows NT 6.3; WOW64; rv:50.0) Gecko/20100101 Firefox/50.0
Comment 1 eisa01 2018-03-31 20:21:37 UTC
I am prompted for a password, but the opened file just says:
This PDF file is encrypted and can't be opened. 

Version: 6.1.0.0.alpha0+
Build ID: a488c7ad2763b944713997911c1ddb0315d8c93f
CPU threads: 2; OS: Mac OS X 10.12.6; UI render: default; 
TinderBox: MacOSX-x86_64@49-TDF, Branch:master, Time: 2018-03-26_00:38:29
Locale: en-US (en_US.UTF-8); Calc: group
Comment 2 QA Administrators 2019-04-01 03:25:12 UTC Comment hidden (obsolete)
Comment 3 eisa01 2019-04-20 18:09:08 UTC
Works for me now

Version: 6.3.0.0.alpha0+
Build ID: ea9c13be02ba731074fa4207944ff7df40a0fb5c
CPU threads: 2; OS: Mac OS X 10.13.6; UI render: default; VCL: osx; 
TinderBox: MacOSX-x86_64@49-TDF, Branch:master, Time: 2019-04-10_20:43:17
Locale: en-US (en_US.UTF-8); UI-Language: en-US
Calc: threaded
Comment 4 Commit Notification 2021-06-26 07:18:11 UTC Comment hidden (off-topic)