Bug 80120 - Crop combined with contour gives wrong PDF export
Summary: Crop combined with contour gives wrong PDF export
Status: RESOLVED WORKSFORME
Alias: None
Product: LibreOffice
Classification: Unclassified
Component: Printing and PDF export (show other bugs)
Version:
(earliest affected)
4.1.0.4 release
Hardware: Other All
: medium normal
Assignee: Not Assigned
URL:
Whiteboard: BSA
Keywords: bibisected, bisected, filter:pdf, regression
Depends on:
Blocks: PDF-Export Image-Crop Regressions-GraphicPrimitive2D
  Show dependency treegraph
 
Reported: 2014-06-17 07:22 UTC by Fernand
Modified: 2022-02-07 19:21 UTC (History)
7 users (show)

See Also:
Crash report or crash signature:


Attachments
Writter DOC with croped an contoured image (151.37 KB, application/vnd.oasis.opendocument.text)
2014-06-17 07:22 UTC, Fernand
Details
PDF produced with LO 4.2 (318.11 KB, application/pdf)
2014-06-17 07:25 UTC, Fernand
Details
PDF_produced with LO 4.0 (52.26 KB, application/pdf)
2014-06-17 07:27 UTC, Fernand
Details
PDF produced with LO 7.4.0.0.alpha0+ (58.86 KB, application/pdf)
2022-02-06 22:17 UTC, Jean-Baptiste Faure
Details

Note You need to log in before you can comment on or make changes to this bug.
Description Fernand 2014-06-17 07:22:38 UTC
Created attachment 101205 [details]
Writter DOC with croped an contoured image

When an image is cropped and has a contour the PDF export is no longer correct, de contour is no longer present.
Was correct in 4.0
When removing the crop (its anyhow bad behaviour to use crop and contour) then the PDF produced correct contouring.

Steps to reproduce:
1. Open the attached Writer DOC....
2. Make a PDF ....
3. ....

Current behavior: attached CROP_CONTOUR_4.2.PDF

Expected behavior: attached CROP_CONTOUR_4.0.PDF
              
Operating System: Windows (other)
Version: 4.2.0.4 release
Comment 1 Fernand 2014-06-17 07:25:32 UTC
Created attachment 101206 [details]
PDF produced with LO 4.2
Comment 2 Fernand 2014-06-17 07:27:09 UTC
Created attachment 101207 [details]
PDF_produced with LO 4.0
Comment 3 tommy27 2014-06-18 02:23:52 UTC
tested under Win7x64
bug reproducible with 4.1.0.4 and 4.2.4.2 
not reproducible with 4.0.6.2

hence early 4.1.x regression
needs bisecting
Comment 4 Michael Weghorn 2015-01-10 23:57:17 UTC
Reproduced on Debian with a current master build.
Comment 5 Michael Weghorn 2015-01-11 00:15:12 UTC
bibisect result:

# bad: [752769ad0d2179e17ea0a08cc9004df7b890305b] source-hash-60c64b437c6678dd1d3fa3a6fc2b7da0480890d4
# good: [2e0fa432485d1db6abd355dad8ccb06f0b97e4fb] source-hash-ce90f99a2d66c2b998ad3f9f028e2ea623a757f5
git bisect start 'last42onmaster' 'last40onmaster'
# good: [3b187f1cb396a02f99a3da44b8b1daa40d795749] source-hash-344d80ee1d3829b28c18135ac4f0500d4b69aedd
git bisect good 3b187f1cb396a02f99a3da44b8b1daa40d795749
# good: [7248c8d3ae94540ec2e94d6b760ef52708a71ebe] source-hash-33f6696f393363dc9c182dfc732f87465e5e53ea
git bisect good 7248c8d3ae94540ec2e94d6b760ef52708a71ebe
# good: [1b204196f0fbb248722573341fab666b41038431] source-hash-03e9845525037a02dac320ad09fb6eed34e9f0da
git bisect good 1b204196f0fbb248722573341fab666b41038431
# good: [1b204196f0fbb248722573341fab666b41038431] source-hash-03e9845525037a02dac320ad09fb6eed34e9f0da
git bisect good 1b204196f0fbb248722573341fab666b41038431
# bad: [c81a8a0dcfc1ed095a80e4485c89dd0fcaf73f31] source-hash-c69ed33628ec0b7abf6296539cf280d6c4265930
git bisect bad c81a8a0dcfc1ed095a80e4485c89dd0fcaf73f31
# bad: [c81a8a0dcfc1ed095a80e4485c89dd0fcaf73f31] source-hash-c69ed33628ec0b7abf6296539cf280d6c4265930
git bisect bad c81a8a0dcfc1ed095a80e4485c89dd0fcaf73f31
# bad: [c81a8a0dcfc1ed095a80e4485c89dd0fcaf73f31] source-hash-c69ed33628ec0b7abf6296539cf280d6c4265930
git bisect bad c81a8a0dcfc1ed095a80e4485c89dd0fcaf73f31
# bad: [c81a8a0dcfc1ed095a80e4485c89dd0fcaf73f31] source-hash-c69ed33628ec0b7abf6296539cf280d6c4265930
git bisect bad c81a8a0dcfc1ed095a80e4485c89dd0fcaf73f31
# good: [5c95a5c8caeeb347ef97f337a237d66c35261710] source-hash-a6d89e17995987549db36695f3ea490a18f30ba4
git bisect good 5c95a5c8caeeb347ef97f337a237d66c35261710
# good: [5c95a5c8caeeb347ef97f337a237d66c35261710] source-hash-a6d89e17995987549db36695f3ea490a18f30ba4
git bisect good 5c95a5c8caeeb347ef97f337a237d66c35261710
# good: [e1c300f1d24977d8ea10e57115516174929bbc23] source-hash-832586588c3ed5f1686a4ecebc2ed198ce049b24
git bisect good e1c300f1d24977d8ea10e57115516174929bbc23
# good: [e1c300f1d24977d8ea10e57115516174929bbc23] source-hash-832586588c3ed5f1686a4ecebc2ed198ce049b24
git bisect good e1c300f1d24977d8ea10e57115516174929bbc23
# bad: [8aabf2aee6514311020b855a95a6e44bab3a5b0d] source-hash-0aa9ced531b8d85ad067c1d156a9708eea628d78
git bisect bad 8aabf2aee6514311020b855a95a6e44bab3a5b0d
# bad: [8aabf2aee6514311020b855a95a6e44bab3a5b0d] source-hash-0aa9ced531b8d85ad067c1d156a9708eea628d78
git bisect bad 8aabf2aee6514311020b855a95a6e44bab3a5b0d
# good: [11ac44b0fb233f1f98e2f083598f6720a04e457f] source-hash-3c01203ea657b9a3538f9956591b3d4da5fce6e7
git bisect good 11ac44b0fb233f1f98e2f083598f6720a04e457f
# first bad commit: [8aabf2aee6514311020b855a95a6e44bab3a5b0d] source-hash-0aa9ced531b8d85ad067c1d156a9708eea628d78
Comment 6 Matthew Francis 2015-01-15 15:47:52 UTC
The behaviour changed at the below commit.

