Bug 71790 - PDF: Use of dotted paragraph border makes exported PDF files huge
Summary: PDF: Use of dotted paragraph border makes exported PDF files huge
Status: RESOLVED FIXED
Alias: None
Product: LibreOffice
Classification: Unclassified
Component: Writer (show other bugs)
Version:
(earliest affected)
4.1.3.2 release
Hardware: All All
: medium normal
Assignee: Not Assigned
URL:
Whiteboard: BSA Confirmed:4.2.0.1:Ubuntu target:7...
Keywords: filter:pdf
Depends on:
Blocks: PDF-Export
  Show dependency treegraph
 
Reported: 2013-11-19 14:20 UTC by tobias
Modified: 2023-11-06 10:35 UTC (History)
2 users (show)

See Also:
Crash report or crash signature:


Attachments
Example document to export to PDF (8.10 KB, application/vnd.oasis.opendocument.text)
2013-11-19 14:20 UTC, tobias
Details

Note You need to log in before you can comment on or make changes to this bug.
Description tobias 2013-11-19 14:20:16 UTC
Created attachment 89469 [details]
Example document to export to PDF

Problem description: 

Paragraphs with a dotted border makes exported PDF files huge.  If I print to file with a postscript printer, the postscript file also becomes huge.

Steps to reproduce:
1. Export the attached dotted-border-bug.odt to PDF.

Current behavior:

The PDF file becomes 13 MB.  If I zoom in on the PDF file, I see that there are a lot more dots in the borders compared to how it looks in Writer.

Expected behavior:

The PDF file should be kilobytes, not megabytes.  If I create lots of boxes in Draw using a dotted border, the PDF file stays small.
Operating System: Fedora
Version: 4.1.3.2 release
Comment 1 Dominique Boutry 2013-11-21 09:47:13 UTC
Reproducted with the same LibO version 4.1.2.3 on Win7.

Other findings :
- If I zoom both files (ODT and PDF), I can see approx. the same number of dots (hard to count...)
- the width is somewhat large (1pt), with a dotted line (not dashed one). In this case, I expect that the distance between the points grow of the same proportion than the width, so that the points remain roughly circulars ; Both in ODT and PDF we can see a opposite choice.
- could PDF, attempting to exactly mimic Writer, results in the huge size (individual drawing command for each dot) ?
Comment 2 Robinson Tryon (qubit) 2013-12-22 15:49:39 UTC
CONFIRMED on Ubuntu 12.04.3 with
LibreOffice Version: 4.2.0.1

(In reply to comment #0)
> Steps to reproduce:
> 1. Export the attached dotted-border-bug.odt to PDF.
> 
> Current behavior:
> 
> The PDF file becomes 13 MB.  If I zoom in on the PDF file, I see that there
> are a lot more dots in the borders compared to how it looks in Writer.

Using Document Viewer 3.4.0 (Using poppler/cairo (0.18.4)), I see many more dots in the PDF vs. in LO.

Status: NEW
Comment 3 QA Administrators 2015-04-19 03:21:54 UTC Comment hidden (obsolete)
Comment 4 Gordo 2015-06-11 19:05:28 UTC
Still reproducible.  Although the file size has come down to about 4 MB.

Windows Vista 64
Version: 4.4.3.2
Build ID: 88805f81e9fe61362df02b9941de8e38a9b5fd16

Master took maybe 20 or 30 seconds to export.  If you do not be patient and click on the window you can get the "not responding" state.

Version: 5.1.0.0.alpha1+
Build ID: 5fc0cbbc1254223fedf0f78c5e7539219b228697
TinderBox: Win-x86@39, Branch:master, Time: 2015-06-11_04:30:51
Comment 5 QA Administrators 2016-09-20 10:00:28 UTC Comment hidden (obsolete)
Comment 6 QA Administrators 2020-10-26 04:13:00 UTC Comment hidden (obsolete)
Comment 7 QA Administrators 2022-10-27 03:32:20 UTC Comment hidden (obsolete)
Comment 8 Stéphane Guillou (stragu) 2023-11-06 10:35:48 UTC
Was 1.5 MB when exported with:

Version: 7.1.0.3 / LibreOffice Community
Build ID: f6099ecf3d29644b5008cc8f48f42f4a40986e4c
CPU threads: 8; OS: Linux 5.15; UI render: default; VCL: gtk3
Locale: en-AU (en_AU.UTF-8); UI: en-US
Calc: threaded

It is now a lot smaller (17.2 KB in my test) and quicker to export. For example in:

Version: 7.2.0.4 / LibreOffice Community
Build ID: 9a9c6381e3f7a62afc1329bd359cc48accb6435b
CPU threads: 8; OS: Linux 5.15; UI render: default; VCL: gtk3
Locale: en-AU (en_AU.UTF-8); UI: en-US
Calc: threaded

Bibisected the fix in the linux-64-7.2 repo to core commit:
commit b71d9a6d15cfb8a50afdea5ac064f40d84c561f8
author	Luboš Luňák 	Tue Apr 27 11:44:48 2021 +0200
committer	Luboš Luňák Thu Apr 29 16:05:53 2021 +0200
do not apply line dashing in drawinglayer (tdf#136957)

Thank you Luboš!