Bug 49787 - Formatting: Allow different slide / page styles (orientation, size) in a single Drawing document
Summary: Formatting: Allow different slide / page styles (orientation, size) in a sing...
Status: RESOLVED FIXED
Alias: None
Product: LibreOffice
Classification: Unclassified
Component: Draw (show other bugs)
Version:
(earliest affected)
Inherited From OOo
Hardware: All All
: high enhancement
Assignee: Mohit Marathe
URL:
Whiteboard: target:26.8.0
Keywords:
: 57673 61294 92953 111702 121632 132665 (view as bug list)
Depends on:
Blocks: ImpressDraw-Styles 120708 64990
  Show dependency treegraph
 
Reported: 2012-05-11 03:59 UTC by martinstingl
Modified: 2026-02-14 09:22 UTC (History)
51 users (show)

See Also:
Crash report or crash signature:


Attachments
Sample how it works (155.73 KB, application/vnd.oasis.opendocument.graphics)
2012-11-29 15:05 UTC, Rainer Bielefeld Retired
Details
File to reproduce the crash (8.90 KB, application/vnd.oasis.opendocument.graphics)
2026-01-09 10:37 UTC, Regina Henschel
Details
File to reproduce bug of the sidebar (7.12 KB, application/vnd.oasis.opendocument.graphics)
2026-01-09 21:29 UTC, vatairethibault
Details

Note You need to log in before you can comment on or make changes to this bug.
Description martinstingl 2012-05-11 03:59:36 UTC
It is not possible to use page styles in LibreOffice Draw.

This would be necessary to allow different page orientations (portrait/landscape) in one file.
Comment 1 Rainer Bielefeld Retired 2012-11-29 06:17:34 UTC
*** Bug 57673 has been marked as a duplicate of this bug. ***
Comment 2 Rainer Bielefeld Retired 2012-11-29 06:20:14 UTC
That never worked in OOo / LibO, limitation is inherited from OOo; see AOOo issue!
Comment 3 Jeremy 2012-11-29 13:19:49 UTC
Note that for issue as I observed it (Unable to set different backgrounds ('None' and 'Colour: Black') for different slides in a presentation.) Help page and message prompt indicate that setting different backgrounds is (i.e. should be) possible.
Comment 4 Rainer Bielefeld Retired 2012-11-29 15:05:37 UTC
Created attachment 70795 [details]
Sample how it works

@Jeremy 
You can create different backgrounds easily in 'View -> Master View' (I checked with LibreOffice 3.6.4.3 rc" German UI/ German Locale [Build-ID: 2ef5aff] {pull date 2012-11-28} on German WIN7 Home Premium (64bit) and then use different slide backgrounds as you can see in attached sample documents.

So it is easy to assign different backgrounds in a document, but I will have to check whether there is an "import" from an other document will work.

If you simple changed the "Default" background color in the document from where you imported a slide it's expected that the background color of the target document will be used. If in both documents Styles with the same name are used the Style definition of the target document will be used.
Comment 5 Jeremy 2012-11-30 01:41:14 UTC
@Rainer 
Thanks.

Have played around some more: turns out my problem was down to trying to apply a background of 'None' (specifically) to an individual slide, i.e. not understanding how it comes together in this area.
Comment 6 Cor Nouws 2012-12-04 15:03:41 UTC
Hi @jeremy,
so we can close this as 'worksforme' ?
Comment 7 martinstingl 2012-12-04 15:10:12 UTC
The original issue (portrait/landscape in one file) has not been resolved so far. Please let it in its current state.
Comment 8 Cor Nouws 2012-12-07 19:59:27 UTC
OK, then I update the summary :-)
Comment 9 Tony 2013-01-21 23:47:03 UTC
Hi,
Can I add to this request?
My requirement is to have different size pages with different orientations in the one document.
I use Visio and this is standard usage for drawings we create. Eg A4 cover page, A3 wiring diagrams etc. Sometimes go to A2 to fit it all in one the one page.
If we want uniform printing, we will print all to fit (scaled to one size - eg A3) otherwise individual pages get printed as required.

I am using LibreOffice 3.5.5.3 on Win XP.

