Bug 108813 - FILEOPEN pdf import creates unwanted rectangles
Summary: FILEOPEN pdf import creates unwanted rectangles
Status: NEW
Alias: None
Product: LibreOffice
Classification: Unclassified
Component: filters and storage (show other bugs)
(earliest affected)
Inherited From OOo
Hardware: All All
: medium normal
Assignee: Not Assigned
Keywords: filter:pdf
Depends on:
Blocks: PDF-Import-Draw
  Show dependency treegraph
Reported: 2017-06-27 12:25 UTC by georg.weickelt
Modified: 2023-04-24 05:57 UTC (History)
3 users (show)

See Also:
Crash report or crash signature:

screenshot of unwanted result (134.09 KB, image/png)
2017-06-27 12:25 UTC, georg.weickelt
pdf-source (83.91 KB, application/pdf)
2017-06-27 12:26 UTC, georg.weickelt

Note You need to log in before you can comment on or make changes to this bug.
Description georg.weickelt 2017-06-27 12:25:39 UTC
Created attachment 134310 [details]
screenshot of unwanted result

importing a pdf with small areas into draw (d&d) results in big rectangles
Comment 1 georg.weickelt 2017-06-27 12:26:34 UTC
Created attachment 134311 [details]
Comment 2 Xisco Faulí 2017-06-27 14:16:32 UTC
Reproduced in

Build ID: 08f6f9dded1b142b858c455da03319abac691655
CPU Threads: 4; OS Version: Linux 4.8; UI Render: default; VCL: gtk2; 
Locale: ca-ES (ca_ES.UTF-8); Calc: group


LibreOffice 3.3.0 
OOO330m19 (Build:6)
tag libreoffice-
Comment 3 V Stuart Foote 2017-06-27 14:58:13 UTC
Confirmed, but this affects just the pdfimport import filter (checked Draw, Writer, Impress) but not the new pdfium based ipdf insert filter. If sample is inserted as image it is formatted correctly.
Comment 4 georg.weickelt 2017-12-15 13:21:17 UTC
Sorry, the difference is:
pdfimport => vector
pdfmium => pixel
Comment 5 V Stuart Foote 2017-12-15 15:59:59 UTC
(In reply to georg.weickelt from comment #4)
> Sorry, the difference is:
> pdfimport => vector
> pdfmium => pixel

And? Two simple facts... LibreOffice is _not_ a PDF editor, and PDF is _not_ intended to be an editable format. 

For this PDF, the pdfium based insert handles the area fills correctly, the pdfio filter import does not.

Inadequacies of the PDF Import filter--pdfio (which breaks apart a PDF into component Draw objects) are well known as are the issue here with clipping these area fills (this should probably be closed as a duplicate of bug 86211).

Our move to pdfium for insertion of PDF as an image, with loss of "break" (with its call the pdfio filter), gives very high quality raster rendering of PDF into ODF documents. What the vast majority of users require and the direction we've taken our handling of PDF.

Further work on the pdfio import filter is needed and will occur--though personally I think export handling are the higher priority.

Meanwhile, Miklos continues to work with Google's pdfiumm based filter. We hope the eventual introduction of a skia based integration to canvas will restore vector based PDF rendering, but it is not there yet (bug 106581).
Comment 6 Callegar 2017-12-15 16:08:52 UTC
Is the management of transparent background with pdfmium fixed in the forthcoming LibO 6?

Otherwise, for many applications the pixel perfect pdfmium remains not an option.
Comment 7 QA Administrators 2018-12-16 03:50:55 UTC Comment hidden (obsolete)
Comment 8 georg.weickelt 2018-12-20 08:49:54 UTC Comment hidden (obsolete)
Comment 9 QA Administrators 2020-12-20 03:45:32 UTC Comment hidden (obsolete)
Comment 10 Timur 2021-04-22 10:05:24 UTC
Repro 7.2+
Comment 11 QA Administrators 2023-04-23 03:26:12 UTC Comment hidden (obsolete)
Comment 12 georg.weickelt 2023-04-24 05:57:55 UTC
Bug ist still present in Version: (x64) / LibreOffice Community
Build ID: 5b1f5509c2decdade7fda905e3e1429a67acd63d
CPU threads: 20; OS: Windows 10.0 Build 22621; UI render: Skia/Raster; VCL: win
Locale: de-DE (de_DE); UI: de-DE
Calc: threaded

Importing as an image leads to poorer image quality - therefore a functioning PDF import with vectors as the result would be desirable. Changes to the content are not most important - rather additions.