Bug 139792 - PDF Export Error (pdf inside odt exported to pdf)
Summary: PDF Export Error (pdf inside odt exported to pdf)
Status: RESOLVED WORKSFORME
Alias: None
Product: LibreOffice
Classification: Unclassified
Component: Printing and PDF export (show other bugs)
Version:
(earliest affected)
7.0.4.2 release
Hardware: x86-64 (AMD64) Windows (All)
: medium normal
Assignee: Not Assigned
URL:
Whiteboard:
Keywords:
Depends on:
Blocks:
 
Reported: 2021-01-20 19:46 UTC by BDF
Modified: 2022-02-07 12:56 UTC (History)
2 users (show)

See Also:
Crash report or crash signature:


Attachments
Wikipedia Main page as pdf test file (1.35 MB, application/pdf)
2021-01-20 19:47 UTC, BDF
Details
odt file with the drag&dropped pdf file (1.79 MB, application/vnd.oasis.opendocument.text)
2021-01-20 19:47 UTC, BDF
Details
pdf file created out of odt file with pdf in it (1.24 KB, application/pdf)
2021-01-20 19:48 UTC, BDF
Details
UPDATE: German Wikipedia Main page as pdf test file (636.65 KB, application/pdf)
2021-02-12 07:50 UTC, BDF
Details
UPDATE: odt file with the drag&dropped pdf file (885.28 KB, application/vnd.oasis.opendocument.text)
2021-02-12 07:51 UTC, BDF
Details
UPDATE: pdf file created out of odt file with pdf in it (513.18 KB, application/pdf)
2021-02-12 07:53 UTC, BDF
Details

Note You need to log in before you can comment on or make changes to this bug.
Description BDF 2021-01-20 19:46:31 UTC
Description:
When you import a PDF file into an odt file and export it back as pdf, the original pdf is not correctly displayed and seems to 'break' printing.

Steps to Reproduce:
1. Import any pdf file into an odt file by drag and drop
2. export the odt as pdf (doesn't matter how you do it)

Actual Results:
The pdf file is not correctly displayed if it the content is included at all. It stopped my printer from printing (the pdf was on page 5 and the printer printed page 1-4 and then stopped)

Expected Results:
Export content to pdf as displayed.
Print pdf on printer as displayed.


Reproducible: Always


User Profile Reset: No



Additional Info:
Included files:
* Wikipedia Main Page - 2021-01-20.pdf -> Main Page of Wikipedia as example pdf
* BUG - pdf in odt.odt -> The pdf imported to the odt file
* BUG - pdf in odt exported into pdf.pdf -> the odt exported as pdf

----------------------------------------

It started with 'Hey cool Writer can directly import pdf files! Thats neat!
Went over 'How would I select the second page of the pdf? Doesn't matter, it's just one scanned page anyway'
And ended in 'Why the hack is this thing not printing?'

I don't mind pdf files not working / not beeing able to be imported into writer, but if pdf files are accepted they should work.

----------------------------------------

Version: 7.0.4.2 (x64)
Build ID: dcf040e67528d9187c66b2379df5ea4407429775
CPU threads: 16; OS: Windows 10.0 Build 18363; UI render: Skia/Raster; VCL: win
Locale: de-AT (de_AT); UI: de-DE
Calc: CL
Comment 1 BDF 2021-01-20 19:47:13 UTC
Created attachment 169062 [details]
Wikipedia Main page as pdf test file
Comment 2 BDF 2021-01-20 19:47:47 UTC
Created attachment 169063 [details]
odt file with the drag&dropped pdf file
Comment 3 BDF 2021-01-20 19:48:19 UTC
Created attachment 169064 [details]
pdf file created out of odt file with pdf in it
Comment 4 BDF 2021-02-12 07:50:12 UTC
Created attachment 169698 [details]
UPDATE: German Wikipedia Main page as pdf test file

The main page of the german Wikipedia that can be exported to a pdf from the same version of LibreOffice
Comment 5 BDF 2021-02-12 07:51:58 UTC
Created attachment 169699 [details]
UPDATE: odt file with the drag&dropped pdf file

.odt file with the german Wikipedia main page .pdf-file that works
Comment 6 BDF 2021-02-12 07:53:17 UTC
Created attachment 169700 [details]
UPDATE: pdf file created out of odt file with pdf in it

The exported .pdf of the .odt-file with the working .pdf of the german Wikipedia main page.
Comment 7 BDF 2021-02-12 08:00:29 UTC
I have an old version of LibreOffice 6.1.3.2 that I tried the same thing on: Drag&Dropping a pdf onto the odt file and this time it worked.

I thought that this maybe is because of the old version. I tested a bit more and it seems that it depends on the pdf file. The old version with the pdf example file "Wikipedia Main page as pdf test file" from 2021-01-20 does NOT work.

Then I tried exporting the main page of the german Wikipedia (file "UPDATE: German Wikipedia Main page as pdf test file" from 2021-02-12) and this worked perfectly fine.
I tried to export the .odt-file as pdf (file "UPDATE: pdf file created out of odt file with pdf in it" from 2021-02-12) and it works fine. Printing is also no problem at all.

So far I have no idea why this would be the case. I would go for the layout because the german Wikipedia main page is much simpler.
Comment 8 pavlog 2021-02-20 19:35:18 UTC
Hello, thanks for report. I can't reproduce it in

Version: 7.2.0.0.alpha0+ (x64)
Build ID: ecb916667b633f8647790e040226b093760e6cfe
CPU threads: 4; OS: Windows 10.0 Build 18363; UI render: Skia/Vulkan; VCL: win
Locale: en-US (en_US); UI: en-US
Calc: CL
Comment 9 Buovjaga 2022-02-07 12:56:43 UTC
I reproduce with 7.0, but not with 7.3, so I will close.

Arch Linux 64-bit
Version: 7.3.0.3 / LibreOffice Community
Build ID: 30(Build:3)
CPU threads: 8; OS: Linux 5.16; UI render: default; VCL: kf5 (cairo+xcb)
Locale: fi-FI (fi_FI.UTF-8); UI: en-US
7.3.0-2
Calc: threaded