Thanks,
Tony
Comment 10 martinstingl 2013-03-08 12:12:27 UTC
Updated the topic to include the issue of different page sizes.
Martin
Comment 11 Owen Genat (retired) 2013-05-29 11:22:52 UTC
As per comment #2 I am including a link to the equivalent AOO bug, which has seen little attention in the nine years since it was raised. This is purely for information only.

https://issues.apache.org/ooo/show_bug.cgi?id=29234
Comment 12 Todd 2013-06-01 03:14:35 UTC
Hi,

   I just got burned by this.  Can you guys add this to your next release?

Many thanks,
-T
Comment 13 Owen Genat (retired) 2014-08-10 05:50:32 UTC
This bug started life as a request to implement page styles, but the summary has been edited to specify page orientation and page size (both of which are subsets / attributes of having a page style). I am amending the summary again for clarity. 

Importing either a Visio file (bug 61294) or PDF (bug 64990) with varying page sizes into Draw results in all pages being set to the same orientation / size.

Added Apache issue 26641 to See Also list. It is currently unconfirmed, but relates to page orientation i.e., is a subset of Apache issue 29234.
Comment 14 Kevin Suo 2014-10-15 07:49:12 UTC
*** Bug 61294 has been marked as a duplicate of this bug. ***
Comment 15 V Stuart Foote 2015-07-27 20:12:50 UTC
*** Bug 92953 has been marked as a duplicate of this bug. ***
Comment 16 Heiko Tietze 2016-06-21 13:20:20 UTC
*** Bug 44216 has been marked as a duplicate of this bug. ***
Comment 17 Weiwu 2017-07-03 07:30:05 UTC
Is this something depending on the document format (ODG)? I refer to the change of orientation or size, not necessarily introducing page-style.
Comment 18 Regina Henschel 2017-08-11 21:34:39 UTC
*** Bug 111702 has been marked as a duplicate of this bug. ***
Comment 19 Jon Piesing 2018-02-24 20:55:40 UTC
Incorrect importing of a PDF that mixes portrait and landscape orientations in the same file is a pain.
Comment 20 Shem Pasamba 2018-08-05 14:37:07 UTC
Is this feature supported by the ODF spec already? Meaning, can page styles be applied per page in draw in the SPEC?  That's because, if someone's going to implement this feature, it has to be designed properly first.
Comment 21 Heiko Tietze 2018-08-06 09:01:21 UTC Comment hidden (no-value)
Comment 22 Regina Henschel 2018-08-06 09:46:31 UTC
The limitation is not in file format, but LibreOffice restricts it.
Comment 23 Gauthier 2018-11-01 13:09:25 UTC
Hello,

