Bug 134430 - PDF Image inserted in document has wrong line colours when exported as PDF
Summary: PDF Image inserted in document has wrong line colours when exported as PDF
Status: NEW
Alias: None
Product: LibreOffice
Classification: Unclassified
Component: Printing and PDF export (show other bugs)
Version:
(earliest affected)
6.0.7.3 release
Hardware: All All
: medium normal
Assignee: Not Assigned
URL:
Whiteboard:
Keywords:
Depends on:
Blocks: PDF-Export
  Show dependency treegraph
 
Reported: 2020-07-01 10:05 UTC by Stephan van den Akker
Modified: 2024-07-04 07:23 UTC (History)
2 users (show)

See Also:
Crash report or crash signature:


Attachments
Test PDF image produced in QGIS 3.14.0 (5.21 KB, application/pdf)
2020-07-01 10:05 UTC, Stephan van den Akker
Details
PDF result with first PDF inserted as image (4.48 KB, application/pdf)
2020-07-03 20:59 UTC, Roman Kuznetsov
Details

Note You need to log in before you can comment on or make changes to this bug.
Description Stephan van den Akker 2020-07-01 10:05:06 UTC
Created attachment 162553 [details]
Test PDF image produced in QGIS 3.14.0

How to reproduce:
1: Insert PDF attachment#1 as image in document
2: Export document to PDF

Expected result:
- Line colours in exported PDF are identical to line colours in original document

Actual Result:
- All line colours in the exported PDF are black

The image was produced in QGIS version 3.14.0-Pi by exporting a "print layout" of some scratch vector map layers. PDF Export settings included "Always Export Text as Paths (Recommended)". The white lines surrounding the characters where created with the "text buffer" feature for layer labels.

Problem observed in:

Version: 6.4.3.2
Build ID: 1:6.4.3-0ubuntu0.20.04.1
CPU threads: 2; OS: Linux 5.4; UI render: default; VCL: gtk3; 
Locale: nl-NL (nl_NL.UTF-8); UI-Language: en-US
Calc: threaded

Version: 7.0.0.0.beta2
Build ID: 00(Build:0)
CPU threads: 8; OS: Linux 5.7; UI render: default; VCL: kf5
Locale: en-GB (en_GB.UTF-8); UI: en-GB
Calc: threaded

Version: 7.1.0.0.alpha0+
Build ID: c98affa44e3f61279ae9fe052dbcfbda0c58838e
CPU threads: 8; OS: Linux 5.7; UI render: default; VCL: kf5
Locale: en-GB (en_GB.UTF-8); UI: en-GB
Calc: threaded

More severe problem (everything black, not just the lines) observed in:

Versie: 6.0.7.3 (x64)
Build ID: dc89aa7a9eabfd848af146d5086077aeed2ae4a5
CPU-threads: 4; Besturingssysteem: Windows 10.0; UI-render: GL; 
Locale: nl-NL (nl_NL); Calc: group

Version: 6.0.7.3
Build ID: 1:6.0.7-0ubuntu0.18.04.10
CPU threads: 8; OS: Linux 4.15; UI render: default; VCL: gtk3; 
Locale: en-US (en_US.UTF-8); Calc: group
Comment 1 BogdanB 2020-07-01 10:11:41 UTC
I get an error when exporting to PDF.

"This page contains an error. It's possible that Acrobat it is not showing the image corectly."

In fact I have a blank page.


Tested on
Version: 6.4.4.2 (x64)
Build ID: 3d775be2011f3886db32dfd395a6a6d1ca2630ff
CPU threads: 4; OS: Windows 10.0 Build 18363; UI render: GL; VCL: win; 
Locale: ro-RO (ro_RO); UI-Language: en-US
Calc: threaded
Comment 2 Stephan van den Akker 2020-07-01 11:18:18 UTC
I can confirm your problem with Adobe Acrobat Reader DC 19.0.010.20098 on Windows 10. PDF-XChange viewer version 2.5 on Windows 10 displays a black-and-white image.

LO Draw 6.0 and Gimp 2.8 on the same system will import the exported PDF, but with the wrong line colours.
Comment 3 Roman Kuznetsov 2020-07-03 20:59:25 UTC
Created attachment 162623 [details]
PDF result with first PDF inserted as image

there is a problem with white borders aroud TEST word and with red border in triangle

Version: 7.0.0.1.0+
Build ID: 30ea3ba86b110db68c19815c5c67d4d315c091bf
Потоков ЦП: 4; ОС: Linux 5.5; Отрисовка ИП: по умолчанию; VCL: kf5
Locale: ru-RU (ru_RU.UTF-8); ИП: ru-RU
TinderBox: Linux-rpm_deb-x86_64@86-TDF, Branch:libreoffice-7-0, Time: 2020-07-03_04:42:21
Calc: threaded
Comment 4 Roman Kuznetsov 2020-07-03 21:02:40 UTC
but there is also difference between PDF readers! Look at PDF result from attach in Okular and in Firefox!

So I think it may be problem with SVG inside first Test PDF...
Comment 5 QA Administrators 2022-07-04 03:28:18 UTC Comment hidden (obsolete)
Comment 6 QA Administrators 2024-07-04 03:15:22 UTC Comment hidden (obsolete)
Comment 7 Stephan van den Akker 2024-07-04 07:23:45 UTC
I can confirm the problem is still present in:

Version: 24.2.4.2 (X86_64) / LibreOffice Community
Build ID: 420(Build:2)
CPU threads: 16; OS: Linux 6.9; UI render: default; VCL: kf6 (cairo+xcb)
Locale: en-GB (en_GB.UTF-8); UI: en-GB
Calc: threaded

Version: 25.2.0.0.alpha0+ (X86_64) / LibreOffice Community
Build ID: 5dfa4bda2cb023a6a2fbccd4ff63a704f958851f
CPU threads: 16; OS: Linux 6.9; UI render: default; VCL: kf5 (cairo+xcb)
Locale: en-GB (en_GB.UTF-8); UI: en-GB
Calc: threaded