Bug 114725 - provide an option to export to PDF without a solid background
Summary: provide an option to export to PDF without a solid background
Status: NEW
Alias: None
Product: LibreOffice
Classification: Unclassified
Component: filters and storage (show other bugs)
Version:
(earliest affected)
5.4.4.2 release
Hardware: All All
: medium enhancement
Assignee: Not Assigned
URL:
Whiteboard:
Keywords:
Depends on:
Blocks: PDF-Export
  Show dependency treegraph
 
Reported: 2017-12-28 10:01 UTC by Callegar
Modified: 2022-12-27 10:42 UTC (History)
1 user (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 Callegar 2017-12-28 10:01:46 UTC
If you use LibO draw to make some drawing and then export it to PDF to be used in some other document preparation flow (e.g., LaTeX), then there is a problem with the fact that PDFs exported by LibO always contain a solid rectangular box as big as the page as a background object (this is typically a white filled box).

To verify it, it is sufficient to check the document with some vector/PDF editor, such as masterpdfeditor or inkscape.

This background solid filled rectangular box represents a problem when in the following document preparation flow the drawing is to be imported with its bounding box superimposing to something else or on a colored background. In fact, in the first case, it ends up covering other parts of the document and in the second case it breaks the uniformity of the overall document background.

Please provide an option to export PDFs with no solid box as a background or with otherwise transparent background.

See also bug 81118 with reference to using LibO draw as a means to create drawings to be then used in other document preparation flows.
Comment 1 Callegar 2017-12-28 10:09:12 UTC
Selecting all objects in the page and exporting as PDF only the selection seems to be a workaround for the issue.
Comment 2 tommy27 2018-01-22 15:12:40 UTC
enhancement request. status NEW.
Comment 3 Callegar 2019-09-26 09:09:49 UTC
There is now a bounty for fixing this at

https://freedomsponsors.org/issue/891/provide-an-option-to-export-to-pdf-without-a-solid-background?alert=SPONSOR#sponsors

Bounty actually requires also providing a way to resize the page to the drawing and setting the artbox in PDF when the page is larger than the drawing.
Comment 4 Callegar 2020-04-07 14:24:08 UTC
The freedom sponsors site is getting spammed and there is no way to remove the spam. Sorry to say that I need to revoke the offer there.
Comment 5 Callegar 2022-12-27 10:42:14 UTC
The issue can be worked around by selecting all the objects in the drawing and exporting the selection only.

While this works, it is not very discoverable.

Real solution would be to:

- export with no solid background if the in the page properties the background is set to none;

- export with a solid background if in the page properties the background is set to a color, including white.