Bug 144478 - Embedded PDF in a xlsx file doesn't open in Calc
Summary: Embedded PDF in a xlsx file doesn't open in Calc
Status: RESOLVED DUPLICATE of bug 66581
Alias: None
Product: LibreOffice
Classification: Unclassified
Component: Calc (show other bugs)
Version:
(earliest affected)
7.1.5.2 release
Hardware: All All
: medium normal
Assignee: Not Assigned
URL:
Whiteboard:
Keywords:
Depends on:
Blocks:
 
Reported: 2021-09-13 17:57 UTC by Julien Nabet
Modified: 2021-09-14 11:53 UTC (History)
2 users (show)

See Also:
Crash report or crash signature:


Attachments
file to reproduce the pb (181.72 KB, application/vnd.openxmlformats-officedocument.spreadsheetml.sheet)
2021-09-13 17:58 UTC, Julien Nabet
Details
EMF image with PDF icon and "testpdf.pdf" text (8.00 KB, image/x-emf)
2021-09-14 07:31 UTC, Bartosz
Details
PDF file extracted from the .xlsx (183.00 KB, application/pdf)
2021-09-14 07:34 UTC, Bartosz
Details

Note You need to log in before you can comment on or make changes to this bug.
Description Julien Nabet 2021-09-13 17:57:19 UTC
Description:
On pc Debian x86-64 with LO 7.1.5 Debian package or with master sources updated today, I can't open the pdf file in a xlsx (didn't test with xls or with ods).

I made a test on Win10 with master sources updated some days ago, idem.

Steps to Reproduce:
1. Open attached file
2. Double click the icon


Actual Results:
LO considers it as a kind of image but you can change embedded file name.

Expected Results:
The PDF file should open with PDF reader of the machine


Reproducible: Always


User Profile Reset: Yes



Additional Info:
Version: 7.1.5.2 / LibreOffice Community
Build ID: 10(Build:2)
CPU threads: 12; OS: Linux 5.10; UI render: default; VCL: gtk3
Locale: fr-FR (fr_FR.UTF-8); UI: en-US
Debian package version: 1:7.1.5-2
Calc: threaded
Comment 1 Julien Nabet 2021-09-13 17:58:56 UTC
Created attachment 175007 [details]
file to reproduce the pb
Comment 2 Julien Nabet 2021-09-13 19:11:01 UTC
Perhaps related to these logs:
warn:emfio:23681:23681:emfio/source/reader/emfreader.cxx:452: 		EMR_COMMENT_WINDOWS_METAFILE not implemented
warn:emfio:23681:23681:emfio/source/reader/emfreader.cxx:2191: TODO: EMF record not implemented: SELECTPALETTE
Comment 3 Julien Nabet 2021-09-13 19:17:11 UTC
Bartosz: thought you might be interested in this one since it may be related to EMF implementation (see my previous comment)
Comment 4 Roman Kuznetsov 2021-09-13 19:43:23 UTC
confirm in

Version: 7.2.0.4 (x64) / LibreOffice Community
Build ID: 9a9c6381e3f7a62afc1329bd359cc48accb6435b
CPU threads: 4; OS: Windows 6.1 Service Pack 1 Build 7601; UI render: Skia/Raster; VCL: win
Locale: ru-RU (ru_RU); UI: en-US
Calc: CL

but, Julien where did you find that file?
Comment 5 Julien Nabet 2021-09-13 19:52:35 UTC
(In reply to Roman Kuznetsov from comment #4)
> ...
> but, Julien where did you find that file?

I generated it myself with Excel. First I created a pdf containing just "test", then I inserted it as an object.
Comment 6 Bartosz 2021-09-14 07:31:05 UTC
Created attachment 175013 [details]
EMF image with PDF icon and "testpdf.pdf" text

(In reply to Julien Nabet from comment #3)
> Bartosz: thought you might be interested in this one since it may be related
> to EMF implementation (see my previous comment)

The .xlsx document contain two embedded files:
- Pdf document which should be opened in for eg. Adobe Reader
- EMF file which contain the PDF icon

The EMF icon is displayed correctly, and the issue is not related to EMF import.
Comment 7 Bartosz 2021-09-14 07:34:16 UTC
Created attachment 175014 [details]
PDF file extracted from the .xlsx
Comment 8 NISZ LibreOffice Team 2021-09-14 11:53:33 UTC
This is an OLE object in XLSX, import of which is not supported yet at all.

*** This bug has been marked as a duplicate of bug 66581 ***