Issue 121088 - Very slow PDF export for documents with background images
Summary: Very slow PDF export for documents with background images
Alias: None
Product: Writer
Classification: Application
Component: save-export (show other issues)
Version: 3.4.0
Hardware: PC Linux, all
: P3 Normal (vote)
Target Milestone: ---
Assignee: AOO issues mailing list
QA Contact:
Depends on:
Reported: 2012-09-23 17:00 UTC by l0co
Modified: 2017-05-20 10:44 UTC (History)
4 users (show)

See Also:
Issue Type: DEFECT
Latest Confirmation in: ---
Developer Difficulty: ---

Broken PDF export with bck images (883.56 KB, application/octet-stream)
2013-01-25 14:07 UTC, l0co
no flags Details

Note You need to log in before you can comment on or make changes to this issue.
Description l0co 2012-09-23 17:00:39 UTC
Trying to export this document to PDF I have only endless 100% CPU utilization.
Comment 1 l0co 2012-09-23 17:04:15 UTC
Doc is here:
Comment 2 l0co 2012-09-23 17:28:44 UTC
It looks that this is not about a lot of frames, but the page background image. If I don't use page background image, but the image on the page and move it into background, it works well. So, there's a problem only with PDF export with background images (hangs for bigger images, work very slow for smaller).
Comment 3 Kevin 2012-09-23 20:19:15 UTC
I was only partially able replicate this bug on windows as I got single-core maxed CPU for a long time on two different machines, but it DID successfully complete eventually.
Software (both): Windows 7 Pro 64-bit (6.1 build 7601) and AOO 3.4.1 (build 9593)
Hardware 1: Core i5 2500k, 16GB RAM
Hardware 2: Core i7 2670QM, 8GB RAM

Using a "print to pdf" program called cutePDF I was able to successfully get a PDF, creating a simple workaround that trades massive use of system memory for faster completion.

Pursuing the idea that the background image was at fault in causing the poor performance I copied the file and removed the background page by page testing each iteration. Results are below:

3 Pages of Background:
Export => >20 minutes run-time on one core
Print PDF => Obscene memory usage (capped out my 14GB free and started crushing the HDD) and 5 minute run-time

2 Pages of Background:
Export: >10 minutes (coffee break) run-time on one core, but successful
Print PDF: 10-11GB Memory usage, 2 minute run-time

1 Page of Background:
Export => 4 Minute run-time on one core
Print PDF => 6GB Memory usage, 1 mintue run-time

0 Pages of Background:
No problems
Comment 4 l0co 2012-09-24 06:05:24 UTC
Thanks for thorough analysis, it looks likewise here on 4 cores CPU (relatively, times might be different, but it apparently uses only single core for that, and I'm on Ubuntu).

You might check this file: - it's after makeover. Images are half size of original, and aren't put as background image, but regular image attached to page and moved to background. This one works perfectly for me.
Comment 5 Edwin Sharp 2013-01-25 11:02:14 UTC
File not found on speedy share.
Please re-upload.
Comment 6 l0co 2013-01-25 11:09:16 UTC
(In reply to comment #5)
> File not found on speedy share.
> Please re-upload.
I don't have it already. You need generate some document with few pages with full image background.
Comment 7 Edwin Sharp 2013-01-25 13:39:50 UTC
A two page document with two different pictures as area background took a split second to export to PDF.
AOO Rev. 1400866 on Win 7 64, AMD A6 with 4 GB RAM.
Comment 8 l0co 2013-01-25 14:07:16 UTC
Created attachment 80169 [details]
Broken PDF export with bck images
Comment 9 l0co 2013-01-25 14:09:46 UTC
I've found the broken document backgrounds. It's consisted of the three images. Above is the copy I made with only one images and 4 pages for tests. It runs very slow for me in my OO, but not so slow as the original one.
Comment 10 Edwin Sharp 2013-01-26 17:13:01 UTC
AOO not responding with l0co attachment
Comment 11 Edwin Sharp 2013-08-12 11:51:07 UTC
Not responding after export as PDF.

Rev. 1507307 Win 7
Comment 12 Marcus 2017-05-20 10:44:58 UTC
Reset the assignee to the default "".