Bug 145095 - PPT to PDF: Text with shadow effect is duplicated.
Summary: PPT to PDF: Text with shadow effect is duplicated.
Status: NEW
Alias: None
Product: LibreOffice
Classification: Unclassified
Component: Printing and PDF export (show other bugs)
Version:
(earliest affected)
6.3 all versions
Hardware: All All
: medium normal
Assignee: Not Assigned
URL:
Whiteboard:
Keywords:
Depends on:
Blocks: PDF-Export
  Show dependency treegraph
 
Reported: 2021-10-12 14:47 UTC by Martin Mihalek
Modified: 2023-07-04 14:03 UTC (History)
3 users (show)

See Also:
Crash report or crash signature:


Attachments
text with shadow in ppt (172.00 KB, application/vnd.ms-powerpoint)
2021-10-12 14:49 UTC, Martin Mihalek
Details
broken ppt to pdf export (15.24 KB, application/pdf)
2021-10-12 14:49 UTC, Martin Mihalek
Details
issue screenshot (124.42 KB, image/png)
2021-10-12 14:51 UTC, Martin Mihalek
Details
Export of the ppt from PowerPoint (154.84 KB, application/pdf)
2023-03-18 22:22 UTC, eisa01
Details

Note You need to log in before you can comment on or make changes to this bug.
Description Martin Mihalek 2021-10-12 14:47:56 UTC
Description:
PPT containing text with shadow effect is not exported to PDF properly. Shadow renders as text under the original one content. This duplicates the text content on the pages. This issue occurs in Impress or cli conversion.

Steps to Reproduce:
1.Open PPT file with text that have shadow effect
2.Export to PDF

Actual Results:
1.Shadow is not detected, instead its rendered as text layer with shadow color
2.Exported PDF consist of duplicate text contents

Expected Results:
1. Shadow effect is detected and used
2. Exported PDF doesn't contain duplicate text contents


Reproducible: Always


User Profile Reset: No



Additional Info:
Version: 7.2.1.2 / LibreOffice Community
Build ID: 87b77fad49947c1441b67c559c339af8f3517e22
CPU threads: 16; OS: Mac OS X 10.16; UI render: default; VCL: osx
Locale: en-US (en_CZ.UTF-8); UI: en-US
Calc: threaded
Comment 1 Martin Mihalek 2021-10-12 14:49:20 UTC
Created attachment 175693 [details]
text with shadow in ppt
Comment 2 Martin Mihalek 2021-10-12 14:49:59 UTC
Created attachment 175694 [details]
broken ppt to pdf export
Comment 3 Martin Mihalek 2021-10-12 14:51:00 UTC
Created attachment 175695 [details]
issue screenshot
Comment 4 Roman Kuznetsov 2021-10-13 11:46:20 UTC
It's a problem in a macOS's PDF viewer. Try use another PDF viewer. I don't see the problem in PDF Exchange Viewer and in Google Chrome.
Comment 5 Martin Mihalek 2021-10-13 11:57:13 UTC
Using other PDF viewer displays the document properly, however parsing the document via apache Apache PDFBox 2.0.22 result in the same issue + not being able to retrieve text color. It's possible that it's Apache PDFBox issue in the end, however exporting the same document from pptx works without any issue...
Comment 6 QA Administrators 2021-10-14 03:48:08 UTC Comment hidden (obsolete)
Comment 7 psidiumcode 2021-10-20 17:22:09 UTC
I could reproduce it in ver:

Version: 6.3.0.0.beta2+
Build ID: e4553dbf3d4c47c10326c9d2f0bedfe69922d3d4
CPU threads: 12; OS: Mac OS X 10.15.7; UI render: default; VCL: osx; 
Locale: en-GB (en_GB.UTF-8); UI-Language: en-US
Calc: threaded

Version: 7.3.0.0.alpha0+ / LibreOffice Community
Build ID: 56883788d0090383dad58552f5a11044ffe64a44
CPU threads: 12; OS: Mac OS X 10.15.7; UI render: default; VCL: osx
Locale: en-GB (en_GB.UTF-8); UI: en-US
Calc: threaded
Comment 8 eisa01 2023-03-18 22:22:16 UTC
Still present, and likely not macOS only given the component

PowerPoint manage to export a file that doesn't have duplicate text layers when copied out of Preview. However, copying out from Firefox PDF viewer does not exhibit duplicate text

There's quite a few bugs exhibited in Preview only...

Version: 7.5.1.2 (AARCH64) / LibreOffice Community
Build ID: fcbaee479e84c6cd81291587d2ee68cba099e129
CPU threads: 10; OS: Mac OS X 13.2.1; UI render: default; VCL: osx
Locale: en-US (en_US.UTF-8); UI: en-US
Calc: threaded
Comment 9 eisa01 2023-03-18 22:22:42 UTC
Created attachment 186061 [details]
Export of the ppt from PowerPoint
Comment 10 ⁨خالد حسني⁩ 2023-07-04 14:03:05 UTC
We do indeed draw the text twice, once for the main text and once for the shadow. PowerPoint PDF seems to be creating a raster image for the shadow, but this makes the PDF file size 10 times the LibreOffice export.

There does not seem to be a built-in PDF support for shadow effect, so what we are doing is probably as good as any other option. Any suggestions, other than rasterizing the text into an image, are welcome.