Bug 144104 - pdf import into draw and export causes formatting issues
Summary: pdf import into draw and export causes formatting issues
Status: RESOLVED INVALID
Alias: None
Product: LibreOffice
Classification: Unclassified
Component: Draw (show other bugs)
Version:
(earliest affected)
7.2.0.4 release
Hardware: All All
: medium normal
Assignee: Not Assigned
URL:
Whiteboard:
Keywords:
Depends on:
Blocks: PDF
  Show dependency treegraph
 
Reported: 2021-08-26 15:07 UTC by johnks
Modified: 2022-11-20 20:45 UTC (History)
2 users (show)

See Also:
Crash report or crash signature:


Attachments
input file for test (909.96 KB, application/pdf)
2021-08-26 15:08 UTC, johnks
Details
output from draw (544.57 KB, application/pdf)
2021-08-26 15:08 UTC, johnks
Details
new file to import into draw (916.92 KB, application/pdf)
2021-08-31 16:42 UTC, johnks
Details
output of draw (109.57 KB, application/pdf)
2021-08-31 16:43 UTC, johnks
Details

Note You need to log in before you can comment on or make changes to this bug.
Description johnks 2021-08-26 15:07:27 UTC
Description:
i have attached a pdf i downloaded from a url to pdf website. the page is of libreoffice wikipedia. Also attached is output of my draw if i exported the pdf. 

there are various formatting issues. 
1. on the first page, bottom right, there is a service hyperlinked image. that is gone in draw output.
2.on page 3, bottom right text box "libreoffice viewer on android" has bottom part one pixel line cut off in original. in draw output, a lot more is on 4th page.
3.on page 6, the wide image is within box in the original and in draw output, the same goes outside on left side.

4. more troubling is the fact that all hyperlinks are gone in the draw output. This should not silently fail as the pdf is expected to be the same as input and if input had hyperlinks, output should do so.

Steps to Reproduce:
1. open original file in draw. click on export directly to pdf
2. compare input to output file


Actual Results:
draw output file is different from input file

Expected Results:
output should be same as input


Reproducible: Always


User Profile Reset: No



Additional Info:
Version: 7.2.0.4 / LibreOffice Community
Build ID: 9a9c6381e3f7a62afc1329bd359cc48accb6435b
CPU threads: 4; OS: Linux 5.11; UI render: default; VCL: gtk3
Locale: en-IN (en_IN); UI: en-US
Flatpak
Calc: threaded
Comment 1 johnks 2021-08-26 15:08:04 UTC
Created attachment 174561 [details]
input file for test
Comment 2 johnks 2021-08-26 15:08:30 UTC
Created attachment 174562 [details]
output from draw
Comment 3 johnks 2021-08-31 16:42:46 UTC
Created attachment 174678 [details]
new file to import into draw

check the rendering in draw as compared to any pdf reader. the result in draw is mangled text and all rendering wonky. also attacking output of "export directly to pdf" as well
Comment 4 johnks 2021-08-31 16:43:13 UTC
Created attachment 174679 [details]
output of draw
Comment 5 Deep17 2021-09-22 14:58:07 UTC
Thank you for reporting the bug. I can confirm that the bug is present in 

Version: 7.2.0.4 (x64) / LibreOffice Community
Build ID: 9a9c6381e3f7a62afc1329bd359cc48accb6435b
CPU threads: 4; OS: Windows 10.0 Build 19042; UI render: Skia/Raster; VCL: win
Locale: en-US (en_US); UI: en-US
Calc: CL

and

Version: 7.3.0.0.alpha0+ (x64) / LibreOffice Community
Build ID: 770dcb1f717d576facf31efed14bee403e1a7155
CPU threads: 4; OS: Windows 10.0 Build 19042; UI render: Skia/Raster; VCL: win
Locale: en-US (en_US); UI: en-US
Calc: CL
Comment 6 V Stuart Foote 2022-11-20 20:45:34 UTC
Confirmed

LibreOffice makes no claim that Round trip-- PDF import filter, PDF export filter --will produce even remotely similar documents.

LibreOffice is not a PDF editor (open the PDF and write changes directly into it). 

Rather, we read in a PDF stream, we write out a PDF stream within limitations of the filters and document formats available.

There are specific issues with the filters, and those should be addressed with specific BZ issues for each (both the import filter, and the export).

*This* issue is not-actionable.

IMHO => INVALID