Adding Cc: to caolanm@redhat.com; Could you possibly take a look at this? Thanks


commit 2e5167528f7566dd9b000e50fc1610b7bf99132a
Author:     Armin Le Grand <alg@apache.org>
AuthorDate: Thu Oct 31 14:43:21 2013 +0000
Commit:     Caolán McNamara <caolanm@redhat.com>
CommitDate: Tue Nov 5 15:24:18 2013 +0000

    Resolves: #i123500# unified Graphic processing to use GraphicPrimitive2D
    
    (cherry picked from commit f5d69b2b8b002ca6905496a9d9065ef76b5641d7)
    
    Conflicts:
        sw/source/core/doc/notxtfrm.cxx
    
    Change-Id: I1758aadcbe97ece271277378e62300b895421768
Comment 7 Bernhard Dippold 2015-10-26 13:56:31 UTC
I run in this bug by printing a writer file with an image I cropped before I decided to add a contour. 

By reading this bug report I found the solution: just remove the crop - thanks!

But if someone else can confirm that printing to a printer is affected too, I'd ask to modify the title.
Comment 8 Robinson Tryon (qubit) 2015-12-13 11:16:17 UTC Comment hidden (obsolete)
Comment 9 Xisco Faulí 2016-09-26 15:03:12 UTC
Adding Cc: to Armin Le Grand
Comment 10 QA Administrators 2019-03-02 03:51:16 UTC Comment hidden (obsolete)
Comment 11 QA Administrators 2021-03-02 03:48:24 UTC Comment hidden (obsolete)
Comment 12 Fernand 2021-03-03 11:50:28 UTC
Still same situation, de image is missing in the PDF
Comment 13 Jean-Baptiste Faure 2022-02-06 22:16:26 UTC
Not reproducible with

Version: 7.4.0.0.alpha0+ / LibreOffice Community
Build ID: 8b327cd86d71d71d2f5f883321e5d53e3b42ed4e
CPU threads: 8; OS: Linux 5.13; UI render: default; VCL: gtk3
Locale: fr-FR (fr_FR.UTF-8); UI: en-US
Ubuntu_20.04_x86-64
Calc: threaded

and

Version: 7.3.1.0.0+ / LibreOffice Community
Build ID: 57a9a2f2c7b60b1edffae0a070f0eefaedcf9e6d
CPU threads: 8; OS: Linux 5.13; UI render: default; VCL: gtk3
Locale: fr-FR (fr_FR.UTF-8); UI: fr-FR
Ubuntu_20.04_x86-64
Calc: threaded

Closing as WorksForMe. Please feel free to reopen if you disagree.

Best regards. JBF
Comment 14 Jean-Baptiste Faure 2022-02-06 22:17:54 UTC
Created attachment 178102 [details]
PDF produced with LO 7.4.0.0.alpha0+
Comment 15 Xisco Faulí 2022-02-07 19:21:35 UTC
This is already fixed in 

Version: 6.0.0.3
Build ID: 64a0f66915f38c6217de274f0aa8e15618924765
CPU threads: 8; OS: Linux 5.10; UI render: default; VCL: gtk2; 
Locale: en-US (es_ES.UTF-8); Calc: group

so it has been fixed for quite a while