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 sergio.callegari
Modified: 2019-09-26 09:09 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 sergio.callegari 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 sergio.callegari 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 sergio.callegari 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.