Bug 105310 - page orientation for pptx is always landscape
Summary: page orientation for pptx is always landscape
Status: RESOLVED WORKSFORME
Alias: None
Product: LibreOffice
Classification: Unclassified
Component: Impress (show other bugs)
Version:
(earliest affected)
Inherited From OOo
Hardware: All All
: low minor
Assignee: Not Assigned
URL:
Whiteboard:
Keywords: filter:pptx
Depends on:
Blocks: PPTX
  Show dependency treegraph
 
Reported: 2017-01-13 10:48 UTC by Thomas Weiland
Modified: 2019-09-29 12:11 UTC (History)
3 users (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 Thomas Weiland 2017-01-13 10:48:51 UTC
Create a new presenation, set page orientation to portrait and save it as MS PPTX. Then open the file again.
Now the page orientation is set to landscape, but it is displayd in portrait mode.

Exporting presentation to PDF works fine - it creates portrait.
Printing the presenation creates always a print in landscape, even if I set the orientation to portrait in the printer settings. As workaround I have to change the setting for the pages every time I open the PPTX.

When saving in ODP it works normal.

Maybe the page orientation can not be saved in the PPTX, but then LibreOffice should have an look to page width and page height and define landscape or portrait mode according to these values.
Comment 1 Buovjaga 2017-01-13 18:27:59 UTC
(In reply to Thomas Weiland from comment #0)
> Now the page orientation is set to landscape, but it is displayd in portrait
> mode.

Reproduced.

Arch Linux 64-bit, KDE Plasma 5
Version: 5.4.0.0.alpha0+
Build ID: 57779b5f3a49fedd952aed70ddcce22f48b98ea5
CPU Threads: 8; OS Version: Linux 4.8; UI Render: default; VCL: kde4; 
Locale: fi-FI (fi_FI.UTF-8); Calc: group
Built on January 13th 2016

Arch Linux 64-bit
LibreOffice 3.3.0 
OOO330m19 (Build:6)
tag libreoffice-3.3.0.4
Comment 2 Julien Nabet 2017-01-14 20:40:36 UTC
On pc Debian x86-64 with master sources updated today, I could reproduce this.

I noticed several things:
- if I use ppt instead of pptx, I don't reproduce this
- if I create a brand new file with 2 slides in portrait, when exporting in pptx and open it again, the first is in landscape but the second one in portrait.

I put a break on SdPage::SetOrientation and tested it with this 2 slides pptx, here's what I got:
1)
#0  SdPage::SetOrientation (this=this@entry=0x55555bbc5190, eOrient=Orientation::Landscape) at /home/julien/lo/libreoffice/sd/source/core/sdpage.cxx:2598
#1  0x00002aaad393c1ae in SdXImpressDocument::InsertSdPage (this=0x55555e3f21e0, nPage=<optimized out>, nPage@entry=1, bDuplicate=bDuplicate@entry=false)
    at /home/julien/lo/libreoffice/sd/source/ui/unoidl/unomodel.cxx:508
#2  0x00002aaad393e85d in SdDrawPagesAccess::insertNewByIndex (this=0x555557638ef0, nIndex=1) at /home/julien/lo/libreoffice/sd/source/ui/unoidl/unomodel.cxx:2891
#3  0x00002aaad21b5b1b in oox::ppt::PresentationFragmentHandler::importSlide (this=this@entry=0x55555db6af90, nSlide=1, bFirstPage=bFirstPage@entry=false, 
    bImportNotesPage=bImportNotesPage@entry=true) at /home/julien/lo/libreoffice/oox/source/ppt/presentationfragmenthandler.cxx:159


2)
#0  SdPage::SetOrientation (this=this@entry=0x555557b0dcf0, eOrient=Orientation::Portrait) at /home/julien/lo/libreoffice/sd/source/core/sdpage.cxx:2598
#1  0x00002aaad393c391 in SdXImpressDocument::InsertSdPage (this=0x55555e3f21e0, nPage=<optimized out>, nPage@entry=1, bDuplicate=bDuplicate@entry=false)
    at /home/julien/lo/libreoffice/sd/source/ui/unoidl/unomodel.cxx:543
#2  0x00002aaad393e85d in SdDrawPagesAccess::insertNewByIndex (this=0x555557638ef0, nIndex=1) at /home/julien/lo/libreoffice/sd/source/ui/unoidl/unomodel.cxx:2891
#3  0x00002aaad21b5b1b in oox::ppt::PresentationFragmentHandler::importSlide (this=this@entry=0x55555db6af90, nSlide=1, bFirstPage=bFirstPage@entry=false, 
    bImportNotesPage=bImportNotesPage@entry=true) at /home/julien/lo/libreoffice/oox/source/ppt/presentationfragmenthandler.cxx:159

3)
#0  SdPage::SetOrientation (this=0x55555bbc5190, eOrient=Orientation::Portrait) at /home/julien/lo/libreoffice/sd/source/core/sdpage.cxx:2598
#1  0x00002aaad395ea6a in SdDrawPage::setMasterPage (this=this@entry=0x55555dcaac00, xMasterPage=...) at /home/julien/lo/libreoffice/sd/source/ui/unoidl/unopage.cxx:2417
#2  0x00002aaad21b6494 in oox::ppt::PresentationFragmentHandler::importSlide (this=this@entry=0x55555db6af90, nSlide=<optimized out>, bFirstPage=bFirstPage@entry=false, 
    bImportNotesPage=bImportNotesPage@entry=true) at /home/julien/lo/libreoffice/oox/source/ppt/presentationfragmenthandler.cxx:252

Miklos: thought you might be interested in this one.
Comment 3 John C Fowler 2018-08-09 18:37:26 UTC
Not just pptx, but with odp files. 
Trying to print the notes pages of a presentation.
Even if printer settings are set to Portrait, 8.5x11, Duplex Long Edge, main tray. Selecting the print menu, setting "Print Document" for Notes. The Printer Properties has the Orientation "Grey" fixed at Landscape.   

From the Notes Master Page, the Paper Format is Letter 8.5x11 Portrait

Found this issue in Version: 6.0.6.2
Build ID: 0c292870b25a325b5ed35f6b45599d2ea4458e77
CPU threads: 4; OS: Linux 4.15; UI render: default; VCL: gtk2; 
Locale: en-US (en_US.UTF-8); Calc: group

As well as in Version: Version: 6.0.3.2
Build ID: 1:6.0.3-0ubuntu1
CPU threads: 4; OS: Linux 4.15; UI render: default; VCL: gtk3; 
Locale: en-US (en_US.UTF-8); Calc: group

Running Ubuntu Linux E6440 4.15.0-30-generic #32-Ubuntu SMP Thu Jul 26 17:42:43 UTC 2018 x86_64 x86_64 x86_64 GNU/Linux
Comment 4 QA Administrators 2019-08-19 07:00:07 UTC Comment hidden (obsolete)
Comment 5 Buovjaga 2019-09-29 12:11:26 UTC
Not reproduced anymore. Both the orientation and its visible manifestation stays as portrait.

Version: 6.4.0.0.alpha0+ (x64)
Build ID: e1b51d4588b4b39592bb94dd5bb90de5e04d061e
CPU threads: 4; OS: Windows 10.0; UI render: default; VCL: win; 
TinderBox: Win-x86_64@62-TDF, Branch:master, Time: 2019-09-23_09:16:11
Locale: fi-FI (fi_FI); UI-Language: en-US
Calc: threaded