Bug 121455 - hang: Doesn't open embedded PDF file from .odt
Summary: hang: Doesn't open embedded PDF file from .odt
Status: NEW
Alias: None
Product: LibreOffice
Classification: Unclassified
Component: LibreOffice (show other bugs)
Version:
(earliest affected)
Inherited From OOo
Hardware: All All
: low minor
Assignee: Not Assigned
URL:
Whiteboard:
Keywords: perf
Depends on:
Blocks: OLE-Objects Performance CPU-AT-100%
  Show dependency treegraph
 
Reported: 2018-11-16 07:00 UTC by Maarten van Druten
Modified: 2024-04-25 06:39 UTC (History)
2 users (show)

See Also:
Crash report or crash signature:


Attachments
this is the pdf file that I want to embed (1.77 MB, application/pdf)
2018-11-20 10:16 UTC, Maarten van Druten
Details
odt with embedded pdf (28.41 KB, application/vnd.oasis.opendocument.text)
2018-11-20 18:30 UTC, Oliver Brinzing
Details
odt with embedded pdf (1.56 MB, application/vnd.oasis.opendocument.text)
2018-12-13 17:23 UTC, Oliver Brinzing
Details

Note You need to log in before you can comment on or make changes to this bug.
Description Maarten van Druten 2018-11-16 07:00:16 UTC
Description:
user request:
to embed one of more PDF files in one odt file.
So that the PDF(s) are displayed as hyperlinks (or icon's) and after clicking the hyperlinks the PDF reader of the operating system opens the "embedded" PDF document.
This way the embedded PDF files stays with the document, and you solve the problem
of broken  network links, for example when a network linked PDF files get renamed or removed.
Of course this means that the odt file will be bigger in size.

When I tried the import OLE object approach, it didn't work, after importing an PDF file, when clicking on the OLE icon I got the following error:
Error with activating object
General error.
General input/output error.
General OLE error

There please consider an embed PDF file(s) within the *.odt file document
like described above

Steps to Reproduce:
1. fix the OLE import function
2. consider a different more easier approach (just embed PDF file(s) with the ODT extension)

Actual Results:
In 6.1.1.2 LibreOffice Writer - Import Object - OLE Object
Select from existing document (I have Dutch version, I translated the Dutch text to English)
and select both check marks (select, and show as pictogram)
Then browse to an PDF file and add the file, this works, 
an pictogram is shown in the document,but after clicking the OLE icon
These errors are shown: Error with activating object
General error.
General input/output error.
General OLE error

Expected Results:
Errors:
Error with activating object
General error.
General input/output error.
General OLE error


Reproducible: Always


User Profile Reset: No



Additional Info:
the PDF file should be opened, after I double clicked the OLE icon.
Comment 1 Oliver Brinzing 2018-11-17 09:47:27 UTC
Thank you for reporting the bug. 

> These errors are shown: Error with activating object

I can't reproduce it in

Version: 6.1.3.2 (x64)
Build-ID: 86daf60bf00efa86ad547e59e09d6bb77c699acb
CPU-Threads: 4; BS: Windows 10.0; UI-Render: Standard; 
Gebietsschema: de-DE (de_DE); Calc: 

after clicking the ole icon, the pdf opens with draw.

Please add a detailed description and example files how the bug can be reproduced.

I have set the bug's status to 'NEEDINFO'. 
Please change it back to 'UNCONFIRMED' once the requested info is provided.
Comment 2 Maarten van Druten 2018-11-20 10:16:23 UTC
Created attachment 146815 [details]
this is the pdf file that I want to embed
Comment 3 Oliver Brinzing 2018-11-20 18:30:34 UTC
Created attachment 146847 [details]
odt with embedded pdf

added a simple odt file with an embedded pdf.
the pdf file seems to be embedded (converted) as a draw (office:drawing) file.

an attempt to include your pdf makes lo freeze.
Comment 4 Oliver Brinzing 2018-11-20 18:42:35 UTC
steps to reproduce:
- open new writer document
- menu Insert/Object/OLE Object...
- (*) Create from file
- select attached pdf file
  [ ] Link to file
  [X] Dispaly as Icon
- freeze

Version: 6.2.0.0.alpha1+ (x64)
Build ID: f5011d7226060e04e7b92f035f71e285b853712c
CPU threads: 4; OS: Windows 10.0; UI render: default; VCL: win; 
Locale: de-DE (de_DE); UI-Language: en-US
Calc: threaded
Comment 5 Xisco Faulí 2018-12-12 19:11:15 UTC
this is a hang, not a crash...
Comment 6 Xisco Faulí 2018-12-12 19:19:22 UTC
Actually it doesn't hang, it just takes a while to load the document

Versión: 6.1.3.2
Id. de compilación: 86daf60bf00efa86ad547e59e09d6bb77c699acb
Subprocs. CPU: 1; SO: Windows 6.1; Repres. IU: predet.; 
Configuración regional: es-ES (es_ES); Calc: group threaded

@Oliver Brinzing, Could you plese double check ? You will need to wait a couple of minutes...
Comment 7 Oliver Brinzing 2018-12-13 17:22:29 UTC
(In reply to Xisco Faulí from comment #6)
> Actually it doesn't hang, it just takes a while to load the document

yes, after some time, the pdf is included, but it will be converted to draw.
a double click opens draw instead of the pdf file.
Comment 8 Oliver Brinzing 2018-12-13 17:23:50 UTC
Created attachment 147508 [details]
odt with embedded pdf
Comment 9 Xisco Faulí 2018-12-18 13:14:40 UTC
(In reply to Oliver Brinzing from comment #7)
> (In reply to Xisco Faulí from comment #6)
> > Actually it doesn't hang, it just takes a while to load the document
> 
> yes, after some time, the pdf is included, but it will be converted to draw.
> a double click opens draw instead of the pdf file.

That's the expected behaviour...
Comment 10 Oliver Brinzing 2018-12-18 17:47:26 UTC
(In reply to Xisco Faulí from comment #9)
ouble click opens draw instead of the pdf file.

> That's the expected behaviour...

yes, but i think the issue writer expected to include the pdf file
into an odt file without converting it into a draw object.
Comment 11 Xisco Faulí 2018-12-19 08:48:47 UTC
(In reply to Oliver Brinzing from comment #10)
> (In reply to Xisco Faulí from comment #9)
> ouble click opens draw instead of the pdf file.
> 
> > That's the expected behaviour...
> 
> yes, but i think the issue writer expected to include the pdf file
> into an odt file without converting it into a draw object.

Then, insert it as an image...
Comment 12 QA Administrators 2020-12-19 03:49:03 UTC Comment hidden (obsolete)
Comment 13 Roman Kuznetsov 2021-01-13 17:30:44 UTC
It takes 100% of one CPU core in

Version: 7.2.0.0.alpha0+ (x64)
Build ID: 94f6765d6ecc3145fa2d266231124003cf953118
CPU threads: 4; OS: Windows 6.1 Service Pack 1 Build 7601; UI render: Skia/Raster; VCL: win
Locale: ru-RU (ru_RU); UI: ru-RU
Calc: CL

ps: the PDF has many thousands shapes, you can see it in Navigator after open it in Draw from embedded icon

And I don't think a PDF converting to a drawing object is a right behavior here
Comment 14 QA Administrators 2023-01-14 03:25:39 UTC
Dear Maarten van Druten,

To make sure we're focusing on the bugs that affect our users today, LibreOffice QA is asking bug reporters and confirmers to retest open, confirmed bugs which have not been touched for over a year.

There have been thousands of bug fixes and commits since anyone checked on this bug report. During that time, it's possible that the bug has been fixed, or the details of the problem have changed. We'd really appreciate your help in getting confirmation that the bug is still present.

If you have time, please do the following:

Test to see if the bug is still present with the latest version of LibreOffice from https://www.libreoffice.org/download/

If the bug is present, please leave a comment that includes the information from Help - About LibreOffice.
 
If the bug is NOT present, please set the bug's Status field to RESOLVED-WORKSFORME and leave a comment that includes the information from Help - About LibreOffice.

Please DO NOT

Update the version field
Reply via email (please reply directly on the bug tracker)
Set the bug's Status field to RESOLVED - FIXED (this status has a particular meaning that is not 
appropriate in this case)


If you want to do more to help you can test to see if your issue is a REGRESSION. To do so:
1. Download and install oldest version of LibreOffice (usually 3.3 unless your bug pertains to a feature added after 3.3) from https://downloadarchive.documentfoundation.org/libreoffice/old/

2. Test your bug
3. Leave a comment with your results.
4a. If the bug was present with 3.3 - set version to 'inherited from OOo';
4b. If the bug was not present in 3.3 - add 'regression' to keyword


Feel free to come ask questions or to say hello in our QA chat: https://web.libera.chat/?settings=#libreoffice-qa

Thank you for helping us make LibreOffice even better for everyone!

Warm Regards,
QA Team

MassPing-UntouchedBug