Bug 159069 - Slow converting from docx to pdf when there's some table (comment 10)
Summary: Slow converting from docx to pdf when there's some table (comment 10)
Status: RESOLVED WORKSFORME
Alias: None
Product: LibreOffice
Classification: Unclassified
Component: Writer (show other bugs)
Version:
(earliest affected)
7.4.0.0 beta1+
Hardware: All All
: medium normal
Assignee: Not Assigned
URL:
Whiteboard:
Keywords:
Depends on:
Blocks: PDF-Export
  Show dependency treegraph
 
Reported: 2024-01-08 07:49 UTC by xiongli
Modified: 2024-08-05 20:04 UTC (History)
4 users (show)

See Also:
Crash report or crash signature:


Attachments

Note You need to log in before you can comment on or make changes to this bug.
Description xiongli 2024-01-08 07:49:22 UTC
Description:
docx里带有表格,会出现这个转换比较久,失败的问题。7.3.7.2是没问题的,7.3.7.2+的版本有问题。

Steps to Reproduce:

docx里带有表格,word地址:https://aizc.fjzhkj.cn/storage/uploads/word/2024/01/cTT7CQlmtpUOcFHXQp6OBrWexucJVo6OpmDNY635.docx
示例:
/opt/libreoffice7.4/program/soffice --headless --convert-to pdf:writer_pdf_Export /opt/cTT7CQlmtpUOcFHXQp6OBrWexucJVo6OpmDNY635.docx

Actual Results:
希望能尽快解决bug

Expected Results:
希望能尽快解决bug


Reproducible: Always


User Profile Reset: Yes

Additional Info:
希望能尽快解决bug
Comment 1 Julien Nabet 2024-01-08 09:19:10 UTC
7.4 version is a bit old.
On which Linux distrib are you and with which version?
Could you give a try to LO 7.5.9 and brand new LO 7.6.4?

Please respond in English so it'll be easier for people to help here.
Comment 2 xiongli 2024-01-08 09:25:16 UTC
There are issues with versions 7.4 to 7.6.4 of LibreOffice, LibreOffice_ 7.3.7.2 Normal
Comment 3 Julien Nabet 2024-01-08 09:31:50 UTC
Ok thank you for the feedback. Since I don't have more question, I'll put it back to UNCONFIRMED.
Comment 4 xiongli 2024-01-08 09:35:55 UTC
Okay, thank you. If you want to reproduce the problem, you can download the Word link I provided at: https://aizc.fjzhkj.cn/storage/uploads/word/2024/01/cTT7CQlmtpUOcFHXQp6OBrWexucJVo6OpmDNY635.docx
Comment 5 xiongli 2024-01-08 10:33:06 UTC
The above issues are not correct. I found that version 7.6 has a format compatibility issue, while version 7.3 does not have this issue.
Comment 6 xiongli 2024-01-08 10:34:47 UTC
7.6 version conversion PDF cannot be successfully converted, conversion takes a long time, and there is missing content in Word
Comment 7 Julien Nabet 2024-01-08 10:37:00 UTC
(In reply to xiongli from comment #6)
> 7.6 version conversion PDF cannot be successfully converted, conversion
> takes a long time, and there is missing content in Word

In this case there are 2 pbs.
Please submit a new bugtracker for the missing content so this one will be only for slowliness issue.
Comment 8 xiongli 2024-01-08 10:39:42 UTC
Please convert this document to PDF using version 7.6, and you will find that it cannot be successfully converted. The document is as follows: https://aizc.fjzhkj.cn/storage/uploads/word/2024/01/cSkZfPTo9BDAd6vWQ5s4t9psMd95kOntbsRmMn9A.docx
Comment 9 Julien Nabet 2024-01-08 10:54:35 UTC
(In reply to xiongli from comment #8)
> Please convert this document to PDF using version 7.6, and you will find
> that it cannot be successfully converted. The document is as follows:
> https://aizc.fjzhkj.cn/storage/uploads/word/2024/01/
> cSkZfPTo9BDAd6vWQ5s4t9psMd95kOntbsRmMn9A.docx

I didn't say the conversion was ok, I just indicated that you should submit a new bugtracker about this pb since it's different than slowliness pb.
Comment 10 Telesto 2024-01-08 20:20:58 UTC
File is generated by: WPS Office_12.1.0.16120

The footer box containing the page number is imported as drawing object in LibreOffice. 

The size of the drawing object keeps expanding until it's off-page on file-open (didn't try command-line export)
Version: 24.2.0.0.alpha1+ (X86_64) / LibreOffice Community
Build ID: a9ad36ae46ff76c0d59b0d170314fdd3a9ee5d35
CPU threads: 4; OS: Windows 6.3 Build 9600; UI render: Skia/Raster; VCL: win
Locale: nl-NL (nl_NL); UI: en-US
Calc: CL threaded

it opens OK initially, but starts to freeze soon after opening
Version: 7.3.0.0.alpha1+ (x64) / LibreOffice Community
Build ID: 229123ccc6f90ebf66b3e659bebbd53f8a9bdd3a
CPU threads: 4; OS: Windows 6.3 Build 9600; UI render: Skia/Raster; VCL: win
Locale: nl-NL (nl_NL); UI: en-US
Calc: CL

It opens proper in (and doesn't freeze with)
Version: 7.1.8.0.0+ (x64) / LibreOffice Community
Build ID: a94b58277c7aeaa83ce14347cd0b8f7137969d03
CPU threads: 4; OS: Windows 6.3 Build 9600; UI render: default; VCL: win
Locale: nl-NL (nl_NL); UI: en-US
Calc: CL

The box contain page number appears to be a frame (with label) and can't be selected with (and older versions)
Version: 7.0.7.0.0+ (x64)
Build ID: 626ea4e62a3e5005fe9825923a1c0c5bdb61cc08
CPU threads: 4; OS: Windows 6.3 Build 9600; UI render: default; VCL: win
Locale: nl-NL (nl_NL); UI: en-US
Calc: CL

---
The fact that the footer box (drawing object) starts moving off page appears to be the cause of the slowness, IMHO.
Comment 11 xiongli 2024-01-09 00:40:06 UTC
I don't know exactly what caused it, maybe it's a formatting issue or a footer issue. I hope this problem can be resolved. Thank you
Comment 12 Buovjaga 2024-08-05 19:42:14 UTC
Conversion time:

real    0m0,850s
user    0m0,718s
sys     0m0,128s

Doesn't seem slow.

I also don't see freezing in the UI, only some lag when scrolling past the tables.

Please retest.

Arch Linux 64-bit
Version: 25.2.0.0.alpha0+ (X86_64) / LibreOffice Community
Build ID: 5850b22e04a7a055e5b4c6b23a1d32d74270506d
CPU threads: 8; OS: Linux 6.10; UI render: default; VCL: kf6 (cairo+wayland)
Locale: fi-FI (fi_FI.UTF-8); UI: en-US
Calc: CL threaded
Built on 4 August 2024
Comment 13 Telesto 2024-08-05 19:53:04 UTC
No repro
Version: 25.2.0.0.alpha0+ (X86_64) / LibreOffice Community
Build ID: 055c906d7b3f2e3709292d1410358d4e66a500ed
CPU threads: 4; OS: Windows 8.1 X86_64 (6.3 build 9600); UI render: Skia/Raster; VCL: win
Locale: nl-NL (nl_NL); UI: en-US
Calc: CL threaded
Comment 14 Buovjaga 2024-08-05 20:04:27 UTC
Thanks, let's set to worksforme for now.