Anyone know if there any plan to implement this feature?
Comment 24 Regina Henschel 2018-11-28 12:47:05 UTC
*** Bug 121632 has been marked as a duplicate of this bug. ***
Comment 25 Cor Nouws 2019-06-08 12:55:48 UTC
(In reply to Gauthier from comment #23)
> Anyone know if there any plan to implement this feature?
You can see if a bug has an assignee. This one has not.
Comment 26 Xisco Faulí 2019-12-02 12:54:44 UTC
Changing enhancement priority to 'high' since the number of people in CC is higher than 20
Comment 27 Scott Pitcher 2020-08-15 07:33:47 UTC
LibreDraw has in the last few years become a very useful took for editing PDF documents. I had to work with a 446 page PDF data sheet for a CPU family and weed out the irrelevant pages. Previously I would have used PDF MOD for this but it fails with some modern PDFs. But Draw imported the PDF and I was able to go through and chop out pages I didn't want, and put highlight boxes and other annotations around information that needed it. The only problem was a large number of pages have tables in the PDF shown in landscape mode. To fix those pages I had to rotate the content by 90 degrees plus reset the x y offset to 0. If Draw could have different page size and orientation for different pages that would be very useful. Even for my own Engineering work I've used it for many industrial process flow drawings in the last 2 years, and a few times I've needed mix page size, perhaps some A2 drawings with an A3 on the last page. Yes, you can do them as separate documents but it's much easier to keep the body of work in the one document and share the styles and other formatting. Please do implement different page format and size in Draw. Please.
Comment 28 Buovjaga 2020-08-30 17:53:48 UTC
*** Bug 132665 has been marked as a duplicate of this bug. ***
Comment 29 Simon Li 2020-10-06 16:06:11 UTC Comment hidden (me-too)
Comment 30 Marc Pare 2021-01-21 04:50:15 UTC Comment hidden (me-too)
Comment 31 MiltonR 2021-03-03 21:04:05 UTC Comment hidden (me-too)
Comment 32 Aron Budea 2021-07-21 13:11:35 UTC
*** Bug 143473 has been marked as a duplicate of this bug. ***
Comment 33 Chentao 2021-08-17 11:38:36 UTC Comment hidden (me-too)
Comment 34 koze 2021-10-01 21:48:34 UTC Comment hidden (obsolete)
Comment 35 koze 2021-10-01 21:48:51 UTC Comment hidden (me-too, obsolete)
Comment 36 Stepan Novotny 2023-04-16 08:53:41 UTC
I create separate PDF documents in Draw, and then I combine them. Painful I know but it works.
Comment 37 ardv 2024-06-02 03:44:55 UTC Comment hidden (noise)
Comment 38 Ian 2024-11-09 17:43:32 UTC Comment hidden (me-too)
Comment 39 Mr. Beedell, Roke Julian Lockhart (RJLB) 2024-11-09 17:55:13 UTC Comment hidden (no-value)
Comment 40 Andreas Körber 2025-10-28 08:08:51 UTC Comment hidden (me-too)
Comment 41 Commit Notification 2026-01-07 04:15:38 UTC
Mohit Marathe committed a patch related to this issue.
It has been pushed to "master":

https://git.libreoffice.org/core/commit/15772d8e1515b23d9ace7095c7612c2e991c2350

tdf#49787 cool#13066 support multiple slide size in Impress

It will be available in 26.8.0.

The patch should be included in the daily builds available at
https://dev-builds.libreoffice.org/daily/ in the next 24-48 hours. More
information about daily builds can be found at:
https://wiki.documentfoundation.org/Testing_Daily_Builds

Affected users are encouraged to test the fix and report feedback.
Comment 42 vatairethibault 2026-01-08 23:42:23 UTC
Hi,

Thanks a lot for this very useful feature.
Tested in LibreOfficeDev 26.8.0.0.alpha0+ (X86_64) and seems to work fully both in Draw and Impress.

However in Page Pane / Slide Pane, pages / slides preview is not responsive and keeps the size and orientation of the first page / slide for all pages / slides, resulting in distorted preview.

Is it possible to adapt the preview to the size / orientation of each page / slide ?

Regards
Comment 43 Heiko Tietze 2026-01-09 07:03:32 UTC
(In reply to vatairethibault from comment #42)
> Tested in LibreOfficeDev 26.8.0.0.alpha0+ (X86_64) and seems to work fully
> both in Draw and Impress.
How did you achieve different page orientations, for example, in Draw? Whatever UI control I use it always affects the whole document.
Comment 44 Regina Henschel 2026-01-09 10:37:34 UTC
Created attachment 204982 [details]
File to reproduce the crash

I get a crash:

Open the attached document.
Switch to Master View.
Select second slide in page pane. It is named "Hoch".
Open menu Page -> Page properties.
Go to tab Page
unselect checkbox "Resize all pages"
In radiobutton group "Orientation" click on "Portrait".

=> Crash

The error message is 
Exception thrown: read access violation.
**this** was nullptr.

The last lines of call stack are
	svxcorelo.dll!sdr::MasterPageDescriptor::GetUsedPage() Line 59	C++
 	svxcorelo.dll!SdrPage::TRG_GetMasterPage() Line 1682	C++
 	sdlo.dll!SdDrawDocument::ResizeCurrentPage(SdPage * pPage, const Size & rNewSize, PageKind ePageKind, SdUndoGroup * pUndoGroup, __int64 nLeft, __int64 nRight, __int64 nUpper, __int64 nLower, bool bScaleAll, Orientation eOrientation, unsigned short nPaperBin, bool bBackgroundFullSize) Line 468	C++
 	sdlo.dll!sd::ViewShell::SetPageSizeAndBorder(PageKind ePageKind, const Size & rNewSize, __int64 nLeft, __int64 nRight, __int64 nUpper, __int64 nLower, bool bScaleAll, Orientation eOrientation, unsigned short nPaperBin, bool bBackgroundFullSize) Line 559	C++
 	sdlo.dll!sd::FuPage::ApplyItemSet(const SfxItemSet * pArgs) Line 598	C++
 	sdlo.dll!sd::FuPage::ApplyItemSet(SdStyleSheet & styleSheet, const std::shared_ptr<SfxItemSet> & newAttr, SfxItemSet & tempSet, const std::shared_ptr<SfxItemSet> & mergedAttr) Line 487	C++
 	sdlo.dll!sd::FuPage::ExecuteAsyncDialog::__l38::<lambda_1>::operator()(long nResult) Line 363	C++
 	sdlo.dll!std::invoke<`sd::FuPage::ExecuteAsyncDialog'::`38'::<lambda_1> &,long>(sd::FuPage::ExecuteAsyncDialog::__l38::<lambda_1> & _Obj, long && _Arg1) Line 1680	C++
 	sdlo.dll!std::_Func_impl_no_alloc<`sd::FuPage::ExecuteAsyncDialog'::`38'::<lambda_1>,void,long>::_Do_call(long && <_Args_0>) Line 880	C++
Comment 45 Xisco Faulí 2026-01-09 10:41:59 UTC
Hi Regina,
I think the crash should be reported in a follow-up ticket linking to this one.
Could you please do that?
Comment 46 Regina Henschel 2026-01-09 10:54:16 UTC
(In reply to Xisco Faulí from comment #45)
> Hi Regina,
> I think the crash should be reported in a follow-up ticket linking to this
> one.
> Could you please do that?

Done. See bug 170277
Comment 47 vatairethibault 2026-01-09 17:07:20 UTC
(In reply to Heiko Tietze from comment #43)
> (In reply to vatairethibault from comment #42)
> > Tested in LibreOfficeDev 26.8.0.0.alpha0+ (X86_64) and seems to work fully
> > both in Draw and Impress.
> How did you achieve different page orientations, for example, in Draw?
> Whatever UI control I use it always affects the whole document.

- Select a page in the "Pages" pane,
- Open menu Page -> Page properties,
- Go to tab Page,
- Unselect checkbox "Resize all pages",
- In radiobutton group "Orientation" change the orientation of the page,
- Click on "OK" button to apply the change.

The new orientation is applied to the selected page.
(but the orientation of the page preview in the "Pages" pane remains unchanged)
Comment 48 vatairethibault 2026-01-09 17:27:52 UTC
When several pages / slides are selected in the Pages / Slides pane (by maintains Ctrl or Shift key pressed while selecting), changes to the size / orientation is only applied to the first item of the selection.

Even if "Resize all pages" is unchecked, shouldn't changes be applied to all selected pages / slides ?

Regards
Comment 49 vatairethibault 2026-01-09 21:29:23 UTC
Created attachment 204989 [details]
File to reproduce bug of the sidebar

In some case, change the orientation of a page from the sidebar doesn't work.
Not sure if this bug is related to this new feature.

How to reproduce : 
- open LibreOffice Draw
- open menu View -> Sidebar to show the sidebar if it is not already visible
- in the sidebar, go to the "Properties" tab
- open the file provided as attachment
- wait few seconds for all information about the selected page are fully loaded in the sidebar
- select the second page of the document in the "Pages" pane
- in the sidebar, change orientation from "Landscape" to "Portrait"

Current behavior : orientation of the selected page is not changed from "Landscape" to "Portrait"

Expected behavior : orientation of the selected page should be changed from "Landscape" to "Portrait"
Comment 50 Heiko Tietze 2026-01-10 07:17:04 UTC
(In reply to vatairethibault from comment #47)
> - Unselect checkbox "Resize all pages",
Missed this ;-)

(In reply to vatairethibault from comment #48)
> Even if "Resize all pages" is unchecked, shouldn't changes be applied to all
> selected pages / slides ?
Yes

And I spotted an issue with the panes sidebar where different orientations are not respected.

We probably have to create follow-up tickets. Not sure if Mohit plans to continue the work.
Comment 51 Buovjaga 2026-02-07 11:28:49 UTC
Mohit: feel free to close as fixed.
Comment 52 Laurent Balland 2026-02-13 07:54:27 UTC Comment hidden (obsolete)
Comment 53 Laurent Balland 2026-02-14 09:22:35 UTC Comment hidden (obsolete)