Bug 55947

Summary: PDF-Import fails with "Read-Error."
Product: LibreOffice Reporter: JuergenL <freedesktop-j>
Component: ExtensionsAssignee: Not Assigned <libreoffice-bugs>
Status: RESOLVED NOTABUG    
Severity: major CC: barta, bfo.bugmail, detective.conan.1412
Priority: medium    
Version: 3.6.2.2 release   
Hardware: x86-64 (AMD64)   
OS: Linux (All)   
Whiteboard:
Crash report or crash signature: Regression By:
Attachments: Screenshot PDF file created with KDE4 PDF print mechanism

Description JuergenL 2012-10-13 10:14:28 UTC
I upgraded my Ubuntu Lucid Server (x86-64) from LibO 3.5.4 Ubuntu packages with LibO 3.6.2.2 downloaded from libreoffice.org (Linux - deb (x86_64), version 3.6.2, English (US)).

LibO 3.6.2 works well since then, but importing a PDF file in Writer fails with a msg box "Read-Error. Error reading file." (PDF-Import 1.0.6 extension). With Drawing same effect but msg is "File could not be loaded!".

I tested this with several PDF files which were importable by LibO 3.5.4 and PDF-Import 1.0.4 without problems. For sure the files are readable (644).

Installed packages:
# dpkg -l|grep -i 3.6.2|grep ^ii
ii  fonts-opensymbol                                  2:102.2+LibO3.6.2~rc2-0ubuntu1~ppa2             OpenSymbol TrueType font
ii  libobasis3.6-base                                 3.6.2.2-2                                       Base module for LibreOffice 3.6
ii  libobasis3.6-binfilter                            3.6.2.2-2                                       Legacy filters (e.g. StarOffice 5.2) for Lib
ii  libobasis3.6-calc                                 3.6.2.2-2                                       Calc module for LibreOffice 3.6
ii  libobasis3.6-core01                               3.6.2.2-2                                       Core module for LibreOffice 3.6
ii  libobasis3.6-core02                               3.6.2.2-2                                       Office core module for LibreOffice 3.6
ii  libobasis3.6-core03                               3.6.2.2-2                                       Office core module for LibreOffice 3.6
ii  libobasis3.6-core04                               3.6.2.2-2                                       Office core module for LibreOffice 3.6
ii  libobasis3.6-core05                               3.6.2.2-2                                       Office core module for LibreOffice 3.6
ii  libobasis3.6-core06                               3.6.2.2-2                                       Office core module for LibreOffice 3.6
ii  libobasis3.6-core07                               3.6.2.2-2                                       Office core module for LibreOffice 3.6
ii  libobasis3.6-de                                   3.6.2.2-2                                       Language module for LibreOffice 3.6, languag
ii  libobasis3.6-de-base                              3.6.2.2-2                                       Base language module for LibreOffice 3.6, la
ii  libobasis3.6-de-calc                              3.6.2.2-2                                       Calc language module for LibreOffice 3.6, la
ii  libobasis3.6-de-help                              3.6.2.2-2                                       Help module for LibreOffice 3.6, language de
ii  libobasis3.6-de-math                              3.6.2.2-2                                       Math language module for LibreOffice 3.6, la
ii  libobasis3.6-de-res                               3.6.2.2-2                                       Language resource module for LibreOffice 3.6
ii  libobasis3.6-de-writer                            3.6.2.2-2                                       Writer language module for LibreOffice 3.6, 
ii  libobasis3.6-draw                                 3.6.2.2-2                                       Draw module for LibreOffice 3.6
ii  libobasis3.6-en-us                                3.6.2.2-2                                       Language module for LibreOffice 3.6, languag
ii  libobasis3.6-en-us-base                           3.6.2.2-2                                       Base language module for LibreOffice 3.6, la
ii  libobasis3.6-en-us-calc                           3.6.2.2-2                                       Calc language module for LibreOffice 3.6, la
ii  libobasis3.6-en-us-help                           3.6.2.2-2                                       Help module for LibreOffice 3.6, language en
ii  libobasis3.6-en-us-math                           3.6.2.2-2                                       Math language module for LibreOffice 3.6, la
ii  libobasis3.6-en-us-res                            3.6.2.2-2                                       Language resource module for LibreOffice 3.6
ii  libobasis3.6-en-us-writer                         3.6.2.2-2                                       Writer language module for LibreOffice 3.6, 
ii  libobasis3.6-extension-beanshell-script-provider  3.6.2.2-2                                       Script provider for BeanShell extension for 
ii  libobasis3.6-extension-javascript-script-provider 3.6.2.2-2                                       Script provider for JavaScript extension for
ii  libobasis3.6-extension-mediawiki-publisher        3.6.2.2-2                                       MediaWiki publisher extension for LibreOffic
ii  libobasis3.6-extension-nlpsolver                  3.6.2.2-2                                       NLPSolver extension for LibreOffice 3.6
ii  libobasis3.6-extension-pdf-import                 3.6.2.2-2                                       PDF import extension for LibreOffice 3.6
ii  libobasis3.6-extension-presentation-minimizer     3.6.2.2-2                                       Presentation Minimizer extension for LibreOf
ii  libobasis3.6-extension-presenter-screen           3.6.2.2-2                                       Presenter Screen extension for LibreOffice 3
ii  libobasis3.6-extension-python-script-provider     3.6.2.2-2                                       Script provider for Python extension for Lib
ii  libobasis3.6-extension-report-builder             3.6.2.2-2                                       Report Builder extension for LibreOffice 3.6
ii  libobasis3.6-gnome-integration                    3.6.2.2-2                                       Gnome integration module for LibreOffice 3.6
ii  libobasis3.6-graphicfilter                        3.6.2.2-2                                       Graphic filter module for LibreOffice 3.6
ii  libobasis3.6-images                               3.6.2.2-2                                       Images module for LibreOffice 3.6
ii  libobasis3.6-impress                              3.6.2.2-2                                       Impress module for LibreOffice 3.6
ii  libobasis3.6-javafilter                           3.6.2.2-2                                       Java filter module for LibreOffice 3.6
ii  libobasis3.6-kde-integration                      3.6.2.2-2                                       KDE integration module for LibreOffice 3.6
ii  libobasis3.6-math                                 3.6.2.2-2                                       Math module for LibreOffice 3.6
ii  libobasis3.6-ogltrans                             3.6.2.2-2                                       OpenGL slide transitions module for LibreOff
ii  libobasis3.6-onlineupdate                         3.6.2.2-2                                       Online update modul for LibreOffice 3.6
ii  libobasis3.6-ooofonts                             3.6.2.2-2                                       Mailcap module for LibreOffice 3.6
ii  libobasis3.6-ooolinguistic                        3.6.2.2-2                                       Linguistic module for LibreOffice 3.6
ii  libobasis3.6-postgresql-sdbc                      3.6.2.2-2                                       PostgreSQL Connector driver for LibreOffice 
ii  libobasis3.6-pyuno                                3.6.2.2-2                                       Pyuno module for LibreOffice 3.6
ii  libobasis3.6-writer                               3.6.2.2-2                                       Writer module for LibreOffice 3.6
ii  libobasis3.6-xsltfilter                           3.6.2.2-2                                       XSLT filter samples module for LibreOffice 3
ii  libreoffice-debian-menus                          3.6.2-2                                         LibreOffice desktop integration
ii  libreoffice3.6                                    3.6.2.2-2                                       Brand module for LibreOffice 3.6
ii  libreoffice3.6-base                               3.6.2.2-2                                       Base brand module for LibreOffice 3.6
ii  libreoffice3.6-calc                               3.6.2.2-2                                       Calc brand module for LibreOffice 3.6
ii  libreoffice3.6-de                                 3.6.2.2-2                                       Brand language module for LibreOffice 3.6
ii  libreoffice3.6-dict-de                            3.6.2.2-2                                       De dictionary for LibreOffice 3.6
ii  libreoffice3.6-dict-en                            3.6.2.2-2                                       En dictionary for LibreOffice 3.6
ii  libreoffice3.6-dict-es                            3.6.2.2-2                                       Es dictionary for LibreOffice 3.6
ii  libreoffice3.6-dict-fr                            3.6.2.2-2                                       Fr dictionary for LibreOffice 3.6
ii  libreoffice3.6-draw                               3.6.2.2-2                                       Draw brand module for LibreOffice 3.6
ii  libreoffice3.6-en-us                              3.6.2.2-2                                       Brand language module for LibreOffice 3.6
ii  libreoffice3.6-impress                            3.6.2.2-2                                       Impress brand module for LibreOffice 3.6
ii  libreoffice3.6-math                               3.6.2.2-2                                       Math brand module for LibreOffice 3.6
ii  libreoffice3.6-stdlibs                            3.6.2.2-2                                       libstdc++ and libgcc_s for too old Linux sys
ii  libreoffice3.6-ure                                3.6.2.2-2                                       UNO Runtime Environment
ii  libreoffice3.6-writer                             3.6.2.2-2                                       Writer brand module for LibreOffice 3.6
ii  libsqlite3-0                                      3.6.22-1                                        SQLite 3 shared library
ii  openoffice.org-dtd-officedocument1.0              2:1.0+LibO3.6.2~rc2-0ubuntu1~ppa2               office productivity suite -- legacy 1.0 XML 
#

