Bug 102940 - PDF figure badly cropped when imported into Impress
Summary: PDF figure badly cropped when imported into Impress
Status: RESOLVED WORKSFORME
Alias: None
Product: LibreOffice
Classification: Unclassified
Component: Impress (show other bugs)
Version:
(earliest affected)
5.2.2.2 release
Hardware: x86-64 (AMD64) All
: medium normal
Assignee: Not Assigned
URL:
Whiteboard:
Keywords:
Depends on:
Blocks: Insert-File-Content
  Show dependency treegraph
 
Reported: 2016-10-03 20:43 UTC by Ricardo Fabbri
Modified: 2019-12-04 11:58 UTC (History)
1 user (show)

See Also:
Crash report or crash signature:


Attachments
a pdf figure that gets cropped wrongly when included (407.60 KB, application/pdf)
2016-10-03 20:43 UTC, Ricardo Fabbri
Details

Note You need to log in before you can comment on or make changes to this bug.
Description Ricardo Fabbri 2016-10-03 20:43:37 UTC
Created attachment 127793 [details]
a pdf figure that gets cropped wrongly when included

PDF figures are wrongly cropped when included in a document.

Steps to reproduce bug
- open the attached figure on Finder or a file browser
- drag the figure to a new Impress document
- the figure will be wrongly cropped

Work around:

  Converting to EPS then importing works, using pdftops -eps
Comment 1 Ricardo Fabbri 2016-10-03 20:44:37 UTC
Tested in 5.2.2 and 5.0.3.2
Comment 2 Alex Thurgood 2016-10-04 08:38:16 UTC
By default, dragging a PDF onto a running instance of LO will load that PDF into Draw.

I see no cropping of the image in Draw with

Version: 5.2.1.2
Build ID: 31dd62db80d4e60af04904455ec9c9219178d620
Threads CPU : 2; Version de l'OS :Mac OS X 10.12; UI Render : par défaut; 
Locale : fr-FR (fr_FR.UTF-8); Calc: group



However, if I drag and drop the PDF onto a blank slide in Impress, the file gets cropped to show the top left hand corner of the image.

CONFIRMING with regard to Impress and 

Version: 5.2.1.2
Build ID: 31dd62db80d4e60af04904455ec9c9219178d620
Threads CPU : 2; Version de l'OS :Mac OS X 10.12; UI Render : par défaut; 
Locale : fr-FR (fr_FR.UTF-8); Calc: group
Comment 3 Alex Thurgood 2016-10-04 08:40:31 UTC
One workaround for this is to drag and drop the PDF file onto the Dock icon of the LibreOffice program, causing the PDF to be opened in a Draw slide. This slide can then be dragged and dropped onto an open Impress document in the slide sorter pane.
Comment 4 Alex Thurgood 2016-10-04 08:41:37 UTC
It is however indicative that Impress and Draw use different code paths for importing PDF files, which is clearly not optimal.
Comment 5 V Stuart Foote 2016-10-05 01:59:22 UTC
On Windows 10 Pro 64-bit (1607) en-US with
Version: 5.2.2.2 (x64)
Build ID: 8f96e87c890bf8fa77463cd4b640a2312823f3ad
CPU Threads: 8; OS Version: Windows 6.19; UI Render: GL; 
Locale: en-US (en_US); Calc: group

Confirming that the filter import used for drag-n-drop onto a Impress slide crops image to the upper left of the PDF.

However filter import, e.g. Open -> "PDF Portable Document Format (Impress) (.pdf)" of the PDF will open it fully as the first slide of an Impress document.

Suggests there is a bounding box/clipping issue with the drag-n-drop insertion.
Comment 6 QA Administrators 2017-10-23 14:11:39 UTC Comment hidden (obsolete)
Comment 7 Timur 2019-12-04 11:58:39 UTC
Repro 5.2, no repro master 6.5+. I'll close. 
Now it's fine stretched to slide and can be set to original size