Issue 90468

Summary: [PDF-Import] Can't import officially published PDFs
Product: Draw Reporter: Mechtilde <mechtilde>
Component: open-importAssignee: Martin Hollmichel <nesshof>
Status: CLOSED NOT_AN_OOO_ISSUE QA Contact: issues@graphics <issues>
Severity: Trivial    
Priority: P3 CC: h.ilter, issues, norbert.notz, oo, ooo, pavel, thb
Version: DEV300m17Keywords: oooqa
Target Milestone: ---   
Hardware: All   
OS: All   
Issue Type: DEFECT Latest Confirmation in: ---
Developer Difficulty: ---
Issue Depends on:    
Issue Blocks: 90135    
Attachments:
Description Flags
Fix none

Description Mechtilde 2008-06-07 10:06:34 UTC
I test ed the PDF-Import with PDFs published on
http://www.justiz.nrw.de/BS/formulare/index.php

I got this error message: "This PDF file is encrypted and can't be opened."

It is very interessing to be able to use them in combination with a database.
This is possible if I can import this as a background picture. Also "normal"
citizens may be interested in importing and printing 

It is possible to convert them to .png using "convert" under GNU/Linux. Also
xpdf can open it.
Comment 1 wolframgarten 2008-06-09 08:36:16 UTC
Sorry, where to get this extension? I can't find it in the official repository
at http://extensions.services.openoffice.org/. Thanks in advance.
Comment 2 Mechtilde 2008-06-09 08:53:27 UTC
I found the PDF-Imoport for testing here:
ftp://ftp.linux.cz/pub/localization/OpenOffice.org/devel/.newserver/DEV300_m17/Build-1/PDFImport

I choose unilngi6 for the 32 bit version

Mechtilde
Comment 3 wolframgarten 2008-06-09 10:41:19 UTC
Priority lowered. Reassigned.
Comment 4 wolframgarten 2008-06-09 10:42:50 UTC
Target set.
Comment 5 Mechtilde 2008-06-10 07:34:44 UTC
*** Issue 90539 has been marked as a duplicate of this issue. ***
Comment 6 Mechtilde 2008-06-10 07:35:07 UTC
add hi to CC because closing the issue 90539
Comment 7 thb 2008-09-03 23:08:52 UTC
The referenced documents have restricted permissions, and thus pdfimport refuses
loading them without a user password (that's the somewhat cryptic meaning of the
error message).

I'll attach a trivial patch to ignore this setting - for the record, most other
FLOSS pdf tools ignore those as well, e.g. evince has a
/apps/evince/override_restrictions gconf entry, which defaults to true for all
relevant distros...
...see e.g.
http://lists.alioth.debian.org/pipermail/pkg-gnome-maintainers/2008-May/045805.html
for some rationale.
Comment 8 thb 2008-09-03 23:11:59 UTC
Created attachment 56203 [details]
Fix
Comment 9 Mechtilde 2008-09-25 15:55:28 UTC
can be created a CWS or anything else so I can test it

Mechtilde
Comment 10 thb 2008-09-25 19:48:18 UTC
np, generally - but before embarking on this, could please someone clarify if
this is acceptable upstream (as the current behaviour was deliberately added)?
KA, HI, please give your opinion.
Comment 11 ooo 2008-09-26 02:17:09 UTC
AFAIK. we decided to _not_ support password saved documents due to some legal
issues. I assigned this  task to MH, he might know more details in this case.
Comment 12 Mechtilde 2008-09-26 08:48:47 UTC
If someone need more information about these dokuments also about legal
questions please ask me.


Comment 13 norbert2 2008-10-08 05:58:46 UTC
A workaround seems to to load the PDF into GSview and re-generate the PDF using
pdfwrite. It ignores the permissions. But it looks like it re-compresses images
(not sure)...
Comment 14 norbert2 2008-10-08 06:00:27 UTC
Could someone who has the skills generate an unofficial build of the PDF Import
Extension using the patch attached to this issue?
Comment 15 Martin Hollmichel 2008-10-08 06:13:56 UTC
the implementation of PDF import has been done according to the PDF
specification, there is no plan to change this.
Comment 16 Mechtilde 2008-11-06 08:46:51 UTC
close the invalid issue