Bug 48739 - Incorrect render of some CDR files.
Summary: Incorrect render of some CDR files.
Status: RESOLVED FIXED
Alias: None
Product: LibreOffice
Classification: Unclassified
Component: Draw (show other bugs)
Version:
(earliest affected)
unspecified
Hardware: x86 (IA32) All
: medium normal
Assignee: Fridrich Strba
URL:
Whiteboard:
Keywords:
Depends on:
Blocks:
 
Reported: 2012-04-15 12:27 UTC by Ilya
Modified: 2013-11-13 09:52 UTC (History)
1 user (show)

See Also:
Crash report or crash signature:


Attachments
Sample CDR file (93.55 KB, application/vnd.corel-draw)
2012-04-15 12:27 UTC, Ilya
Details
Correct rendering of attached CDR file (203.49 KB, image/jpeg)
2012-04-15 12:31 UTC, Ilya
Details
Screenshot: firefox and corel (100.01 KB, image/png)
2012-04-23 07:36 UTC, Valek Filippov
Details
Incorrect size sample 2 (901.58 KB, application/vnd.corel-draw)
2012-04-23 11:42 UTC, Ilya
Details
Incorrect size sample 2 pdf (831.46 KB, application/pdf)
2012-04-23 11:52 UTC, Ilya
Details

Note You need to log in before you can comment on or make changes to this bug.
Description Ilya 2012-04-15 12:27:34 UTC
Created attachment 60026 [details]
Sample CDR file

Please, see attached CDR file. It has two problems:
- incorrect canvas size
- incorrect colors rendering.

The problem related to libcdr library.
Comment 1 Ilya 2012-04-15 12:31:37 UTC
Created attachment 60027 [details]
Correct rendering of attached CDR file
Comment 2 Valek Filippov 2012-04-22 18:26:52 UTC
Incorrect canvas size problem is fixed in GIT, fix will be available in the next release.
Fix for incorrect colours is under development.
Comment 3 Fridrich Strba 2012-04-23 06:52:04 UTC
The conversion of spot colours is fixed in git master, will be part of 0.0.7 release.
Comment 4 Valek Filippov 2012-04-23 07:36:03 UTC
Created attachment 60484 [details]
Screenshot: firefox and corel

xhtml (current GIT version) in Firefox and CDR in Corel side by side.
Comment 5 Ilya 2012-04-23 11:42:52 UTC
Created attachment 60491 [details]
Incorrect size sample 2

Thank you very much! Colors fix works like charm!
But I have another CDR file with "incorrect size" issue. Please, see an attachment.

Thanks!
Comment 6 Ilya 2012-04-23 11:52:58 UTC
Created attachment 60492 [details]
Incorrect size sample 2 pdf

Please, look at PDF render of "simpson.cdr" file. Here I have width*10 and height*2.3. 
Also, seems like left and top edges are behind the svg viewport.
Comment 7 Fridrich Strba 2012-04-23 12:32:54 UTC
The canvas in that simpson.cdr file is correct. The problem is that CDR allows to draw off-page. When you convert to xhtml, firefox will not render that stuff. On the contrary, if you manually edit the file and give it the svg header and delete the xhtml part of it, you will be able to open it in inkscape and see that all objects are there.
The same in LibreOffice, where the off-page objects are still rendered.
The metafile of that file indicates that it is a 210mmx297mm A4 page and the same thing we read from the riff document.
Comment 8 Valek Filippov 2012-07-08 09:42:56 UTC
I believe this one can be closed as resolved/fixed (fixes will be available with the next release).

Ilya, thank you very much for this bug-report!
Feel free to reopen and/or create new ones as needed.