Bug 171463 - Wrong rendering of .odt
Summary: Wrong rendering of .odt
Status: CONFIRMED
Alias: None
Product: okular
Classification: Applications
Component: ODT backend (show other bugs)
Version: 1.11.3
Platform: Debian testing Unspecified
: LO normal
Target Milestone: ---
Assignee: Okular developers
URL:
Keywords:
Depends on:
Blocks:
 
Reported: 2008-09-22 17:30 UTC by r000n
Modified: 2020-11-20 05:06 UTC (History)
4 users (show)

See Also:
Latest Commit:
Version Fixed In:


Attachments
Document preview in Writer (31.88 KB, image/png)
2008-09-22 17:34 UTC, r000n
Details
Document preview in Okular (23.54 KB, image/png)
2008-09-22 17:42 UTC, r000n
Details
Gzipped .odt (108.75 KB, application/x-compressed-tar)
2008-09-22 17:47 UTC, r000n
Details
another odt document (14.01 KB, application/vnd.oasis.opendocument.text)
2009-05-23 14:16 UTC, Kamil Neczaj
Details

Note You need to log in before you can comment on or make changes to this bug.
Description r000n 2008-09-22 17:30:10 UTC
Version:            (using KDE 4.1.1)
Installed from:    Debian testing/unstable Packages

Document created in Open Office Writer (openoffice.org-core 1:2.4.1-9) and contains 5 pages, 7 images. In Okular: 7 pages (and first page visible as latest)
Comment 1 r000n 2008-09-22 17:34:19 UTC
Created attachment 27513 [details]
Document preview in Writer
Comment 2 Pino Toscano 2008-09-22 17:41:57 UTC
A different number of pages means exactly nothing, as OpenDocument Text is not a fixed-layout document format (PDF is such).

Could you please attach the document?
Comment 3 r000n 2008-09-22 17:42:29 UTC
Created attachment 27514 [details]
Document preview in Okular
Comment 4 r000n 2008-09-22 17:44:26 UTC
(In reply to comment #2)
> A different number of pages means exactly nothing, as OpenDocument Text is not
> a fixed-layout document format (PDF is such).
> 
> Could you please attach the document?
> 
Of course
Comment 5 r000n 2008-09-22 17:47:02 UTC
Created attachment 27515 [details]
Gzipped .odt

In russian :)
Comment 6 Brad Hards 2009-01-15 10:42:50 UTC
Its a bit better in KDE4.2 (and trunk) but still not great.

We need to work harder on table layouts. Other than that, reasonable representation...
Comment 7 Kamil Neczaj 2009-05-23 14:16:39 UTC
Created attachment 33945 [details]
another odt document

I'm confirming. Tables redering is wrong, but okular do not respect also font sizes and font types. All fonts are displayed using sans serif. 

Attached documents come from kde's bugzilla. Here's an interesting effect of okular's rendering. There are several stages of numeration and at 6th page all text go aside the border of page.

You say that number of pages don't have to be same, but it would be nice if it will be.
Comment 8 Brad Hards 2009-05-24 01:20:00 UTC
Kamil,

Those are not the same issue as this bug. If you want your issues to be addressed, it would be better to raise a new bug report.

Brad
Comment 9 Kamil Neczaj 2009-05-24 17:24:25 UTC
The bug title is 'wrong rendering of odt' so my comment is appropriate, but mayby you're right if all issues with odt went to one report there would be too much mess.
Comment 10 Pino Toscano 2009-05-26 16:50:35 UTC
SVN commit 973209 by pino:

properly calculate the page size, converting from points to pixels using the current screen dpi
CCBUG: 171463
CCBUG: 193916
also, it seems to fix the crash of testcase documents in #193542 (not that the resulting quality when open is that good...)
BUG: 193542


 M  +3 -1      converter.cpp  


WebSVN link: http://websvn.kde.org/?view=rev&revision=973209
Comment 11 Pino Toscano 2009-05-26 17:04:59 UTC
SVN commit 973216 by pino:

backport: properly calculate the page size, converting from points to pixels using the current screen dpi
CCBUG: 171463
CCBUG: 193916
CCBUG: 193542


 M  +3 -1      converter.cpp  


WebSVN link: http://websvn.kde.org/?view=rev&revision=973216
Comment 12 Justin Zobel 2020-11-20 01:12:05 UTC
It's better but this is still valid in 1.11.3. Libreoffice Writer shows 5 pages, Okular 6 (last is blank but layout is still off).
Comment 13 Oliver Sander 2020-11-20 05:04:52 UTC
Are you using the git master of Okular for testing?  Because the ooo plugin has been removed in 62d7a6938ac0896df2a4a03e584ba65c82e4e9e9.  Nowadays please use the calligra okular plugins if you want to open an odt/odp file in Okular.
Comment 14 Justin Zobel 2020-11-20 05:06:58 UTC
(In reply to Oliver Sander from comment #13)
> Are you using the git master of Okular for testing?  Because the ooo plugin
> has been removed in 62d7a6938ac0896df2a4a03e584ba65c82e4e9e9.  Nowadays
> please use the calligra okular plugins if you want to open an odt/odp file
> in Okular.

I'm using Okular 1.11.3 with KF 5.75.0 and Qt 5.15.1