No more 3.5.4 packages are installed:
# dpkg -l|grep -i 3.5.4|grep ^ii
#

Didn't find any open duplicate bug for this version. Hope someone can help?
Comment 1 Korrawit Pruegsanusak 2012-10-13 11:08:11 UTC
We are sorry that you found the problem, but we can't process further when we lack the problematic file. Anyway, some questions before uploading:

Does this problem occur with every pdf files? In other words, can you open at least 1 pdf file after upgrade? If you can't open all pdf files, please try resetting user profile first.

But if you can't open only some files (not every files) could you please attach sample pdf file here? Note that once you upload it here, it will be available to public and can't be deleted / removed.

To reset your user profile, see http://wiki.documentfoundation.org/UserProfile
Please do NOT delete your old profile, but keep it somewhere as a backup. If resetting user profile helps, you should upload old user profile here.

Thanks :-)
Comment 2 JuergenL 2012-10-13 13:01:42 UTC
Created attachment 68520 [details]
Screenshot PDF file created with KDE4 PDF print mechanism
Comment 3 JuergenL 2012-10-13 13:12:37 UTC
I did as advised and removed my LO profile(s) by doing this:
$ mv ~/.config/libreoffice ~/.config/libreoffice.org
$ mv ~/.libreoffice ~/.libreoffice.org

Then I started LO and tested importing several PDF files out of different sources into a new empty writer doc. No success.

I did a screenshot from the error msg and printed it from Gwenview with KDE4 print mechanism in a PDF file. This PDF file LO fails also to import. I attached this file to this bug.
I tried also to import a part of the LO Writer Guide downloaded from here:
http://wiki.documentfoundation.org/images/e/e3/0201WG34-IntroducingWriter.pdf
Same behaviour, same error!

HTH
Comment 4 bfoman (inactive) 2013-05-06 12:07:23 UTC
Checked with:
LO 4.0.2.2
Build ID: own W7 debug build
Windows 7 Professional SP1 64 bit

Could not reproduce. PDF import works fine.

Please check if this bug is reproducible with the latest stable release, maybe you could try clean LO install.
Comment 5 JuergenL 2013-05-06 12:33:52 UTC
As I'm running Kubuntu 10.04 LTS (64bit) on both devices there is not offered a LO 4.x to update. Only LO 3.6.6, but I haven't updated yet.

Will try to install LO 4.x if possible. Can also try on a new Kubuntu inst in a VM. But this wouldn't help me as I'm not able to update my productive installations in the next time.
Comment 6 JuergenL 2013-05-06 13:18:28 UTC
I successful installed LO Version 4.0.2.2 (Build ID: 4c82dcdd6efcd48b1d8bba66bfe1989deee49c3) on my Kubuntu 10.04. 

But importing (create new a text doc, then "Insert -> File") the given PDF from http://wiki.documentfoundation.org/images/e/e3/0201WG34-IntroducingWriter.pdf is still not possible. Error message: "Read-Error. Error reading file"

Did it with a user which had never used LO before (for sure I did this: rm -r ~/.libreoffice ~/.config/libreoffice).


Additional I've found that other people with newer Ubuntu have also problems: http://askubuntu.com/questions/290423/how-to-import-a-pdf-in-libreoffice-under-ubuntu-all-pages-are-blank


So at the end I'll get rid of LO and give OpenOffice a try!!!
Comment 7 JuergenL 2013-05-06 13:24:19 UTC
So due to the lack of a howto for the PDF import (search via Google for it) I've always tried to import PDFs into a text document.

Opening the PDF file directly with LO uses Draw and this works fine!

So is there no way to import in text documents?
Comment 8 tommy27 2013-07-20 15:08:12 UTC
Closing bug report and setting status as NOTABUG

the "import PDF bundled extension" opens PDF files in Draw: you should just select a PDF file from menu "File/Open"

trying to open a PDF inside Writer using "Insert/File/" is an incorrect method and that's why you get such error message.
Comment 9 bfoman (inactive) 2013-11-16 20:52:35 UTC
(In reply to comment #8)
> the "import PDF bundled extension" opens PDF files in Draw: you should just
> select a PDF file from menu "File/Open"
> trying to open a PDF inside Writer using "Insert/File/" is an incorrect
> method and that's why you get such error message.

Additional information - to import PDF file into Writer/Impress please select PDF - Portable Document Format (Writer) or PDF - Portable Document Format (Impress) from file types list in Open file dialog.